PyCap: Python interface to REDCap
Project description
PyCap is a python module exposing the REDCap API through some helpful abstractions. Information about the REDCap project can be found at http://project-redcap.org/.
Available under the BSD (3-clause) license.
Features
Currently, these API calls are available:
Export Records
Export Metadata
Import Records
Usage
>>> import redcap
# Init the project with the api url and your specific api key
>>> project = redcap.Project(api_url, api_key)
>>> all_data = project.export_records()
# filter your data
>>> q = redcap.Query('age', {'ge':12})
>>> subset = project.filter(q)
# import data
data = [{'subjid': i, 'age':a} for i, a in zip(range(1,6), range(7, 13))]
num_processed = project.import_records(data)
Installation
git clone git://github.com/VUIIS/PyCap.git PyCap cd PyCap python setup.py install
TODO
More Tests
File export and import
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyCap-0.2.tar.gz
(7.0 kB
view details)
File details
Details for the file PyCap-0.2.tar.gz.
File metadata
- Download URL: PyCap-0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4b84a3a1cbcf44aa56d0ac15e58932fb57c467992838b4e0e1631b38edfc2cc
|
|
| MD5 |
7f6d74153a0b3510ab39e571891b165c
|
|
| BLAKE2b-256 |
aaaa39621b2fd65703ea5a804f129d5acfa534640dcf918befb6427218c21c49
|