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
Requirements
requests
$ easy_install requests
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 OR $ easy_install PyCap
TODO
More Tests
File export and import
HISTORY
0.3 (2011-09-27)
Using Kenneth Reitz’s request module, greatly simplifying request code.
0.21 (2011-09-14)
First public release on PyPI
Version bump
0.1 (2011-09-14)
Basic import, export, metadata
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.3.tar.gz
(8.7 kB
view details)
File details
Details for the file PyCap-0.3.tar.gz.
File metadata
- Download URL: PyCap-0.3.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b1816eae76aeaa4c9962d7457b740e6606e6a527eb5d5968a7b4a1702ea8119
|
|
| MD5 |
8ec066aee46c1860e44ca38399bc68b9
|
|
| BLAKE2b-256 |
55178041e836b4f0e28655939935963dcbb2bf000259851f70cd070336e91500
|