edron-sim
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.
Metadata
Release files for edron-sim 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edron_sim-0.1.2.tar.gz | 6.5 kB | Without provenance | Details for edron_sim-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edron_sim-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for edron_sim-0.1.2-py3-none-any.whl |
Total release size: 13.4 kB
Release files / edron_sim-0.1.2.tar.gz
| Download URL | edron_sim-0.1.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d37c23df7f14914a97db63b280a9007ac4e4771eb01ece335331704d9375b992
|
|
BLAKE2b-256 checksum How to use checksums |
ad7739aa63c2e88f3f835ae4338dbe9f8cde160c881d93ea263cb9133be3fd98
|
| 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.2-py3-none-any.whl
| Download URL | edron_sim-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
015ca34337103bde72902e1dae27bf299154063811eab215c3d5fe8da687d900
|
|
BLAKE2b-256 checksum How to use checksums |
81c0377189faa4bd0ee3be90b2c96780643064f2cfd8596ddaa04800320b7161
|
| 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}
|
Security for edron-sim 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.