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.

Host adapters share this renderer:

Package maturity: Beta · Train: 0.20.0 (Published) · pin >=0.20.0,<0.21

Install

pip install "hedron-core>=0.20.0,<0.21"
# or
uv add "hedron-core>=0.20.0,<0.21"

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.

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.20.0.tar.gz (177.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.20.0-py3-none-any.whl (224.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_core-0.20.0.tar.gz
  • Upload date:
  • Size: 177.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.20.0.tar.gz
Algorithm Hash digest
SHA256 f8f8c9f670a4a989abadfb8f4dc00ce3f9ceb0c2d80635d3c769c0eecec3738b
MD5 6429d1403e86c9307f290ac5ae420c8f
BLAKE2b-256 290bc2f5ac25f21a64fb370e822be8c137d7c55148545acb8a9353513694a7e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_core-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 224.2 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.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d18c06882c2a216405318ee6ff5a136571ccdf73a1fac6e7f7ee1d882cb29cd8
MD5 1fe90d0af285fe440733beca8327de8a
BLAKE2b-256 b5fb7d9c6cc5f73d9ace77e7d00a3c5fc5005e5ff3d6f3f100f21b0902b7e32e

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