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.
Package maturity: Beta · pin >=0.56.0,<0.59 from PyPI. The living in-tree tip is
v0.58.0; PyPI serves 0.56.0 (0.58.0 tag/upload deferred).
Install
pip install "hedron-core>=0.56.0,<0.59"
# or
uv add "hedron-core>=0.56.0,<0.59"
# In-tree / source checkout tip:
# pip install "hedron-core>=0.58.0,<0.59"
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.58.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.58.0.tar.gz | 372.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hedron_core-0.58.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 834.6 kB
Release files / hedron_core-0.58.0.tar.gz
| Download URL | hedron_core-0.58.0.tar.gz |
|---|---|
| Size | 372.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5db49d14e3f0bc3898c683fa08c44dd33fe8acbf544e9459fa74279c6bc28e45
|
|
BLAKE2b-256 checksum How to use checksums |
6a48eb2f86f21422d359aa124dff37c9a2335ae522dd94871b5691d3af877005
|
| 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.58.0-py3-none-any.whl
| Download URL | hedron_core-0.58.0-py3-none-any.whl |
|---|---|
| Size | 462.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a82c60a9e096a89fbb38781876cb22a0b11dfba861d15d5e654df7e9ab77e4e
|
|
BLAKE2b-256 checksum How to use checksums |
52b922fdf50e6a43e6986b533b5d86c6767f99d098ed9ca03fd37e12c388dab0
|
| 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}
|