Skip to main content

hedron-core

PyPI Python CI License: MIT

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.

Install

pip install "hedron-core>=0.18.0"
# or
uv add "hedron-core>=0.18.0"

Requires Python 3.11, 3.12, 3.13, or 3.14. Current train: 0.18.0.

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

What it does not include

  • HTTP routing, FastAPI/Flask/Django adapters, HTMX request handling
  • CLI, Component Explorer UI, charts, or data grids

Prefer the FastAPI package hedron for application work. See the project README and the public roadmap guide.

Links

License

MIT. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hedron_core-0.18.0.tar.gz (160.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hedron_core-0.18.0-py3-none-any.whl (203.0 kB view details)

Uploaded Python 3

File details

Details for the file hedron_core-0.18.0.tar.gz.

File metadata

  • Download URL: hedron_core-0.18.0.tar.gz
  • Upload date:
  • Size: 160.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hedron_core-0.18.0.tar.gz
Algorithm Hash digest
SHA256 f7a41dbb237644c2f780f0568c14ade5cea34341cefa7e961e2e805cd27230c1
MD5 aa2f9bae677b633bc5d13f0003b2c13a
BLAKE2b-256 ef1ce153ee9f61b670f909e5de79ec0f16bf79bd044139eeb015a75d59b68801

See more details on using hashes here.

File details

Details for the file hedron_core-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: hedron_core-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 203.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hedron_core-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b64b757bd044f2e6510d9c0950549518b59de75c2d509cb7e68addc2bd0e8c2
MD5 fc3ee9f47a7deaca20d5f05e46f86357
BLAKE2b-256 cf33b6f1f753f8d4b33d4c1850dd60ed8a96de047fa32c0aa82474a15cf2e54a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page