Skip to main content

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

edron-0.4.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edron-0.4.0-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

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

Hashes for edron-0.4.0.tar.gz
Algorithm Hash digest
SHA256 57d536deb1b8a454c1bd2b157d482236930b9452efb9a3520220322ba182ef07
MD5 abe23a0dd112fab154f41a887755c017
BLAKE2b-256 7d2f76182f606ec8212b6a5ade862e79873b0ecc5e4ca3ecc92c155ecb702e8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for edron-0.4.0.tar.gz:

Publisher: edron-release.yml on eddiethedean/hedron

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for edron-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a8d6cc9b3e2b1d1166653a0bc713f90a6db7fdd103a8f137509d389f0ecb6a8
MD5 bf3168122754ba36a18db8c7d37d3973
BLAKE2b-256 ab13813021d9c3d91681d165a70a963d6aa1e60cf36cb4bde6a59bd45199de4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for edron-0.4.0-py3-none-any.whl:

Publisher: edron-release.yml on eddiethedean/hedron

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.9.0

2 files

0.8.0

2 files

0.6.0

2 files

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page