Python wrapper around the clinicaltrials.gov API
Project description
pytrials
Python wrapper around the clinicaltrials.gov API. Documentation for the api can be found here: https://clinicaltrials.gov/api/
Free software: BSD license
Documentation: https://pytrials.readthedocs.io.
Tutorial
To install:
$ pip install pytrials
Basic Usage
from pytrials.client import ClinicalTrials ct = ClinicalTrials() # Get 50 full studies related to Coronavirus and COVID in json format. ct.get_full_studies(search_expr="Coronavirus+COVID", max_studies=50) # Get the NCTId, Condition and Brief title fields from 500 studies related to Coronavirus and Covid, in csv format. ct.get_study_fields( search_expr="Coronavirus+COVID", fields=["NCTId", "Condition", "BriefTitle"], max_studies=500, fmt="csv", )
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-07-06)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytrials-0.1.1.tar.gz
(16.2 kB
view hashes)
Built Distribution
Close
Hashes for pytrials-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a81d0d1bebaf5f8e0fea8fb812f1dea3f1451320127adb24f61c38b6253aa4e |
|
MD5 | 145ff339655d48271599caa5dbb5a123 |
|
BLAKE2b-256 | 30982079609f76a6ba936c338ff45491c936946286b717c71e7117ac53350060 |