Skip to content

Use EpiCollect to collect data for GeoKey

License

Notifications You must be signed in to change notification settings

ExCiteS/geokey-epicollect

Repository files navigation

PyPI Package Travis CI Build Status Coveralls Test Coverage

geokey-epicollect

Use EpiCollect's phone app as a mobile client to collect data and store it with GeoKey.

Install

geokey-epicollect requires:

  • Python version 2.7
  • GeoKey version 1.6 or greater

Make sure the dependencies are installed:

sudo apt-get install libxslt1-dev libxml2-dev

Install the extension from PyPI:

pip install geokey-epicollect

Or from cloned repository:

cd geokey-epicollect
pip install -e .

Add the package to installed apps:

INSTALLED_APPS += (
    ...
    'geokey_epicollect',
)

Migrate the models into the database:

python manage.py migrate geokey_epicollect

You're now ready to go!

Test

Run tests:

python manage.py test geokey_epicollect

Check code coverage:

coverage run --source=geokey_epicollect manage.py test geokey_epicollect
coverage report -m --omit=*/tests/*,*/migrations/*