Skip to main content

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

  1. increment version as appropriate in version.py
  2. install venv
python3.7 -m venv .venv
source .venv/bin/activate
  1. 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
  1. Use pre-commit to enforce our coding style Install pre-commit libraries and establish the git hooks.
    pip install pre-commit
    pre-commit install
    
    Manually run pre-commit
    pre-commit run --all-files
    
    Update pre-commit
    pre-commit autoupdate
    
    See the following for more information and a library of hooks: http://pre-commit.com/
  2. install wheel and upgrade pip libraries
pip install pip setuptools wheel build --upgrade
  1. build wheel
python -m build
  1. publish new wheel to project in github and pypi

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

earthranger-client-1.0.44.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

earthranger_client-1.0.44-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

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

Hashes for earthranger-client-1.0.44.tar.gz
Algorithm Hash digest
SHA256 4b349dbd45c04781c49d4c77b290e9bf609138b292cb458b245f942745f0d2b2
MD5 278e8b7e78ca7ec18c91dc69513b0966
BLAKE2b-256 c33eae9f3170bad7649b68f05d3ad640672ff47ab9dade228effaff6028b93c8

See more details on using hashes here.

Provenance

File details

Details for the file earthranger_client-1.0.44-py3-none-any.whl.

File metadata

File hashes

Hashes for earthranger_client-1.0.44-py3-none-any.whl
Algorithm Hash digest
SHA256 6731d2963a3739599ba1f1f62b0b53ef98a6107f74f9554b40232d5ad25f6dc8
MD5 0f7aeec29f0a198829338c1e34e6081d
BLAKE2b-256 a6c03223da57a8bf01d5a15708928d933d2b41c87b8647787c3d9cdbd9e4c157

See more details on using hashes here.

Provenance

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