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.8.0.tar.gz (81.8 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.8.0-py3-none-any.whl (104.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_core-0.8.0.tar.gz
  • Upload date:
  • Size: 81.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for hedron_core-0.8.0.tar.gz
Algorithm Hash digest
SHA256 157a92ca1081d10e8e10ff9dd9165cf023fbba0737be290b839217c4e9c30d04
MD5 62d1a82f5788113a13e2fef647aec01b
BLAKE2b-256 c39785aa3759c32545a9549cc4cb1a26ce670ffffa8bee3009e216cc5ead8495

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_core-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 104.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for hedron_core-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97d6e22d59acafce0ee18a47c0bfefecef7b18e0b709b637600ca07e4e1c59ac
MD5 1c819cdd9bf3b00cbd66e84c4a5606c8
BLAKE2b-256 799f8e29c32daf0dcb4a67666ec65394a07d7e6973d74b4aeea9fa532c097383

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