Skip to main content

Read Sapelli project and load data from CSVs to GeoKey

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\) to add 'geokey_sapelli', to the INSTALLED_APPS list.

  2. Download the latest available version of the Sapelli Collector CmdLn front-end. The file you want looks like sapelli-collector-cmdln-X.X.X-XXXXXX-with-dependencies.jar. You have 2 options regarding the installation of this jar file:

  • Rename the file to sapelli-collector-cmdln-with-dependencies.jar and place it in the geokey-sapelli/lib folder [Recommended];

  • or, place the file in a folder of your choice (you can rename it as well if you want) and again edit the above-mentioned settings.py file to add the absolute path to the file, like so: SAPELLI_JAR = '/path/to/sapelli-collector-cmdln-X.X.X-XXXXXX-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 database tables:

python manage.py migrate geokey_sapelli
  1. Run tests specific to this extension to ensure everything is correctly installed. Go to your GeoKey installation folder and run:

python manage.py test 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.

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

geokey-sapelli-0.5.1.tar.gz (19.1 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