Skip to main content

odezoo

odezoo is a curated registry of ODE model files, mostly cell models but also others such as Windkessel models, stored as markup: CellML or gotranx .ode. It is a Python package with a command line interface that searches the registry and downloads a model's file exactly as it was recorded, verified by its sha256. The registry holds only the models chosen for it, and each model has one model.toml that says where its files come from, which paper it belongs to, and how to find it.

Install

odezoo needs Python 3.11 or later.

python3 -m pip install odezoo

Each release bundles the registry as it was then. For models added since the last release, install from GitHub:

python3 -m pip install git+https://github.com/ComputationalPhysiology/odezoo

The documentation, with a page for every model and a search, is at https://computationalphysiology.github.io/odezoo.

Quick start

odezoo list                                    # every model; takes the same filters as search
odezoo search --category electrophysiology     # find models; also by text, --keyword, --species
odezoo values species                          # each species and its number of models
odezoo info beeler_reuter_1977                 # paper, DOI, versions, licences, sources
odezoo fetch beeler_reuter_1977 -o models/     # writes models/beeler_reuter_1977.cellml

odezoo fetch takes several ids, so odezoo fetch $(odezoo search --format cellml --ids) fetches every CellML model. --format picks the newest version in a format, --version a given version, and --force overwrites a different file that is already there. A table of models taller than the terminal opens in your pager ($PAGER, else less); --no-pager turns that off. odezoo values also counts categories, keywords, families, formats and cell types, and takes the same filters, so odezoo values family --species human lists the families of human models.

Every file is checked against the sha256 in the registry. It is taken from the cache if it is there, otherwise from this repository's copy on GitHub, otherwise from where its authors keep it (the Physiome Model Repository, GitHub or Zenodo). Whichever it comes from, it is the same bytes.

From Python

import odezoo

odezoo.search("ten tusscher", category="electrophysiology", format="cellml")
odezoo.values("species")  # {"human": 14, "guinea pig": 8, ...}
model = odezoo.model("beeler_reuter_1977")  # paper, keywords, versions, ...
path = odezoo.get("beeler_reuter_1977")  # the file in the cache
path = odezoo.get("beeler_reuter_1977", dest=".")  # copied to ./beeler_reuter_1977.cellml

With gotranx, a model's .ode version, where it has one, loads directly:

import gotranx

ode = gotranx.load_ode(odezoo.get(model_id, format="ode"))

Settings

Option Environment variable What it does
--cache-dir PATH ODEZOO_CACHE_DIR Where downloads are kept. odezoo cache dir shows it, odezoo cache clear empties it, and fetch --no-cache skips it.
--registry PATH ODEZOO_REGISTRY Use a checkout of this repository instead of the registry bundled with odezoo, e.g. to try models not yet released.

A flag beats its environment variable.

Adding models

Each model is a folder under models/ with a model.toml and the files it keeps a copy of. odezoo registry check checks a checkout, and odezoo registry add version ID FILE --derived-from V adds an edited file as a new version.

odezoo registry add url URL --id ID [--license SPDX] downloads a file and adds it, as a new model or a new version of one. GitHub and PMR URLs are pinned to a commit (for PMR, use the file's rawfile URL with the full commit id). A new model gets only its id; fill in its name, paper and categories, then run odezoo registry check. The documentation has the full guide to adding models, and CONTRIBUTING.md the steps for a pull request, including building the documentation.

Licence

The code is MIT licensed. Each model file keeps its own licence, recorded in its model.toml; the texts are in LICENSES/.

Metadata

Release files for odezoo 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 odezoo 0.1.0
File Size Uploaded Provenance Actions
odezoo-0.1.0.tar.gz 97.3 kB Without provenance Details for odezoo-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 162.8 kB

Release files / odezoo-0.1.0.tar.gz

Download URL odezoo-0.1.0.tar.gz
Size 97.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5e2769a36c8febfe51e7f443ea4ccfb644e726fa6e3569801a9e528bc5af16ef
BLAKE2b-256 checksum
How to use checksums
25bd85fdca1f5c389add063e7e4adef58e84d3f34459650345dac93c5691eb26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL odezoo-0.1.0-py3-none-any.whl
Size 65.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0090777026d8de8ee91f7e39bdb97c0a850b3b58d9d2c6031cf64534f9d30af
BLAKE2b-256 checksum
How to use checksums
e89bf795534c0da8a6adcdc87fabf59bb0f0d8ecf872a243568c7fe122a71a26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for odezoo 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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