Skip to main content

Python bindings to multiple weather station vendor APIs

Project description

Multi Weather API

Consistent Python bindings for select commercial weather station APIs, such as Zentra Cloud REST API v3, created for MSU EnviroWeather Project.

Background

This is inspired by python bindings for v1 of the Zentra API from the Montana Climate office : MSU Agricultural Weather Office

The EnviroWeather system from the MSU Agricultural Weather Office will interface with weather stations (select list of vendors) deployed and owned privately. Since each vendor has a differrent REST/Web API to access station's weather data, this package aims to provide a consistent interface to all of those stations in order to make it easy for incoporating them into a data pipeline.

Installation

The Multi-Weather API is currently available on PyPI. Install using pip:

pip install multiweatherapi

Usage

>>> from multiweatherapi import multiweatherapi
>>> param = {'sn': 'STATION_ID',
...          'apikey': 'API_KEY',
...          'apisec': 'API_SECRET'}
>>> resp = multiweatherapi.get_reading('davis', **param)
>>> resp.resp_raw # raw JSON response of the reading
>>> resp.resp_parsed # parsed JSON response into list of dict for EnviroWeather project

Refer to the respective link below for parameter and authentication requirements of weather station vendor APIs

Supported Python Versions

Python 3.6 and higher are supported.

Requirements

Outputs

To be determined

License

Released under the MIT License

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

multiweatherapi-0.0.9.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

multiweatherapi-0.0.9-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file multiweatherapi-0.0.9.tar.gz.

File metadata

  • Download URL: multiweatherapi-0.0.9.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for multiweatherapi-0.0.9.tar.gz
Algorithm Hash digest
SHA256 b50e1e187b7fda4b98bc6cf6661f6837d78187737c1938292ffd816898e70b83
MD5 9d91958751c654497738a016de1cb29c
BLAKE2b-256 04c95c2a770761caffbe07e0367954d9df559d3b0739117d8a9e953c68face28

See more details on using hashes here.

File details

Details for the file multiweatherapi-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: multiweatherapi-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for multiweatherapi-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1f8d296b12fbaadfa03cb537923cc9a4a583555ed9c349bcaf4270331a321c96
MD5 a9e4d5d9d72498557115183abc068b5b
BLAKE2b-256 ad1b8cfe10c40813760ae984c08abb0a6ce17f2b223120d1bb9639806d3c3e34

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