You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

rossby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rossby

A wrapper for the U.S. National Weather Service API

0.0.3
PyPI
Maintainers
1

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)

Keywords

national weather service nws noaa api wrapper

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts