Skip to main content

Intro

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 (> 0.6.4)

    $ 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.2 (2011-11-21)

  • Works with current version of requests

  • Under-the-hood changes (only json is used for RCRequest)

  • Bug fix in Project.filter

0.3.1 (2011-11-02)

  • Bug fix in import_records

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

Metadata

Release files for pycap 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycap 0.3.2
File Size Uploaded
PyCap-0.3.2.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycap 0.3.2
File Interpreter ABI Platform
PyCap-0.3.2.macosx-10.6-intel.tar.gz Details

Total release size: 21.0 kB

Release files / PyCap-0.3.2.tar.gz

Download URL PyCap-0.3.2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
934dc2647966a758679913162f0dea07882707de0f01e4f5729a21a8d1cc2ea3
BLAKE2b-256 checksum
How to use checksums
f2af4b3c62bcce300d9c9ffad29271b05dfabb8da3d363d22ac538d118182464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyCap-0.3.2.macosx-10.6-intel.tar.gz

Download URL PyCap-0.3.2.macosx-10.6-intel.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cf6444955576e36608e1d6da56b91c3d6069ee5902d10ef6e1ce04d4bbb228e3
BLAKE2b-256 checksum
How to use checksums
23373def125d69f661bcd3e6e48f4873b4bf9df68e3118d0b0b1b5f8111d77d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.9

2 release files

0.8.1

1 release file

0.8

1 release file

0.7

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

0.4.2

1 release file

0.4

1 release file

0.3.4

1 release file

This release

0.3.2 This release

2 release files

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page