hedron-core
hedron-core is the framework-neutral HTML renderer. It has no FastAPI, Flask, or Django
dependency.
The stable boundary is deliberately limited to the public API documented for the 1.x line; undocumented internals and Beta package surfaces are not covered by that compatibility promise.
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: Stable · Package line: 1.0.x · Application pin:
hedron-core>=1.0.0,<2.0
Typing: Pyright strict. Commit and release CI fail on type errors or warnings over the
complete hedron_core source tree.
Install
pip install "hedron-core>=1.0.0,<2.0"
# or
uv add "hedron-core>=1.0.0,<2.0"
Requires Python 3.10–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 1.0.14
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-1.0.14.tar.gz | 575.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hedron_core-1.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / hedron_core-1.0.14.tar.gz
| Download URL | hedron_core-1.0.14.tar.gz |
|---|---|
| Size | 575.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20bfa41a9e193fe79dce7e8fc05f3be74bb4e7e4dc6210032c4265b59d93fc1d
|
|
BLAKE2b-256 checksum How to use checksums |
6e9b5fbf5b6de20ca2109cbf5800ab0ab8b6d199d3a647857ae40ae95753086d
|
| 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-1.0.14-py3-none-any.whl
| Download URL | hedron_core-1.0.14-py3-none-any.whl |
|---|---|
| Size | 692.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be51791f6d02aa9be8d80a2d1224c6a7d428e7c130a387a385085fd19b41f3b8
|
|
BLAKE2b-256 checksum How to use checksums |
da62f26579d3a5d7359a8c5b2232d7dcba0fb6753690103bb3b5c6c5ecfa1168
|
| 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}
|