Skip to main content

viva-tellurium

Process-bigraph wrapper for Tellurium / libroadrunner, exposing any SBML or Antimony kinetic model as a process-bigraph Process so it can be composed with other simulators in a bigraph document.

View Interactive Demo Report — Lotka-Volterra predator-prey, Elowitz-Leibler repressilator, and Gillespie stochastic dimerization with Plotly time series, phase portraits, reaction-rate charts, and bigraph architecture diagrams.

Installation

uv venv .venv && source .venv/bin/activate
uv pip install -e .

Quick Start

from process_bigraph import Composite, allocate_core, gather_emitter_results
from process_bigraph.emitter import RAMEmitter
from viva_tellurium import TelluriumProcess, make_tellurium_document

ANTIMONY = """
model decay
  S1 = 10; S2 = 0
  S1 -> S2; k*S1; k = 0.3
end
"""

core = allocate_core()
core.register_link('TelluriumProcess', TelluriumProcess)
core.register_link('ram-emitter', RAMEmitter)

doc = make_tellurium_document(model=ANTIMONY, interval=1.0)
sim = Composite({'state': doc}, core=core)
sim.run(10.0)

print(gather_emitter_results(sim)[('emitter',)][-1]['species'])

API

TelluriumProcess (Process)

Time-driven bridge wrapping a RoadRunner instance. Lazy init; each update() advances by interval.

Port Dir Schema
species input maybe[map[float]]
species output overwrite[map[float]]
rates output overwrite[map[float]]
parameters output overwrite[map[float]]
time output overwrite[float]

Config (all optional, one of model/model_file required): model, model_format ('antimony'/'sbml'), model_file, integrator ('cvode'/'gillespie'), absolute_tolerance, relative_tolerance, seed, species_overrides, parameter_overrides, reset_on_init.

TelluriumStep (Step)

One-shot trajectory Step. Extra config: start_time, end_time, n_points. Outputs: time_series (list), species_trajectories (map[list]).

make_tellurium_document(...)

Ready-to-run composite document wiring a TelluriumProcess to a stores dict and a RAM emitter.

Demo & Tests

python demo/demo_report.py   # regenerates demo/report.html, opens in Safari
pytest tests/                # 17 offline tests

Metadata

Release files for viva-tellurium 0.1.2

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

Source distribution (sdist)

Source distribution for viva-tellurium 0.1.2
File Size Uploaded
viva_tellurium-0.1.2.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viva-tellurium 0.1.2
File Interpreter ABI Platform
viva_tellurium-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.9 kB

Release files / viva_tellurium-0.1.2.tar.gz

Download URL viva_tellurium-0.1.2.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
38160592ba39be9d3e5b3e81d34dc2ffc84e25f7a876550f3e8b81479b0f134a
BLAKE2b-256 checksum
How to use checksums
a54b89c324379826e820f5509f6f9c732e3256d186c4c46f0c467dbdff3137a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / viva_tellurium-0.1.2-py3-none-any.whl

Download URL viva_tellurium-0.1.2-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0013aa556053f1fa2766ab2c3e8c712412da18500f72a0baaca50b0c118d8809
BLAKE2b-256 checksum
How to use checksums
46b5f86f606687abc104111c84807681eebc77c0856394f1ce5619b3561cbe42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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