Library for interacting with the REDCap API.
The core library is under common/src/python/redcap_api. Additional internal tools that utilize it are under tools.
This repository uses pants for developing and building the distributions.
Install pants with one of the following. See Installing Pants for more information.
For Linux:
bash get-pants.shFor macOS:
brew install pantsbuild/tap/pantsYou will need to make sure that you have a Python version compatible with the interpreter set in the pants.toml file.
To format and lint with pants, run:
pants fmt :: # fixes formatting
pants lint :: # run linterTo test with pants, run:
# use the --test-force flag to ignore the cache and force all tests to run
pants test ::To package the main redcap_api distribution with pants, run:
pants package common::To package one of the internal tool distributions, run:
pants package tools/<name-of-tool>::
# for example
# pants package tools/redcap_error_checks_import::The above will build sdist and wheel distributions in the dist directory. Note most of the tools rely on the common distribution which will need to be installed first.
The version number on the distribution files is set in the
BUILDfile(s).