Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GECKO

tests Release Documentation GitHub Discussions

Documentation · Installation · Guide · API reference · Migrate · Citations

geckopy

Enzyme-constrained genome-scale metabolic modelling in Python: the Python port of the GECKO Toolbox (MATLAB). It builds on cobrapy and raven-toolbox, and reads and writes the same ecModel YAML files as GECKO, so ecModels move between the two toolboxes without conversion.

An ecModel adds the limits of enzymes to a genome-scale model: each enzyme has a finite capacity (its kcat) and the cell has a finite protein budget. geckopy fetches kcats from BRENDA, predicts them with DLKcat, tunes them against growth and flux data with CMA-ES, applies custom curations and integrates proteomics.

Status: beta (4.0.0b3). The yeast-GEM tutorial runs end to end. The major and minor version follow GECKO, which is why it starts at 4.

Not the older geckopy. This is a new port of GECKO. It is unrelated to the earlier geckopy on PyPI (release 2.0.2 and earlier), described in Carrasco Muriel, Long & Sonnenschein, Microbiology Spectrum 11(6):e01705-23 (2023), doi:10.1128/spectrum.01705-23.

Install

Both geckopy and raven-toolbox are pre-releases, so pip needs --pre:

pip install --pre geckopy

Extras: geckopy[tutorial] (matplotlib), geckopy[dev] (pytest and ruff). Python 3.11 or newer.

Quick start

A minimal build, for a project folder with model_adapter.toml, models/ and data/:

from geckopy import ModelAdapter, load_conventional_gem, load_uniprot_tsv, make_ec_model, save_ec_model

adapter = ModelAdapter.from_folder("my_project")
model = load_conventional_gem(adapter)
uniprot = load_uniprot_tsv(adapter.params.path / "data" / "uniprot.tsv")
ec_model = make_ec_model(model, adapter, uniprot_db=uniprot)
save_ec_model(ec_model, "ecModel.yml", adapter=adapter)

The guide covers each step: Getting started, Building an ecModel and Gathering kcats. Every public function is available as from geckopy import X; geckopy.__all__ lists them, and the API reference documents them. The full protocol, with kcat curation, proteomics and Crabtree-effect simulation, is tutorials/full_ecModel/protocol.py. Fitting kcats to measured growth and fluxes is described in the guide.

Documentation and parity with GECKO

The protocol, installation, troubleshooting and API reference for both toolboxes are at gecko-docs. The ecModel YAML format is described in the guide. geckopy ports GECKO function by function, and each source file names its MATLAB original. The parity ledger records, for every public function, whether the two agree and why where they do not.

Cite us

If you have used geckopy in your work, please cite the GECKO protocol:

Chen Y, Gustafsson J, Tafur Rangel A, Anton M, Domenzain I, Kittikunapong C, Li F, Yuan L, Nielsen J & Kerkhoven EJ. Reconstruction, simulation and analysis of enzyme-constrained metabolic models using GECKO Toolbox 3.0. Nature Protocols 19, 629-667 (2024). doi:10.1038/s41596-023-00931-7.

License

GPL-3.0. See LICENSE.

Metadata

Release files for geckopy 4.0.0b3

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

Source distribution (sdist)

Source distribution for geckopy 4.0.0b3
File Size Uploaded Provenance Actions
geckopy-4.0.0b3.tar.gz 5.6 MB With provenance Details for geckopy-4.0.0b3.tar.gz

Built distribution (wheel)

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

Total release size: 5.9 MB

Release files / geckopy-4.0.0b3.tar.gz

Download URL geckopy-4.0.0b3.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
68f65275a16804f493585b2c03b55d016f39cca12a0d6338306363cdbccc0ec2
BLAKE2b-256 checksum
How to use checksums
ecf693fcefbcfd802706d00ef1644b2ea8ef0049f3e56aea493adaf97a561182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / geckopy-4.0.0b3-py3-none-any.whl

Download URL geckopy-4.0.0b3-py3-none-any.whl
Size 344.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33e83cb47c361ea75830b3a872e80d80cab7f47ff162103c9ac1f3273caa19e3
BLAKE2b-256 checksum
How to use checksums
d39fa78549b022b14e785e88ab895c81e91aebbb81f57a183a2f52e2c69f18fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for geckopy 4.0.0b3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geckopy-4.0.0b3.tar.gz

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 Nov 23, 2026.

Transparency log

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.

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