Python interface to the Australia Government BOM Weather API
Project description
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)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bomapi-0.1.0.tar.gz.
File metadata
- Download URL: bomapi-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-27-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2224590597034715056f3ec8931bc0ac3596878ab8820d9e8c5468175770661d
|
|
| MD5 |
bb5870ffe7aefe9b67707458b4587056
|
|
| BLAKE2b-256 |
6d2e4ebd75af6d6a527e7d2e492f34ed0f915eb5cd8431f8e3a05fc5a9ecf1de
|
File details
Details for the file bomapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bomapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-27-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5899add43359386338f4cd479b1379fe1fdfafe9a16c1cfb84872e6db0e7ad91
|
|
| MD5 |
4941080ed870659127015cd98e71cb33
|
|
| BLAKE2b-256 |
86e7d46dc974d2fc9da05491d5767a2252c51d292da7691a72cc0f355acdbd29
|