Skip to main content

hedron-core

PyPI Python CI License: MIT

Framework-neutral typed rendering core for Hedron.

Defines models, security boundary types, components, the HTML serializer, Auto() intelligent rendering, cache protocols, ColorMode, utility built-ins, and the public render(...) -> RenderResult and request-scoped RenderSession APIs — with no FastAPI, Flask, Django, ASGI, or WSGI dependency.

Host adapters share this renderer:

Package maturity: Beta · Train: 0.34.x (last published 0.35.0) · pin >=0.35.0,<0.36

Install

pip install "hedron-core>=0.35.0,<0.36"
# or
uv add "hedron-core>=0.35.0,<0.36"

Requires Python 3.11–3.14.

Quick start

from hedron_core import Page, RenderContext, RenderMode, Text, render

result = render(
    Page(Text("Hello, Hedron"), title="Demo"),
    context=RenderContext.standalone(locale="en"),
    mode=RenderMode.PAGE,
)
print(result.html)

What this package includes

  • Model, Props, FormModel, EventPayload, and Field
  • Trust boundary types: Secret, TrustedHtml, SafeUrl, UrlPurpose
  • Component protocol, registry, diagnostics (JSON/SARIF), and deterministic identity
  • Context-aware HTML serializer, render(...) -> RenderResult, and RenderSession
  • Scoped CSS, themes, assets, and component discovery helpers
  • Built-ins for pages, forms, layout, landmarks, and content
  • Framework-neutral plugin metadata and Explorer panel registration helpers
  • Portable adapter contracts (AuthSignal, capability matrix, URL reverse request)

What it does not include

  • HTTP routing or FastAPI / Flask / Django adapters
  • HTMX request handling and CSRF middleware (host packages)
  • CLI, Component Explorer UI, charts, or data grids

Prefer hedron for application work on FastAPI.

Links

License

MIT. See the repository license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hedron_core-0.35.0.tar.gz (227.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hedron_core-0.35.0-py3-none-any.whl (274.8 kB view details)

Uploaded Python 3

File details

Details for the file hedron_core-0.35.0.tar.gz.

File metadata

  • Download URL: hedron_core-0.35.0.tar.gz
  • Upload date:
  • Size: 227.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for hedron_core-0.35.0.tar.gz
Algorithm Hash digest
SHA256 aad05bdf6952ee0aee2ef012e0d79549d638d3af7ba1c641283df37d6525e1fb
MD5 af8d4b4f01c13f7347913c7088cfffb9
BLAKE2b-256 2c3124cf4e24071c03b6866f25bc95dbf2d64e001ac9615b4006ec79073d8172

See more details on using hashes here.

File details

Details for the file hedron_core-0.35.0-py3-none-any.whl.

File metadata

  • Download URL: hedron_core-0.35.0-py3-none-any.whl
  • Upload date:
  • Size: 274.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for hedron_core-0.35.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b48d9f4ff2a6f551b2df647645a58dd59a6c9f63912ecf362018f4c7ddfa8a6f
MD5 1d3dc220e46fc8bd6b0af3ed43a0fc3d
BLAKE2b-256 670e31e337ba519c5909874700fcfe4a33962404ee3af56d86609c9e646053a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page