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
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 multiweatherapi-0.0.10.tar.gz
.
File metadata
- Download URL: multiweatherapi-0.0.10.tar.gz
- Upload date:
- Size: 11.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150bc9935a4d3a97b50a773e96bc281096a77ab9b8aa051c97e2aeebe74a9e54 |
|
MD5 | ba861488bdcffd5a4c8dd6433521c11d |
|
BLAKE2b-256 | f1bc88730f0b2b81a1200ef059fc2c5b5fcac50f224bad0ea27abec83c81434a |
File details
Details for the file multiweatherapi-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: multiweatherapi-0.0.10-py3-none-any.whl
- Upload date:
- Size: 17.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ff0b23004c10f403352609a3376f394cf417251b561ce8d65b5d8f34f5c0e2 |
|
MD5 | 0991af4eb0f87d732e6ea73e57bee60b |
|
BLAKE2b-256 | 1fc6d96e720db3f640e1cc002c0fbcf8cc6292b61ab1b46c68ddcdf833736a8d |