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.13.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

multiweatherapi-0.0.13-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multiweatherapi-0.0.13.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for multiweatherapi-0.0.13.tar.gz
Algorithm Hash digest
SHA256 761dd011a519d82659a3f2c55d27d33f814f6b4088ab96833929ef80b447a609
MD5 a958daa5e705dddf3e82f4c24e2cef78
BLAKE2b-256 e143118f9f3df7275f83ee5c6ce4a928430ce96cdab8d8f446d75b580f9e56b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: multiweatherapi-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for multiweatherapi-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 c9a5c682d0570d0ea0a66f5e6d706b725e93ed8d01b25a2822177636ffbbf740
MD5 56a13d9ddc6b616bddc312970de4bbe8
BLAKE2b-256 ba0dab091f3504a7c439617012b8f4835e35d9c67b846c35a3466b0221b1ddb1

See more details on using hashes here.

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