Skip to main content

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


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

pyepicollect-5.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

pyepicollect-5.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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