Skip to main content

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)

Metadata

Release files for bomapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bomapi 0.1.0
File Size Uploaded Provenance Actions
bomapi-0.1.0.tar.gz 5.2 kB Without provenance Details for bomapi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bomapi 0.1.0
File Interpreter ABI Platform Actions
bomapi-0.1.0-py3-none-any.whl Python 3 none any Details for bomapi-0.1.0-py3-none-any.whl

Total release size: 11.8 kB

Release files / bomapi-0.1.0.tar.gz

Download URL bomapi-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2224590597034715056f3ec8931bc0ac3596878ab8820d9e8c5468175770661d
BLAKE2b-256 checksum
How to use checksums
6d2e4ebd75af6d6a527e7d2e492f34ed0f915eb5cd8431f8e3a05fc5a9ecf1de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-27-generic

Release files / bomapi-0.1.0-py3-none-any.whl

Download URL bomapi-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5899add43359386338f4cd479b1379fe1fdfafe9a16c1cfb84872e6db0e7ad91
BLAKE2b-256 checksum
How to use checksums
86e7d46dc974d2fc9da05491d5767a2252c51d292da7691a72cc0f355acdbd29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-27-generic

Security for bomapi 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page