orthodb
Agent-friendly CLI for OrthoDB v12.
Repo:
https://github.com/gumadeiras/orthodb-cli
Goals:
- cache official OrthoDB flat files locally with checksums
- answer common lookups from cached data when available
- fall back to the live OrthoDB URL API when local data is missing or too large
- emit machine-readable JSON by default for API responses and cache metadata
- stay easy to package for Homebrew
Install
Homebrew:
brew tap gumadeiras/tap
brew install orthodb
PyPI with pipx:
pipx install orthodb
PyPI with plain pip:
python3 -m pip install orthodb
From source:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e .
Examples
orthodb version
orthodb search p450 --level 33208 --singlecopy 0.8 --take 2
orthodb group 4977at9604
orthodb orthologs 4977at9604 --species 9606_0,10090_0
orthodb fasta 4977at9604 --species 9606_0 --output group.fa
orthodb cache manifest
orthodb cache download species
orthodb cache plan orthologs
orthodb cache index species
orthodb cache sync minimal --index
orthodb resolve 4977at9604
orthodb local species "Homo sapiens"
orthodb local og "olfactory"
orthodb export ogs --query "olfactory receptor" --limit 10
/blast, /fasta, and /tab calls are rate-limited to one request per
second, matching OrthoDB's published API guidance.
Cache
Downloaded flat files and their derived SQLite index are persistent data. The default root is:
~/Library/Application Support/orthodb # macOS
$XDG_DATA_HOME/orthodb or ~/.local/share/orthodb # Linux
%LOCALAPPDATA%\orthodb # Windows
Override with:
orthodb --cache-dir /path/to/cache cache status
The flat-file manifest is read from:
https://data.orthodb.org/current/download/odb_data_dump
Large data files are intentionally not auto-downloaded. Use
orthodb cache manifest first, then download a named dataset.
--timeout must be a finite positive number of seconds. It applies to live
API calls, manifest requests, and flat-file downloads. For example:
orthodb --timeout 120 cache download species
Downloads verify the file against the manifest's MD5 by default. A matching
cached file is reused; a corrupt file is downloaded again. The new file replaces
the old file only after it is closed and passes verification. The option
--no-verify on cache download skips checksum checks for both new and existing files. The md5
field in download output is the expected manifest checksum; it does not prove
integrity when verification is disabled.
cache status and cache plan check file presence without reading large files
to compute checksums. Their downloaded fields mean that a path exists.
cache plan sets will_download from presence and the large-file gate; sync
still verifies existing files and can replace corrupt files that the plan lists
as downloaded. Sync output's downloaded list includes reused files.
An interrupted download returns exit code 130. Temporary files are closed and removed on failure. If removal also fails, the original error is preserved and the remaining partial-file path is reported on stderr.
Aliases match complete dataset filenames, so species cannot select
level2species, and aa_fasta cannot select og_aa_fasta. Multiple cached
versions of the same dataset are rejected; keep one version per cache directory.
If an older version built a species index from the wrong file, rebuild it:
orthodb cache index species
Curated sync profiles:
minimal: species, levels, level-to-speciesannotations: minimal metadata plus OG annotationsorthologs: OG tables, skipping multi-GB files unless--include-large
Build a local SQLite index from downloaded files:
orthodb cache index all
orthodb cache db
Indexed local queries:
orthodb local species "Homo sapiens"
orthodb local og "Cytochrome P450"
orthodb local gene P12345
orthodb local orthologs 4977at9604
orthodb export species --query "Homo sapiens" --limit 2
export emits newline-delimited JSON from the local SQLite index, capped by
--limit.
Resolve IDs before choosing a query path:
orthodb resolve 4977at9604
orthodb resolve 9606_0:0017fc
orthodb resolve P12345
Release
Published versions are listed on the releases page.
Tag pushes like vX.Y.Z run the release workflow: build artifacts, create a
GitHub release, publish to PyPI, and update gumadeiras/homebrew-tap.
Release prerequisites:
- PyPI trusted publishing configured for this repo.
HOMEBREW_TAP_TOKENrepository secret can write togumadeiras/homebrew-tap.
Release artifacts are attached to GitHub releases for Homebrew packaging:
https://github.com/gumadeiras/orthodb-cli/releases
Use the local wrapper described in the release guide. Homebrew installation and formula updates are described in the packaging guide.
Source Notes
Primary references:
- OrthoDB v12 user guide and URL API: https://www.ezlab.org/orthodb_v12_userguide.html#api
- OrthoDB current flat files: https://data.orthodb.org/current/download/odb_data_dump
- OrthoDB-py: https://gitlab.com/ezlab/orthodb_py
The official Python package is useful reference material, but this CLI uses direct HTTP calls and local flat files for a smaller runtime surface and simpler Homebrew packaging.
Metadata
Release files for orthodb 0.1.5
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 |
|---|---|---|---|---|
| orthodb-0.1.5.tar.gz | 21.3 kB | With provenance | Details for orthodb-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orthodb-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for orthodb-0.1.5-py3-none-any.whl |
Total release size: 40.9 kB
Release files / orthodb-0.1.5.tar.gz
| Download URL | orthodb-0.1.5.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e623982976c55ba275e52fcb62afb2ec8412a33bd14ce196170ef42c1d70c72b
|
|
BLAKE2b-256 checksum How to use checksums |
4e1f270415faa246ae9ba56bc9128ad2e9b9d8464a50910b86afc14252e137c0
|
| 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 2, 2026.
Transparency logRelease files / orthodb-0.1.5-py3-none-any.whl
| Download URL | orthodb-0.1.5-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ee1809ed448b35c80098aa1674c9681930c04c92a29fa00c137d6ae540d396c
|
|
BLAKE2b-256 checksum How to use checksums |
438b8e7afec6d6eded557c26601bb545c4f3f757b8030d4f90f15ef25269e89e
|
| 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 2, 2026.
Transparency logSecurity for orthodb 0.1.5
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.
Attestation for orthodb-0.1.5.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 Oct 2, 2026.
Transparency logA 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.