hedron-core
hedron-core is the framework-neutral HTML renderer. It has no FastAPI, Flask, or Django
dependency.
Building an app? Install hedron instead. Use this
package if you are writing a host adapter or rendering components outside a web
framework.
Published in-tree v0.49.0. Git tag and PyPI upload are deferred.
In-tree pin hedron-core>=0.49.0,<0.50. The latest on PyPI is 0.48.0.
Package maturity: Beta · pin >=0.49.0,<0.50.
Install
pip install "hedron-core>=0.48.0,<0.49"
# or
uv add "hedron-core>=0.48.0,<0.49"
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.49.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.49.0.tar.gz | 296.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hedron_core-0.49.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 671.0 kB
Release files / hedron_core-0.49.0.tar.gz
| Download URL | hedron_core-0.49.0.tar.gz |
|---|---|
| Size | 296.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cf0b01e860935364cd91a4f159f1f4542d11b28839089531480b880466c2a1d
|
|
BLAKE2b-256 checksum How to use checksums |
434434dffcb937c33a8cffdb95849e346defb9048dce3ed5caceebf7c2b99d82
|
| 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.49.0-py3-none-any.whl
| Download URL | hedron_core-0.49.0-py3-none-any.whl |
|---|---|
| Size | 374.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eecfe3ab6d9becf09b9d69823845ccb12a1acbef8dd45cb09377c1fec769c434
|
|
BLAKE2b-256 checksum How to use checksums |
0c9f1f895927644a989ffd13edd6067dee91de92f65756e5ffbf52319c2323ec
|
| 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}
|