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.
0.1.2 (2020-07-11)
Minor fixes
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.2.tar.gz
(11.9 kB
view hashes)
Built Distribution
Close
Hashes for pytrials-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d566f9d0c182db294502058d7e9f30b8069f48f563a0683b056ca07f8d02595 |
|
MD5 | 4dd9acc79030bf7851d83cb20683240e |
|
BLAKE2b-256 | fd4480b82b9bc2858433b6d0ff078113b9701be8128f57abda87b2b0e9dfde66 |