hedron-core
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:
- FastAPI —
hedron - Flask —
hedron-flask - Django —
hedron-django
Package maturity: Beta · Train: 0.44.x (published v0.44.0) · pin >=0.44.0,<0.45
Install
pip install "hedron-core>=0.44.0,<0.45"
# or
uv add "hedron-core>=0.44.0,<0.45"
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, andField- Trust boundary types:
Secret,TrustedHtml,SafeUrl,UrlPurpose - Component protocol, registry, diagnostics (JSON/SARIF), and deterministic identity
- Context-aware HTML serializer,
render(...) -> RenderResult, andRenderSession - 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.
Release files for hedron-core 0.44.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hedron_core-0.44.0.tar.gz | 261.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hedron_core-0.44.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 594.6 kB
Release files / hedron_core-0.44.0.tar.gz
| Download URL | hedron_core-0.44.0.tar.gz |
|---|---|
| Size | 261.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0242bac3be19d404e110d7bf0d1738e73b367cc746863d034225c6974fd4c1a
|
|
BLAKE2b-256 checksum How to use checksums |
3832cd49ce4b56bd1d36b0530753b9dac85bb498779109326ee676c86f73c07a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / hedron_core-0.44.0-py3-none-any.whl
| Download URL | hedron_core-0.44.0-py3-none-any.whl |
|---|---|
| Size | 333.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a9001ef78226fdf7b0d0335ddc6930e24c4c08f6da5f4b498bde2dbb537220f
|
|
BLAKE2b-256 checksum How to use checksums |
03503c1029a2b42e0fe6dc6593ed83ba5fe78c2763e776149c1536eedb579791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|