Skip to main content

bioclients bioclients logo

Python package for access to online biomedical resources, usually via REST APIs. Modules generally include Client.py for command-line use and Utils.py for integration into other code. With the advent of HTTP web services, first SOAP/XML and then mostly REST/JSON, many online APIs require very similar methods for data search, requests and transforms into usable formats, often TSV.

Modules

Allen • AMP-T2D • Badapple • BindingDb • BioGrid • BiomarkerKB • Bioregistry • BRENDA • CAS • CDC • CFDE • Chem2Bio2RDF • ChEBI • ChEMBL • ChemIdPlus • ClinicalTrials.gov • Disease Ontology • DisGeNet • DNorm • DrugCentral • EMBL-EBI • EnsEMBL • Entrez • FDA • Gene Ontology • GTEx • GWAS Catalog • HUGO • HumanBase • iCite • IDG • JensenLab • LINCS • MaayanLab • Medline • MeSH • MONARCH • MyGene • NCBO • NCATS • OMIM • OncoTree • Open Targets • Panther • PDB • PubChem • PubMed • PubTator • Reactome • RXNorm • STRINGDB • TCGA • TINX • UBKG • UMLS • UniProt • Wikidata • WikiPathways

Miscellaneous utilities: UTIL

Dependencies

  • Python 3.10+
  • Python packages: pandas, requests, yaml, psycopg2, tqdm, sqlalchemy, pyquery, mygene, click, PyMuPDF, py2neo, etc.

Availability and installation

Installing from PyPI

Releases at https://pypi.org/project/bioclients/.

pip install bioclients

Venv environment

It may not be necessary or advantageous to configure an environment for all of bioclients functionality. Specific modules may be supported with venv environments with required dependencies. Module documentation should indicate needed package dependencies. The following steps should create an environment for much of the functionality of bioclients.

  1. mkdir -p $HOME/venv/bioclients
  2. python3 -m venv $HOME/venv/bioclients
  3. source $HOME/venv/bioclients/bin/activate
  4. pip install --upgrade pip
  5. pip install --upgrade bioclients

For additional functionality, more packages can be installed by:

pip install -r pip_requirements.txt

Installing from source

Source at https://github.com/jeremyjyang/bioclients

git clone https://github.com/jeremyjyang/bioclients.git
cd bioclients
python3 -m pip install --upgrade build
python3 -m build

Usage Example

python3 -m bioclients.pubchem.Client -h

Design pattern

Generally each module includes command-line app Client.py which calls functions in a corresponding Utils.py, providing all capabilities by import of the module. Command-line apps not API clients are generally named App.py. Functions can write to an output file or return a Pandas dataframe (if output file unspecified).

Data structures and formats, XML, JSON, and TSV

bioclients is designed to be simple and practical, and XML, JSON and TSV are likewise simple in many respects, yet a great deal of conceptual and technological progress is reflected. XML and JSON can represent arbitrarily complex data objects, comprised of nested lists, dictionaries, and trees of primary types. TSV represents tables of rows and columns, related by common keys, reflecting the development of SQL and relational databases. Transforming JSON to TSV, as these clients generally do, projects data objects to tables useful for many applications (e.g. machine learning).

Release files for bioclients 0.2.37

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

Source distribution (sdist)

Source distribution for bioclients 0.2.37
File Size Uploaded
bioclients-0.2.37.tar.gz 226.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bioclients 0.2.37
File Interpreter ABI Platform
bioclients-0.2.37-py3-none-any.whl Python 3 none any Details

Total release size: 571.2 kB

Release files / bioclients-0.2.37.tar.gz

Download URL bioclients-0.2.37.tar.gz
Size 226.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b62205876906cc77fd7d14cff19f30a867ba59ffbddb90e9352126cad81c9533
BLAKE2b-256 checksum
How to use checksums
df1aebe5f141f9a25dc0d2243653a6b5ca0b837ac261433549d9d2614b1d53d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / bioclients-0.2.37-py3-none-any.whl

Download URL bioclients-0.2.37-py3-none-any.whl
Size 344.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5579dba8f99f2b1f4b0c2af2cec78aafc9f2207e6f785ad0f987c65258c84435
BLAKE2b-256 checksum
How to use checksums
59ad0f6dc4c87e9fa5195baf4ccae80839752bb545fbd5dc6775d05977647f0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.2.37 This release

2 release files

0.2.36

2 release files

0.2.35

2 release files

0.2.34

2 release files

0.2.33

2 release files

0.2.30

2 release files

0.2.20

2 release files

0.2.19

2 release files

0.2.18

2 release files

0.2.15

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

3 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.3

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

3 release files

0.1.4

3 release files

0.1.3

2 release files

0.1.1

3 release files

0.1.0

3 release files

0.0.9

2 release files

0.0.8

3 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

3 release files

0.0.3

2 release 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