Acquire cleaned and structured data about drugs and therapeutics from US regulatory agencies and services:
- ClinicalTrials.gov
- Drugs@FDA
- RxClass
All data returned from regulatory APIs is structured as instances of standard library NamedTuples. This is done to give data structure and rudimentary type annotation (i.e. to benefit code editor and analysis tools) without adding runtime heft or being wedded to particular schema libraries like Pydantic. This may change in the future.
Install from PyPI:
python3 -m pip install regbot
Clone the repo and create a virtual environment:
git clone https://github.com/genomicmedlab/regbot
cd regbot
python3 -m virtualenv venv
source venv/bin/activate
Install development dependencies and pre-commit
:
python3 -m pip install -e '.[dev,tests]'
pre-commit install
Check style with ruff
:
python3 -m ruff format . && python3 -m ruff check --fix .
Run tests with pytest
:
pytest