Skip to main content

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: ![Conda logo](https://anaconda.org/wouterpotters/castorapi/badges/installer/conda.svg)

conda install -c wouterpotters castorapi

or from the conda-forge channel

conda install -c conda-forge castorapi

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 data = c.request_study_export_data()

# export data - slow method, but required if you have many records # or if you get 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.

## TODO - implement POST endpoints of the api - implement PATCH endpoints of the api

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

castorapi-0.1.3.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

castorapi-0.1.3-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page