summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pycap.spec351
-rw-r--r--sources1
3 files changed, 353 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d25bbec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pycap-2.4.0.tar.gz
diff --git a/python-pycap.spec b/python-pycap.spec
new file mode 100644
index 0000000..33b8fe9
--- /dev/null
+++ b/python-pycap.spec
@@ -0,0 +1,351 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pycap
+Version: 2.4.0
+Release: 1
+Summary: PyCap: Python interface to REDCap
+License: MIT
+URL: https://github.com/redcap-tools/PyCap
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1d/8d/31008d2cf332b9cf6f9a5fccf151e7c10738702e0f50b7b2dc6e9ab33c48/pycap-2.4.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-semantic-version
+Requires: python3-pandas
+
+%description
+# PyCap
+
+[![CI](https://github.com/redcap-tools/PyCap/actions/workflows/ci.yml/badge.svg)](https://github.com/redcap-tools/PyCap/actions/workflows/ci.yml)
+[![Codecov](https://codecov.io/gh/redcap-tools/PyCap/branch/master/graph/badge.svg?token=IRgcPzANxU)](https://codecov.io/gh/redcap-tools/PyCap)
+[![PyPI version](https://badge.fury.io/py/pycap.svg)](https://badge.fury.io/py/pycap)
+[![black](https://img.shields.io/badge/code%20style-black-black)](https://pypi.org/project/black/)
+
+## Intro
+
+`PyCap` is a python module exposing the REDCap API through some helpful abstractions. Information about the REDCap project can be found at https://project-redcap.org/.
+
+Available under the MIT license.
+
+## Installation
+
+Install the latest version with [`pip`](https://pypi.python.org/pypi/pip)
+
+```sh
+$ pip install PyCap
+```
+
+If you want to load REDCap data into [`pandas`](https://pandas.pydata.org/) dataframes, this will make sure you have `pandas` installed
+
+```sh
+$ pip install PyCap[all]
+```
+
+To install the bleeding edge version from the github repo, use the following
+
+```sh
+$ pip install -e git+https://github.com/redcap-tools/PyCap.git#egg=PyCap
+```
+
+## Documentation
+
+Canonical documentation and usage examples can be found [here](https://redcap-tools.github.io/PyCap/).
+
+## Features
+
+Currently, these API calls are available:
+
+### Export
+
+* Data Access Groups
+* Field names
+* Instrument-event mapping
+* File
+* Logging
+* Metadata
+* Project Info
+* Records
+* Repeating instruments and events
+* Report
+* Survey participant list
+* Users
+* User-DAG assignment
+* User Roles
+* User-Role assignment
+* Version
+
+### Import
+
+* Data Access Groups
+* File
+* Metadata
+* Records
+* Repeating instruments and events
+* Users
+* User-DAG assignment
+* User Roles
+* User-Role assignment
+
+### Delete
+
+* Data Access Groups
+* File
+* Records
+* Users
+* User Roles
+
+### Other
+
+* Generate next record name
+* Switch data access group
+
+## Citing
+
+If you use PyCap in your research, please consider citing the software:
+
+> Burns, S. S., Browne, A., Davis, G. N., Rimrodt, S. L., & Cutting, L. E. PyCap (Version 1.0) [Computer Software].
+> Nashville, TN: Vanderbilt University and Philadelphia, PA: Childrens Hospital of Philadelphia.
+> Available from https://github.com/redcap-tools/PyCap. doi:10.5281/zenodo.9917
+
+
+%package -n python3-pycap
+Summary: PyCap: Python interface to REDCap
+Provides: python-pycap
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pycap
+# PyCap
+
+[![CI](https://github.com/redcap-tools/PyCap/actions/workflows/ci.yml/badge.svg)](https://github.com/redcap-tools/PyCap/actions/workflows/ci.yml)
+[![Codecov](https://codecov.io/gh/redcap-tools/PyCap/branch/master/graph/badge.svg?token=IRgcPzANxU)](https://codecov.io/gh/redcap-tools/PyCap)
+[![PyPI version](https://badge.fury.io/py/pycap.svg)](https://badge.fury.io/py/pycap)
+[![black](https://img.shields.io/badge/code%20style-black-black)](https://pypi.org/project/black/)
+
+## Intro
+
+`PyCap` is a python module exposing the REDCap API through some helpful abstractions. Information about the REDCap project can be found at https://project-redcap.org/.
+
+Available under the MIT license.
+
+## Installation
+
+Install the latest version with [`pip`](https://pypi.python.org/pypi/pip)
+
+```sh
+$ pip install PyCap
+```
+
+If you want to load REDCap data into [`pandas`](https://pandas.pydata.org/) dataframes, this will make sure you have `pandas` installed
+
+```sh
+$ pip install PyCap[all]
+```
+
+To install the bleeding edge version from the github repo, use the following
+
+```sh
+$ pip install -e git+https://github.com/redcap-tools/PyCap.git#egg=PyCap
+```
+
+## Documentation
+
+Canonical documentation and usage examples can be found [here](https://redcap-tools.github.io/PyCap/).
+
+## Features
+
+Currently, these API calls are available:
+
+### Export
+
+* Data Access Groups
+* Field names
+* Instrument-event mapping
+* File
+* Logging
+* Metadata
+* Project Info
+* Records
+* Repeating instruments and events
+* Report
+* Survey participant list
+* Users
+* User-DAG assignment
+* User Roles
+* User-Role assignment
+* Version
+
+### Import
+
+* Data Access Groups
+* File
+* Metadata
+* Records
+* Repeating instruments and events
+* Users
+* User-DAG assignment
+* User Roles
+* User-Role assignment
+
+### Delete
+
+* Data Access Groups
+* File
+* Records
+* Users
+* User Roles
+
+### Other
+
+* Generate next record name
+* Switch data access group
+
+## Citing
+
+If you use PyCap in your research, please consider citing the software:
+
+> Burns, S. S., Browne, A., Davis, G. N., Rimrodt, S. L., & Cutting, L. E. PyCap (Version 1.0) [Computer Software].
+> Nashville, TN: Vanderbilt University and Philadelphia, PA: Childrens Hospital of Philadelphia.
+> Available from https://github.com/redcap-tools/PyCap. doi:10.5281/zenodo.9917
+
+
+%package help
+Summary: Development documents and examples for pycap
+Provides: python3-pycap-doc
+%description help
+# PyCap
+
+[![CI](https://github.com/redcap-tools/PyCap/actions/workflows/ci.yml/badge.svg)](https://github.com/redcap-tools/PyCap/actions/workflows/ci.yml)
+[![Codecov](https://codecov.io/gh/redcap-tools/PyCap/branch/master/graph/badge.svg?token=IRgcPzANxU)](https://codecov.io/gh/redcap-tools/PyCap)
+[![PyPI version](https://badge.fury.io/py/pycap.svg)](https://badge.fury.io/py/pycap)
+[![black](https://img.shields.io/badge/code%20style-black-black)](https://pypi.org/project/black/)
+
+## Intro
+
+`PyCap` is a python module exposing the REDCap API through some helpful abstractions. Information about the REDCap project can be found at https://project-redcap.org/.
+
+Available under the MIT license.
+
+## Installation
+
+Install the latest version with [`pip`](https://pypi.python.org/pypi/pip)
+
+```sh
+$ pip install PyCap
+```
+
+If you want to load REDCap data into [`pandas`](https://pandas.pydata.org/) dataframes, this will make sure you have `pandas` installed
+
+```sh
+$ pip install PyCap[all]
+```
+
+To install the bleeding edge version from the github repo, use the following
+
+```sh
+$ pip install -e git+https://github.com/redcap-tools/PyCap.git#egg=PyCap
+```
+
+## Documentation
+
+Canonical documentation and usage examples can be found [here](https://redcap-tools.github.io/PyCap/).
+
+## Features
+
+Currently, these API calls are available:
+
+### Export
+
+* Data Access Groups
+* Field names
+* Instrument-event mapping
+* File
+* Logging
+* Metadata
+* Project Info
+* Records
+* Repeating instruments and events
+* Report
+* Survey participant list
+* Users
+* User-DAG assignment
+* User Roles
+* User-Role assignment
+* Version
+
+### Import
+
+* Data Access Groups
+* File
+* Metadata
+* Records
+* Repeating instruments and events
+* Users
+* User-DAG assignment
+* User Roles
+* User-Role assignment
+
+### Delete
+
+* Data Access Groups
+* File
+* Records
+* Users
+* User Roles
+
+### Other
+
+* Generate next record name
+* Switch data access group
+
+## Citing
+
+If you use PyCap in your research, please consider citing the software:
+
+> Burns, S. S., Browne, A., Davis, G. N., Rimrodt, S. L., & Cutting, L. E. PyCap (Version 1.0) [Computer Software].
+> Nashville, TN: Vanderbilt University and Philadelphia, PA: Childrens Hospital of Philadelphia.
+> Available from https://github.com/redcap-tools/PyCap. doi:10.5281/zenodo.9917
+
+
+%prep
+%autosetup -n pycap-2.4.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pycap -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6fa4711
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bf112c72e3369f6d91d1c2f0df55fb11 pycap-2.4.0.tar.gz