# PyEpicollect

A community-built library to fetch Epicollect5 data in Python. [**View it on Github**](https://github.com/fitoprincipe/pyepicollect).

## Read EpiCollect5 data from python

* **python code**: Rodrigo E. Principe (fitoprincipe82 at gmail)
* **EpiCollect expert**: Pablo Masera (pablomasera83 at gmail)

### Install

> pip install pyepicollect

### Use

See example in binder.\
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/fitoprincipe/pyepicollect/master)

### 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

1. install requirments

   > pip install -r requirements.txt
2. run test

   > python -m pytest -v


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.epicollect.net/examples/pyepicollect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
