Skip to content

naccdata/redcap-api

Repository files navigation

NACC REDCap API

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.

Installing Pants

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.sh

For macOS:

brew install pantsbuild/tap/pants

You will need to make sure that you have a Python version compatible with the interpreter set in the pants.toml file.

Formatting and Linting

To format and lint with pants, run:

pants fmt ::   # fixes formatting
pants lint ::  # run linter

Testing

To test with pants, run:

# use the --test-force flag to ignore the cache and force all tests to run
pants test ::

Building a Distribution

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 BUILD file(s).

About

Library for interacting with the REDCap API

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •