Read EpiCollect 5 data from python
Project description
# PyEpiCollect
## Read EpiCollect 5 data from python
* **python code**: Rodrigo E. Principe (fitoprincipe82 at gmail)
* **EpiCollect expert**: Pablo Masera (pablomasera82 at gmail)
### Install
> pip install pyepicollect
### Use
#### Search for a given project
``` python
import pyepicollect as pyep
# Public Project
result = pyep.api.search_project(name)
# Private Project
token = pyep.auth.request_token(client_id, client_secret)
token = token['access_token']
result = pyep.api.search_project(name, token=token)
```
### Unit Test
1. Make a virtual environment: (see https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv)
> virtualenv env --python=python3
Make sure to name the environment `env` so it's ignored by git. Do not do:
> virtualenv venv --python=python3
2. install requirments
> pip install -r requirements.txt
3. run test
> python -m pytest -v
## Read EpiCollect 5 data from python
* **python code**: Rodrigo E. Principe (fitoprincipe82 at gmail)
* **EpiCollect expert**: Pablo Masera (pablomasera82 at gmail)
### Install
> pip install pyepicollect
### Use
#### Search for a given project
``` python
import pyepicollect as pyep
# Public Project
result = pyep.api.search_project(name)
# Private Project
token = pyep.auth.request_token(client_id, client_secret)
token = token['access_token']
result = pyep.api.search_project(name, token=token)
```
### Unit Test
1. Make a virtual environment: (see https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv)
> virtualenv env --python=python3
Make sure to name the environment `env` so it's ignored by git. Do not do:
> virtualenv venv --python=python3
2. install requirments
> pip install -r requirements.txt
3. run test
> python -m pytest -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyepicollect-5.1.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pyepicollect-5.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba129c8edd608b57250722f5838b49338c4e7195876ffddbd9c3f0ea0ad3a22 |
|
MD5 | c19ea54afd8d2ec242abd1aff8063f87 |
|
BLAKE2b-256 | 678bf580b34665b2fbb6492c2d8b960bd8b229efdf50c6be655b1d93f4531d1c |