Skip to main content

hedron-core

Framework-neutral typed rendering core for Hedron (0.1.0).

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.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, and deterministic identity
  • Context-aware HTML serializer and render(...) -> RenderResult
  • Phase 0.1 built-ins for pages, forms, layout, landmarks, and content

What it does not include

  • HTTP routing, FastAPI/Flask/Django adapters, HTMX request handling
  • HDN, scoped CSS, CLI, Component Explorer, charts, or data grids

Those arrive in later Hedron phases. See the project README and roadmap.

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.1.0.tar.gz (27.5 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.1.0-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hedron_core-0.1.0.tar.gz
  • Upload date:
  • Size: 27.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 6a4705d3341df072b34dddcf2a4e99a57a248d80138408016186080b550a47c5
MD5 4689631d5ebd92ad5ee719cd652b5c4c
BLAKE2b-256 8b05023f3cf2ea571f223d92e053062ba1b5cfba4a2af8fdc3de9882d026f6c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hedron_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d27cad52b280814f7edb131b482624eb232a8781a85c38eb4a2dd2aa8098b2f9
MD5 974357cc0ff0df096be866c7961da89e
BLAKE2b-256 09040e7f6faa1f29c4e4562e0d343d87674f8b8b3c2a66b5a778426739159c9d

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