https://github.com/broadinstitute/scred

Python implementation of REDCap API

https://github.com/broadinstitute/scred

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.9%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Python implementation of REDCap API

Basic Info
  • Host: GitHub
  • Owner: broadinstitute
  • License: other
  • Language: Python
  • Default Branch: master
  • Size: 147 KB
Statistics
  • Stars: 4
  • Watchers: 2
  • Forks: 5
  • Open Issues: 14
  • Releases: 0
Created about 7 years ago · Last pushed almost 3 years ago
Metadata Files
Readme License

README.md

scred

Simple python implementation of the REDCap API.

Originally built for REDCap 8.5.28.

If contributing, make sure you're pulling from the develop branch!

Not implemented yet:

-Supertokens to manage multiple projects

-Configurable missingness codes

-Non-metadata project attributes, e.g. version

-Data Access Groups

-Basically everything involving data going into REDCap instead of out

Basic use

```python import scred

redcaptoken = "mytoken" # store/load your token securely! Just an example! redcapurl = "https://redcap.fake.example.com/api/" primaryidvar = "participantid" # change to match your project

Set up project; get records; get data dictionary

myproject = scred.RedcapProject(url=redcapurl, token=redcaptoken) recordsjson = myproject.getrecords() records = scred.RecordSet(recordsjson, primarykey=primaryidvar) datadict = myproject.metadata # needed to distinguish N/A from true missing; records.fillmissing(datadict) # both are blank in REDCap ```

Specifying records and fields

```python myproject = scred.RedcapProject(url=redcapurl, token=redcaptoken)

Pass kwargs to use any supported API features

recordsjson = myproject.getrecords( records=[1, 7, 9, 23, 55, 80], fields=["identifier", "heightcm", "weightkg", "heart_bpm"], filterLogic="age > 22 and age <= 65", dateRangeBegin="2019-01-01 00:00:00", ) ```

Owner

  • Name: Broad Institute
  • Login: broadinstitute
  • Kind: organization
  • Location: Cambridge, MA

Broad Institute of MIT and Harvard

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 72
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 months
  • Total issue authors: 0
  • Total pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.32
  • Merged pull requests: 24
  • Bot issues: 0
  • Bot pull requests: 48
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (24)
  • markjbaker (14)
  • rivison (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (24)

Dependencies

requirements.txt pypi
  • Click ==7.0
  • Jinja2 ==2.10.1
  • MarkupSafe ==1.1.1
  • PySnooper ==0.0.15
  • Pygments ==2.3.1
  • appdirs ==1.4.3
  • appnope ==0.1.0
  • atomicwrites ==1.3.0
  • attrs ==19.1.0
  • backcall ==0.1.0
  • black ==18.9b0
  • bleach ==3.1.0
  • certifi ==2019.3.9
  • chardet ==3.0.4
  • decorator ==4.4.0
  • defusedxml ==0.5.0
  • docutils ==0.14
  • entrypoints ==0.3
  • idna ==2.8
  • ipython ==7.4.0
  • ipython-genutils ==0.2.0
  • jedi ==0.13.3
  • jsonschema ==3.0.1
  • jupyter-core ==4.4.0
  • mistune ==0.8.4
  • more-itertools ==7.0.0
  • nbconvert ==5.4.1
  • nbformat ==4.4.0
  • numpy ==1.16.2
  • pandas ==0.24.2
  • pandocfilters ==1.4.2
  • parso ==0.3.4
  • pexpect ==4.6.0
  • pickleshare ==0.7.5
  • pkginfo ==1.5.0.1
  • pluggy ==0.9.0
  • prompt-toolkit ==2.0.9
  • ptyprocess ==0.6.0
  • py ==1.8.0
  • pyparsing ==2.2.0
  • pyrsistent ==0.14.11
  • pytest ==4.4.0
  • python-dateutil ==2.8.0
  • pytz ==2018.9
  • readme-renderer ==24.0
  • requests ==2.21.0
  • requests-toolbelt ==0.9.1
  • six ==1.12.0
  • testpath ==0.4.2
  • toml ==0.10.0
  • tqdm ==4.31.1
  • traitlets ==4.3.2
  • twine ==1.13.0
  • urllib3 ==1.25.6
  • wcwidth ==0.1.7
  • webencodings ==0.5.1
requirements_dev.txt pypi
  • black ==18.9b0 development
  • openpyxl ==2.6.2 development
  • pandas ==0.24.2 development
  • pip ==19.2.2 development
  • pyparsing ==2.2.0 development
  • pysnooper ==0.0.15 development
  • requests >=2.20.0 development
  • twine ==1.13.0 development
  • wheel ==0.33.1 development
setup.py pypi