interopdb
Python client and CLI for the Interop DB Registry API.
Interop DB is a federated registry that assigns unified identifiers to genes and strains across multiple biological databases, enabling cross-database queries with a single search. It integrates data from:
- ALEdb -- Adaptive Laboratory Evolution Database
- BiGGr -- Knowledgebase of genome-scale metabolic network reconstructions
- PanKB -- Pangenome Knowledge Base
- PMkbase -- Phenotype MicroArray Knowledge Base
Installation
pip install interopdb
Python API
from interopdb import InteropClient
client = InteropClient()
# Query a gene
result = client.get_gene("rpoB")
print(result["uid"], result["attributes"])
# Query a strain
result = client.get_strain("511145")
# Query a gene-strain pair
result = client.get_pair("rpoB", "511145")
for source in result["sources"]:
print(source["source"], source["data"])
# Search entities by local ID, UID, or synonym
result = client.search_entities("dnaA")
for entity in result["entities"]:
print(entity["local_id"], entity["source_db_name"])
# Search gene-strain relationships by a gene or strain
result = client.search_relationships("rpoB")
for rel in result["relationships"]:
print(rel["gene_local_id"], rel["strain_local_id"])
# Save result to JSON
client.save_json(result, "output.json")
CLI
# Query entities
interopdb gene rpoB
interopdb strain 511145
# Query a gene-strain pair
interopdb pair rpoB 511145
# Search entities
interopdb search-entities dnaA
# Search relationships
interopdb search-relationships GCF_031662355.1
# Save to file
interopdb gene rpoB -o result.json
Metadata
Release files for interopdb 0.2.0
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 | |
|---|---|---|---|---|
| interopdb-0.2.0.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| interopdb-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / interopdb-0.2.0.tar.gz
| Download URL | interopdb-0.2.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f573dad87849b1447ab153d8d7cbf71213fa13167b53efa46e18d8a14a34364
|
|
BLAKE2b-256 checksum How to use checksums |
9369b46746ea503ff0c11f5670138b5188e15a08739408439c719d7e10b8bc02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / interopdb-0.2.0-py3-none-any.whl
| Download URL | interopdb-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0a2c86266d583e7cef88422be6ada9483c00026ee5d6b87a6a8eb080584f14c
|
|
BLAKE2b-256 checksum How to use checksums |
440a71a73ed47d53276ff1411e115439f84dbc613f14f66365c4dd05a7559ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for interopdb 0.2.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.