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.43.x (published v0.43.0) · pin >=0.43.0,<0.44
Install
pip install "hedron-core>=0.43.0,<0.44"
# or
uv add "hedron-core>=0.43.0,<0.44"
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.43.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.43.0.tar.gz | 258.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hedron_core-0.43.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 588.1 kB
Release files / hedron_core-0.43.0.tar.gz
| Download URL | hedron_core-0.43.0.tar.gz |
|---|---|
| Size | 258.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53479583c59cecf13203aecd6eaf07765be6b5d06e804c7aef469be940dcf969
|
|
BLAKE2b-256 checksum How to use checksums |
8951e351c4e0fddb20f2b204bc46f24ebab0a0d6aa1214533d7cdc68359a2c35
|
| 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.43.0-py3-none-any.whl
| Download URL | hedron_core-0.43.0-py3-none-any.whl |
|---|---|
| Size | 329.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95c7fb1a940aa85317536c53443983897024315dff1bd093265095fc5ba144b4
|
|
BLAKE2b-256 checksum How to use checksums |
df4a574b2bc3c0c20b3eadbda546b783de2c312f32ab61c7cbbe7a312542d1f6
|
| 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}
|