--- id: biothings-client version: "0.5.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # biothings-client — Python Client for BioThings API services. License: permissive · Maintenance: active · Downloads: 1.5M/mo ## What it is and what it does biothings_client is a Python wrapper that simplifies access to BioThings API services—a collection of web APIs providing structured biological and chemical data. It offers both synchronous and asynchronous clients for querying genes, genetic variants, chemicals/drugs, diseases, genesets, and taxa. The package abstracts away HTTP details, allowing developers to call methods like getgene(), getvariant(), or getchem() directly and receive structured JSON responses with annotations from multiple sources (RefSeq, PubChem, ClinVar, etc.). The package has minimal dependencies (httpx for HTTP, importlib-metadata and typing-extensions for compatibility) and supports Python 3.7 and above. Optional extras enable DataFrame output for pandas users and local query caching via SQLite (Python 3.8+ only). It is actively maintained and widely used in bioinformatics workflows. Use it for: - Query gene annotations by ID or symbol to retrieve RefSeq IDs, protein sequences, and genomic coordinates. - Look up genetic variants by position to access clinical significance, population frequencies, and structural predictions. - Retrieve chemical/drug properties by InChI key or PubChem ID for compound analysis and property lookup. - Batch query taxa by taxon ID to explore lineage, common names, and taxonomic rank information. - Build async pipelines to fetch disease or geneset annotations without blocking on network I/O. - Cache query results locally to reduce API calls and speed up repeated lookups in research workflows. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. biothings_client provides Python wrappers to query gene, variant, chemical, disease, geneset, and taxon data from BioThings API services via synchronous or asynchronous clients. Yes. biothings_client is a stable, actively maintained wrapper for widely-used bioinformatics APIs with low install friction, permissive licensing, no known vulnerabilities, and support for modern Python versions. Install it if you need programmatic access to gene, variant, chemical, disease, or taxon data; skip it only if you prefer direct HTTP calls or need a different data source. ## Install pip install biothings-client uv add biothings-client poetry add biothings-client ## Installing biothings-client Before you install: Low install friction with only three runtime dependencies (httpx, importlib-metadata, typing-extensions). Actively maintained with a recent release 22 days ago. Supports Python 3.7 and above, though caching features require Python 3.8+. License in practice: Licensed under BSD-3-Clause (permissive), allowing commercial and private use with minimal restrictions beyond retaining the license notice. Quickstart: pip install biothings_client from biothings_client import get_client mv = get_client("variant") result = mv.getvariant("chr7:g.140453134T>C") Requires Python 3.7 or higher; caching support requires Python 3.8+. Optional dataframe support requires pandas; optional caching requires hishel and anysqlite. Verify before relying: - Whether the package's 20 GitHub stars reflects sufficient community adoption for production bioinformatics workflows. - Performance characteristics and rate limits when querying large datasets or running concurrent async requests. ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags biothings api client, gene variant query python, mygene myvariant mychem, biological data annotation, async bioinformatics api, drug chemical lookup, disease phenotype search, bioinformatics, api-client, async-support [View on SkillFed](https://skillfed.io/packages/biothings-client) · [View on PyPI](https://pypi.org/project/biothings-client/)