Client for EarthRanger API
Project description
EarthRanger Client
Introduction
EarthRanger is a software solution that aids protected area managers, ecologists, and wildlife biologists in making more informed operational decisions for wildlife conservation.
The er-client is a way, using python, to access the EarthRanger server HTTP API. In doing so, it hides the complexity of the ER resource based HTTP API. This client also provides the ability to multi-thread the calls to the API on your behalf, to return results to you faster.
Uses of er-client
- Extracting data for analysis
- Importing ecological or other historical data
- Integrating a new field sensor type. If you do and will be supporting multiple ER sites, contact us to talk about our Gundi integrations platform
- Performing external analysis that results in publishing an Alert on the ER platform.
Quick Start
see simple-example.py
Installation
pip install er-client
Then in your code, import the library and create an instance of the client.
from erclient import ERClient
client = ERClient(service_root="https://sandbox.pamdas.org/api/v1.0", username="", password="")
Development
Find er-client source here in github.
Create a new release
- increment version as appropriate in version.py
- install venv
python3.7 -m venv .venv
source .venv/bin/activate
- Optionally update requirements. Requirements are defined in setup.cfg, then we use pip-tools to create our pinned requirements.txt file.
pip-compile setup.cfg
- Use pre-commit to enforce our coding style
Install pre-commit libraries and establish the git hooks.
Manually run pre-commitpip install pre-commit pre-commit install
Update pre-commitpre-commit run --all-files
See the following for more information and a library of hooks: http://pre-commit.com/pre-commit autoupdate
- install wheel and upgrade pip libraries
pip install pip setuptools wheel build --upgrade
- build wheel
python -m build
- publish new wheel to project in github and pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file earthranger-client-1.0.44.tar.gz
.
File metadata
- Download URL: earthranger-client-1.0.44.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b349dbd45c04781c49d4c77b290e9bf609138b292cb458b245f942745f0d2b2 |
|
MD5 | 278e8b7e78ca7ec18c91dc69513b0966 |
|
BLAKE2b-256 | c33eae9f3170bad7649b68f05d3ad640672ff47ab9dade228effaff6028b93c8 |
Provenance
File details
Details for the file earthranger_client-1.0.44-py3-none-any.whl
.
File metadata
- Download URL: earthranger_client-1.0.44-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6731d2963a3739599ba1f1f62b0b53ef98a6107f74f9554b40232d5ad25f6dc8 |
|
MD5 | 0f7aeec29f0a198829338c1e34e6081d |
|
BLAKE2b-256 | a6c03223da57a8bf01d5a15708928d933d2b41c87b8647787c3d9cdbd9e4c157 |