Pandas DataFrame templates for REDCap instruments, with stacking and upload functionality.
Project description
rcol
A Python package for creating, stacking, and uploading pandas DataFrame templates for REDCap instruments. Includes tests for REDCap compatibility. Uses uv for packaging and publishing to PyPI.
Features
- DataFrame templates for REDCap instruments
- Stack and upload to REDCap projects
- REDCap compatibility testing
- PyPI-ready with uv
Usage
Install with uv:
uv pip install .
Example usage:
from src.redcap_templates import get_instrument_template, stack_instruments, upload_to_redcap
df = get_instrument_template('demographics')
# ... fill in data ...
stacked = stack_instruments([df])
# upload_to_redcap(stacked, api_url, api_token)
Development
- Run tests with
pytest - Publish with
uv publish
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rcol-0.0.1.tar.gz.
File metadata
- Download URL: rcol-0.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c06bbefa48f4036c22cddedc320c4735b61deeb85ec9b511b5958eabcf645837
|
|
| MD5 |
736b9be4d7db10573727a0e75745f828
|
|
| BLAKE2b-256 |
384c2a5ddfa75b81482cd4f0ecdf78703d915a5ba022e429816e029c633cd6ff
|
File details
Details for the file rcol-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rcol-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f447d39152c2a3c44e2e04dcc572357e961ad4945756339c0eaf4424b1ebd92
|
|
| MD5 |
b5b1e8f3a20bf3ddb24bb5d9b509eb8a
|
|
| BLAKE2b-256 |
5861ec4ad6f52aa02430b149f7796cdfcf5b0027cad3db12714821c2a8e10ae7
|