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

bomapi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bomapi

Python interface to the Australia Government BOM Weather API

0.1.0
PyPI
Maintainers
1

Python interface for Australian BOM Weather API

Includes support for AsyncIO and returns populated objects with objects parsed ready for use.

Disclaimer This package is not associated with or endorsed by the Australian Bureau of Meteorology (BOM). Usage may be subject to their term and conditions. See the copyright notice published on their website for more information: http://reg.bom.gov.au/other/copyright.shtml

Installation

# Pip
pip install bomapi

# Pipenv
pipenv install bomapi

# Poetry
poetry add bomapi

Usage

Find a location

import bomapi

results = bomapi.location_search("Wollongong")
for result in results:
    print(result.name)

Get data from a location

import bomapi

geohash = "r3gk6rr"  # Wollongong (or use the result object from location_search)
location = bomapi.Location(geohash)

observations = location.observations()
print(observations.rain_since_9am)

Async support

import bomapi.aio

geohash = "r3gk6rr"  # Wollongong
location = bomapi.aio.Location(geohash)

observations = await location.observations()
print(observations.rain_since_9am)

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