Skip to main content

hedron-core

PyPI Python CI BasedPyright: all, no Any License: MIT

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: BasedPyright all mode. Commit and release CI fail on type errors and reject explicit or inferred Any in shipped source trees. 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.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, and Field
  • Trust boundary types: Secret, TrustedHtml, SafeUrl, UrlPurpose
  • Component protocol, registry, diagnostics (JSON/SARIF), and deterministic identity
  • Context-aware HTML serializer, render(...) -> RenderResult, and RenderSession
  • 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.

License

MIT. See the repository license.

Metadata

Release files for hedron-core 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hedron-core 1.3.0
File Size Uploaded Provenance Actions
hedron_core-1.3.0.tar.gz 595.2 kB Without provenance Details for hedron_core-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hedron-core 1.3.0
File Interpreter ABI Platform Actions
hedron_core-1.3.0-py3-none-any.whl Python 3 none any Details for hedron_core-1.3.0-py3-none-any.whl

Total release size: 1.3 MB

Release files / hedron_core-1.3.0.tar.gz

Download URL hedron_core-1.3.0.tar.gz
Size 595.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb3857659344587bac8df418eef5b25254d8d097302acd9da5d1d9bb5429717d
BLAKE2b-256 checksum
How to use checksums
86774ca1afa996c3c1932cf1b143579f233e611823eba1859fbbc1931169ebbf
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.3.0-py3-none-any.whl

Download URL hedron_core-1.3.0-py3-none-any.whl
Size 714.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb4ea18b43c9d7619c235a3db9c2dd9575cea4aa48d7602f9d392a2ae84d2079
BLAKE2b-256 checksum
How to use checksums
5228515a18d1191f676264080d21ad8dd97b44dab79a56fbbcb58bdfd1036966
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}

Security for hedron-core 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page