Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.55 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.55 KB

🤖 regbot 🤖

image image image Actions status

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.


Installation

Install from PyPI:

python3 -m pip install regbot

Development

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