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, 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.4.0.tar.gz (59.2 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.4.0-py3-none-any.whl (76.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_core-0.4.0.tar.gz
  • Upload date:
  • Size: 59.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 33ac3504bd9715ec4990e77f6742c27acab604b80c5827328d42b0efed3d05cb
MD5 c4631ac64081d088d4fc2fa4c89e1589
BLAKE2b-256 9687fa0aa7908736ff75c52fcda522d5e6d9cb9fefbbefecfe6f114a1fce7781

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_core-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 76.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c04061dc25f4b9d73b78709aaf320e32a3043760c6b3cea0db2c2b40e5e5cec
MD5 76fa41e345705aee7c657ae3a6b1b7cd
BLAKE2b-256 8c3e88de75d5b3e52e5d4a118aa5b9d336f53ef34f1b9689e30d36b5901e3a05

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