Name: python-terralego
Owner: Makina Corpus
Description: Python bindings for Terralego services.
Created: 2017-03-02 09:34:46.0
Updated: 2017-04-03 01:52:24.0
Pushed: 2017-07-03 09:17:27.0
Homepage: null
Size: 18
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Install the terralego python binding:
p install terralego
You need to set the configuration before using the different methods:
terralego.conf import settings
ings.USER = 'my_user'
ings.PASSWORD = 'my_password'
Alternatively, you can set the TERRALEGO_USER
and TERRALEGO_PASSWORD
environment variables.
You can now use the terralego services, for example:
terralego.geodirectory import create_entry
y_id = create_entry('POINT(47.2556155 -1.5364181)', ["city", "nantes"])
In case of errors, the exceptions raised are the one from requests.