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
# 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, 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 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.10.1.tar.gz (84.1 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.10.1-py3-none-any.whl (105.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_core-0.10.1.tar.gz
  • Upload date:
  • Size: 84.1 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.10.1.tar.gz
Algorithm Hash digest
SHA256 c85af36ecfda65d6b04e6719ea3a7cbf06309b68864b7ea6bfe3be96aebc01c2
MD5 ac1919e2888be19786e40d0a353b9a75
BLAKE2b-256 5274d8abc23e8b8a9cdd1c92b6768075d515a6aa84ff105a3ecdb06587f2060d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_core-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 105.9 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.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e59bf69c780156a3181e01955d12fe940f32eb1671ffd9759dd358bfd049129
MD5 8c4dbe96cd973458c58f7bcbb344bb1c
BLAKE2b-256 7201f0f73cb12fb06ab7a6dfcad3fbfe2c46c643af1e0aeee07e8b888e62603e

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