A wrapper for the U.S. National Weather Service API
Project description
Rossby
A wrapper for the National Weather Service API
Info
Documentation for the National Weather Service API can be found here.
Everything that is used to construct this wrapper is contained in the directory you are currently in. There are 3 files that wrap the entire API:
rossby.py
api_config.py
default_response.py
All of the endpoints can be found in the file api_config.py
,
variable api_endpoints
. Each key in this dictionary variable
defines the name of a base endpoint that can be called on a
Rossby()
object. Subsequent key-value pairs represent the unique
methods that can be called on the base endpoint.
Getting Started
from rossby import Rossby
rossby = Rossby()
kunv = rossby.stations.by_id(station_id='KUNV')
print(kunv.geometry)
print(kunv.geometry.coordinates) # equivalent to kunv.geometry['coordinates']
office = rossby.offices.by_id(office_id='CTP')
print(office.address)
print(office.address.streetAddress)
print(office.responsibleCounties)
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 rossby-0.0.3.tar.gz
.
File metadata
- Download URL: rossby-0.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fedab97a233a7cd910de03e0c022b7e71404e16881ae31a1b170988da5672f8c |
|
MD5 | 76d5465ab5607c2a46d17df757778f24 |
|
BLAKE2b-256 | 682678129ea0ab40af3be134c2e9851edf40822bb9b7eec8ab713b8a71d867c6 |
File details
Details for the file rossby-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: rossby-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac972ece1c6061b1d3dea4bfc9265ef932707cf955abffe948faf7e287b91129 |
|
MD5 | 42bbfba58f10c6f39d4df36c80654f49 |
|
BLAKE2b-256 | 31c12ed9465840452f9ad250f7739128ee4eb9cbc25999f2668a49d115d68821 |