Skip to main content

Tools to interact with the DigLab metadata collection standard

Project description

DigLabTools

DigLabTools is a collection of tools to interact with the DigLab metadata collection standard based on RedCap surveys.

Installation

To use DigLabTools you need to have a Python installation available on your computer including the pip package. You can install DigLabTools from PyPI via pip install DigLabTools. Note that DigLabTools requires git. If git is not available on your system you can install it manually. When using conda this can be done via conda install -c anaconda git.

Generate an API token

To be able to access the metadata from a RedCap server an API token needs to be created. For this login to your local RedCap server and go to the API menu on the left pane. Here you can generate a personalized access token for your user account. Copy the generated token, you will need to add it to your DigLab project configuration in the next step.

Configure your DigLab project

You need to create a project configuration json file on your computer to store the RedCap API token you just generated. Use your preferred text editor to create a <project_name>.json file with the following content:

{
  "structure": "structure.csv",
  "customization": "customization.csv",
  "validation": [],
  "api_token": "<paste your API token here>",
  "api_url": "<put the url of your RedCap server here>/api/"
}

Replace the <...> entries with the corresponding values for your project. The structure, customization and validation entries are required for project building and not needed to download the collected metadata.

Usage

Downloading metadata

To download the metadata of a project you can use the command line tool RedCapBridge. Use the RedCapBridge --help to learn more about the different functions that RedCapBridge offers.

Building projects

The functions for project building, validation and control are only accessible via Python. Read the module documentation to learn more about these methods.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DigLabTools-0.0.1a5.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

DigLabTools-0.0.1a5-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file DigLabTools-0.0.1a5.tar.gz.

File metadata

  • Download URL: DigLabTools-0.0.1a5.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for DigLabTools-0.0.1a5.tar.gz
Algorithm Hash digest
SHA256 e80d1bd66299cf5d967036f455aa7547ffa97575297cf3104f681d72413ead55
MD5 3893118cad94ded5203ed3ee2e18ccb6
BLAKE2b-256 7954cf01b4ef3145444433066e62ca65677bab4b6e31150bd01968d6f44cf5cd

See more details on using hashes here.

Provenance

File details

Details for the file DigLabTools-0.0.1a5-py3-none-any.whl.

File metadata

File hashes

Hashes for DigLabTools-0.0.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 0bcb351fcab9379ed764b94b4685684be19276c6808853c50f9a0e83c595161a
MD5 36a0cce4b3ecd9ced364b18a3ac2a6ff
BLAKE2b-256 70669b53f2cff9169f1f5119be5d237f28e6557fd1a5a90f828db999b27a0557

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page