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 API with no FastAPI, Flask, Django, ASGI, or WSGI dependency.

Install

pip install hedron-core
# or
uv add hedron-core

Requires Python 3.11, 3.12, 3.13, or 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 and render(...) -> RenderResult
  • HDN, scoped CSS, themes, assets, and 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 roadmap.

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.6.0.tar.gz (70.3 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.6.0-py3-none-any.whl (90.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_core-0.6.0.tar.gz
  • Upload date:
  • Size: 70.3 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.6.0.tar.gz
Algorithm Hash digest
SHA256 ea879865dc8815d59983ce70688f8f97e710100adcb4fec02e2f852264bb473a
MD5 0f41555fb00d3c25e65ecc25935fd226
BLAKE2b-256 76be02181a7479542dc98f19ac0f4e619cc0323fca7a176a9cc9a152aa6b4720

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_core-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 90.4 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 888d274a89dff7360acc5066d9b1bbec356c8ea0785d8fc45cc8a47341a9f384
MD5 603c061d75409eb40676c138623332e6
BLAKE2b-256 548b5d3ea6c6940b466ed1c251e915a793ccb9bfc16f21d6c5ab5e9fe5c95cdc

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