Python API wrapper for Castor EDC to fetch data from you clinical study.
Project description
# castorapi Python API wrapper for Castor EDC to fetch data from you clinical study.
## Install It is recommended to use anaconda.
Using conda and the conda-forge channel:
conda install -c conda-forge castorapi
But, you can also install using pip (https://pypi.org/project/castorapi/):
pip install castorapi
## Usage First, make sure that save the client and secret from your Castor account in seperate client and secret files (without line endings) in a private folder on your PC. Do not share these files with anyone.
See also https://data.castoredc.com/api and https://helpdesk.castoredc.com/article/124-application-programming-interface-api
- ## Example code
import castorapi c = CastorApi(“/path/to/folder/with/secret_client”) c.select_study_by_name(“<castor_name_of_your_study>”)
# export data - fast method for small studies. data = c.request_study_export_data()
# export data - slow method, but required for large studies with many records. # (or if you start getting a error 500) data = c.records_reports_all()
## NOTE I am not affiliated with Castor EDC in any way. Use this software at your own risk.
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
Built Distribution
Hashes for castorapi-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb78698760cd1b452e622ddddd141523c089658e6a898f776b9ca7425b636d8f |
|
MD5 | 4f682960cb7e7682bd0ce3ddabf6b5f8 |
|
BLAKE2b-256 | 08848b61f34d4f91480bfaffc7a1baf38d8d26a37f1bc1a11f64bff3070af924 |