Skip to main content

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.

Curated sync profiles:

  • minimal: species, levels, level-to-species
  • annotations: minimal metadata plus OG annotations
  • orthologs: 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

Current release: v0.1.1.

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_TOKEN repository secret can write to gumadeiras/homebrew-tap.

Release artifacts are attached to GitHub releases for Homebrew packaging:

https://github.com/gumadeiras/orthodb-cli/releases

Source Notes

Primary references:

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orthodb-0.1.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orthodb-0.1.4-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file orthodb-0.1.4.tar.gz.

File metadata

  • Download URL: orthodb-0.1.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for orthodb-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ae38d97309994ddc64afb1a6f177b9194accfdbf4dfcc2956a62797a4bcb7ace
MD5 12d2db5ffee83ffc7a9f4582fa0f8adb
BLAKE2b-256 cb3f8b39b554e1c6400d1b95a85cbd1f864b18e48e7c303aef4b1ed0e76e95fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for orthodb-0.1.4.tar.gz:

Publisher: release.yml on gumadeiras/orthodb-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file orthodb-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: orthodb-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for orthodb-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe80d5234021ac8a59d1f2548d3e1ba05d4b18a82a46d8c5983fc9e98d53492
MD5 08645616e5d03a3cd8c230d197f3fd88
BLAKE2b-256 234996c665b057c601637071ee79ac53c2e51b3c0b8901a84af76f6fa5ab242e

See more details on using hashes here.

Provenance

The following attestation bundles were made for orthodb-0.1.4-py3-none-any.whl:

Publisher: release.yml on gumadeiras/orthodb-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 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