Skip to main content

Read Sapelli project and load data from CSVs to GeoKey

None None

Project description

PyPI Package Travis CI Build Status Coveralls Test Coverage

geokey-sapelli

Sapelli support in GeoKey. This extension enables user to upload decision trees and data via the admin interfaces.

Installation instructions

Note: This guide assumes you have a working GeoKey installation.

  1. Clone the repository:

git clone https://github.com/ExCiteS/geokey-sapelli.git
  1. Install the package:

cd geokey-sapelli
pip install -e .
  1. Go to your GeoKey installation and edit settings.py file (usually in local_settings\):

  • Add 'geokey_sapelli', to the INSTALLED_APPS list.

  • Add the absolute path to the Sapelli jar file: SAPELLI_JAR = '/path/to/sapelli-collector-cmdln-2.0.0-SNAPSHOT-jar-with-dependencies.jar'

  1. To use the extension via the API, first register a new OAuth application with Authorisation type password. You will then get the Client ID. Add the Client ID to your settings.py (usually in local_settings\) as follows:

SAPELLI_CLIENT_ID = 'YOUR_CLIENT_ID'
  1. Add the data base tables:

python manage.py migrate geokey_sapelli
  1. Restart the server.

  2. Open a browser and go to the /admin/sapelli/ path on your GeoKey server (e.g. http://localhost:8080). If you see a page titled “Sapelli” you have correctly installed the geokey-sapelli extension.

  3. To run tests specific to this extension go to your GeoKey installation folder and run:

python manage.py test geokey_sapelli

Project details

None None

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geokey-sapelli-0.1.0.tar.gz (15.0 kB view hashes)

Uploaded Source

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