Skip to main content

Client of the Pyronear API to help the fight against wildfires

Project description

API Client

Build Status Docs

Client for the Pyronear API

Table of Contents

Getting started

Prerequisites

  • Python 3.6 (or more recent)
  • pip

Installation

You can clone and install the project dependencies as follows:

$git clone https://github.com/pyronear/pyro-api.git
$pip install -e pyro-api/client/.

Usage

Import the client

from pyroclient import client

Create a client object by handling him the API keys

API_URL = "http://pyronear-api.herokuapp.com"
CREDENTIALS_LOGIN = "George Abitbol"
CREDENTIALS_PASSWORD = "AStrong Password"
api_client = client.Client(API_URL, CREDENTIALS_LOGIN, CREDENTIALS_PASSWORD)

Use it to query alerts:

# Send alerts:
api_client.send_alert()

# Send medias:
api_client.send_medias()

# Update your position:
api_client.update_location(lat, lon)

Documentation

The full project documentation is available here for detailed specifications. The documentation was built with Sphinx using a theme provided by Read the Docs.

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

pyroclient-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyroclient-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pyroclient-0.1.0.tar.gz.

File metadata

  • Download URL: pyroclient-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pyroclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d996c72096c486a74d72cadba55c28cc1977bc16ec33be931d326b690bbda1a
MD5 5dd3286a263398e8bbaa0a9b68410e63
BLAKE2b-256 b2fd962b28b88f220a0d37d13d62dca8364b89fbd44e00d23187b54632e71310

See more details on using hashes here.

File details

Details for the file pyroclient-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyroclient-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pyroclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2964f22f82802f5a55f98f04b3d515325257584cc66b760bc0fca6d05d59770f
MD5 47df93a3b54f674881a23f978fbe6280
BLAKE2b-256 df8dd831bee4dd596d05e73fba819f40cd0a08b0914853f071c80e4559dddf4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page