Skip to main content

edron-sim

PyPI License: MIT

Build a static, interactive preview from a real Edron application. edron-sim executes the app's registered pages, fragments, and actions through Edron's public simulation boundary and renders the result into the existing offline HTMX runtime.

Package maturity: Beta tooling-grade (0.1.x) · pin >=0.1.0,<0.2

Install

pip install "edron-sim>=0.1.0,<0.2"

Quick start

from edron_sim import Simulation

# `app` is the real edron.App from your application module.
artifact = Simulation.from_app(app, fixtures={"current_user": demo_user}).build()
print(artifact.embed())

The output is a static HTML island. Load the hedron-sim JavaScript and CSS assets in the documentation site, as described in the hedron-sim package documentation.

The application source remains ordinary Edron code:

import edron as ed

app = ed.App(title="Operations")


@app.page("/", title="Home")
class Home(ed.Page):
    def render(self) -> None:
        self.heading("Hello from Edron")

edron-sim does not introduce a component DSL, fake database, fake identity provider, browser JavaScript engine, or live server. Supply bounded fixtures for application-owned dependencies and keep side effects out of build-time render callbacks.

Public API

Symbol Role
Simulation.from_app(app) Create a builder around a real edron.App
Simulation.build() Synchronously build a static artifact
Simulation.build_async() Async equivalent for async build pipelines
SimulationArtifact.embed() Return the generated HTML island
SimulationArtifact.manifest Bounded route and source manifest
SimulationConfig Entrypoint and resource bounds

Scope

The supported surface is intentionally narrow: Edron pages, fragments, actions, themes, deterministic fixtures, and bounded refresh effects. Authentication, databases, queues, network calls, websockets, server-sent events, arbitrary browser JavaScript, and pixel-perfect execution of arbitrary CSS remain live-app concerns.

Links

License

MIT. See the repository license.

Release files for edron-sim 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edron-sim 0.1.0
File Size Uploaded
edron_sim-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edron-sim 0.1.0
File Interpreter ABI Platform
edron_sim-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / edron_sim-0.1.0.tar.gz

Download URL edron_sim-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0ba2c8175fe34cd0e9f152dca1b67178bbd223788d88f10ed270e977d8d14977
BLAKE2b-256 checksum
How to use checksums
1d9611c34394b863edb1861e10496876d9a76116aa4a12554656883a97d1f192
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / edron_sim-0.1.0-py3-none-any.whl

Download URL edron_sim-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e705d2a290b2be32587b672ea16270b56897c53156d84f44fea7078b514671d5
BLAKE2b-256 checksum
How to use checksums
d5ed435b13e3180d2baaf21f65ff63752768272b28c80ee2c9a38d63e309a19c
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release 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