Edron
Edron is a class-oriented Python authoring facade over Hedron. It keeps Hedron as the renderer, router, interaction, state, styling, and security authority.
import edron as ed
app = ed.App(title="Hello")
@app.page("/", title="Hello")
class Home(ed.Page):
def render(self) -> None:
self.heading("Hello, Edron")
self.text("A small Python vocabulary over native Hedron.")
Edron 0.4 is an in-tree Beta implementation line. Native Hedron objects remain available through
app.hedron and Page.include(). Use edron check for non-executing editor feedback,
edron explain for source-mapped registration facts, and edron new for teaching scaffolds.
Phase 0.4 adds explicit visualization and media composition while keeping native Hedron as the rendering and security authority:
from pydantic import BaseModel
from hedron_charts import Chart, beginner_to_spec
chart = Chart(
spec=beginner_to_spec(
kind="line",
data=rows,
x="month",
y="revenue",
title="Revenue",
description="Revenue by month",
)
)
@app.page("/sales", title="Sales")
class Sales(ed.Page):
def render(self) -> None:
self.chart(chart, alternative="The table below contains the exact values.")
self.image("/assets/sales.png", alt="Revenue trend")
Typed chart/map links are registered with app.chart_interaction(...) or
app.map_interaction(...); they lower to native ChartInteraction/MapInteraction bundles and
never execute client callbacks. Selection payloads remain bounded, typed, and subject to the
native authorization and CSRF policies.
Data workspaces are explicit and application-owned:
columns = (ed.Column("id", read_only=True), ed.Column("name", writable=True))
source = ed.DataSource.in_memory(
[{"id": "1", "name": "Ada"}],
columns=columns,
writable_fields=("name",),
)
workspace = ed.DataWorkspace("people", source=source, columns=columns)
Add an EditPolicy with explicit authorization to make a workspace editable. Edron never owns
database sessions, transactions, authorization state, persistence, or audit storage.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edron-0.4.0.tar.gz.
File metadata
- Download URL: edron-0.4.0.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d536deb1b8a454c1bd2b157d482236930b9452efb9a3520220322ba182ef07
|
|
| MD5 |
abe23a0dd112fab154f41a887755c017
|
|
| BLAKE2b-256 |
7d2f76182f606ec8212b6a5ade862e79873b0ecc5e4ca3ecc92c155ecb702e8d
|
Provenance
The following attestation bundles were made for edron-0.4.0.tar.gz:
Publisher:
edron-release.yml on eddiethedean/hedron
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edron-0.4.0.tar.gz -
Subject digest:
57d536deb1b8a454c1bd2b157d482236930b9452efb9a3520220322ba182ef07 - Sigstore transparency entry: 2609075496
- Sigstore integration time:
-
Permalink:
eddiethedean/hedron@695488fe1021c50b41531411aab3cc5efec6a90f -
Branch / Tag:
refs/tags/edron-v0.4.0 - Owner: https://github.com/eddiethedean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
edron-release.yml@695488fe1021c50b41531411aab3cc5efec6a90f -
Trigger Event:
push
-
Statement type:
File details
Details for the file edron-0.4.0-py3-none-any.whl.
File metadata
- Download URL: edron-0.4.0-py3-none-any.whl
- Upload date:
- Size: 43.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a8d6cc9b3e2b1d1166653a0bc713f90a6db7fdd103a8f137509d389f0ecb6a8
|
|
| MD5 |
bf3168122754ba36a18db8c7d37d3973
|
|
| BLAKE2b-256 |
ab13813021d9c3d91681d165a70a963d6aa1e60cf36cb4bde6a59bd45199de4c
|
Provenance
The following attestation bundles were made for edron-0.4.0-py3-none-any.whl:
Publisher:
edron-release.yml on eddiethedean/hedron
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edron-0.4.0-py3-none-any.whl -
Subject digest:
7a8d6cc9b3e2b1d1166653a0bc713f90a6db7fdd103a8f137509d389f0ecb6a8 - Sigstore transparency entry: 2609075592
- Sigstore integration time:
-
Permalink:
eddiethedean/hedron@695488fe1021c50b41531411aab3cc5efec6a90f -
Branch / Tag:
refs/tags/edron-v0.4.0 - Owner: https://github.com/eddiethedean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
edron-release.yml@695488fe1021c50b41531411aab3cc5efec6a90f -
Trigger Event:
push
-
Statement type: