publicdata-au
Query and download Australian government open data from publicdata.au. publicdata.au republishes datasets that governments already publish under open licences, keeps every version at a URL that never changes, and serves each one in ten formats with a query API.
This package works for every dataset the site serves, named by its slug, so a dataset added to the site needs no new release.
pip install publicdata-au # queries and downloads, no dependencies
pip install "publicdata-au[pandas]" # adds read() into a pandas DataFrame
Find a dataset
import publicdata_au as pd_au
pd_au.datasets("road crashes") # slug, title, publisher, licence and page of each match
pd_au.versions("au-road-deaths") # every version kept, newest first
Query rows and totals
from publicdata_au import gte, in_
deaths = pd_au.rows(
"au-road-deaths",
{"state": in_("QLD", "NSW"), "year": gte(2020)},
select=["state", "year", "road_user"],
order="year.desc",
all=True,
)
deaths.version # the version the rows came from
deaths.attribution # the attribution the publisher's licence requires
deaths.to_pandas()
pd_au.aggregate("au-road-deaths", group="state", metric="count", where={"year": 2025})
A plain value must match exactly, a list matches any of its values and None matches a blank or
suppressed cell. The filters are eq, neq, gt, gte, lt, lte, like, ilike, in_,
is_null and not_.
Without version= an answer comes from the newest version and changes when the publisher
releases again. Pass a date from versions() for an answer that never changes.
Whole tables
df = pd_au.read("au-road-deaths") # needs the [pandas] extra
df.attrs["publicdata"] # the version, licence and attribution the file itself carries
pd_au.download(
"au-road-deaths", "csv"
) # parquet, csv, csv.gz, json, ndjson, sqlite, xlsx, arrow, geojson, gpkg
Files have no rate limit. The query API allows 60 requests in 10 seconds from one address, and this package waits and retries when it answers 429.
Licence and attribution
The data is under each publisher's own licence, which requires the attribution string that every answer carries. Please also name publicdata.au and link to the version you used. publicdata.au is an independent republication, and the publishers have not endorsed it.
The package itself is under the MIT licence.
Metadata
Release files for publicdata-au 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| publicdata_au-0.1.0.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| publicdata_au-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / publicdata_au-0.1.0.tar.gz
| Download URL | publicdata_au-0.1.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bbbf15b71ac0304fadc515ec2a3ef351f6a3bca07f13a34dad611392cd6a95b
|
|
BLAKE2b-256 checksum How to use checksums |
60a8426cc81c950ee9d98d69609a9d3da2d263833e829fe66a6e000b77f4de6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / publicdata_au-0.1.0-py3-none-any.whl
| Download URL | publicdata_au-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2080da911f48fb1d321c7200632d56bb01103c04db73909e1297e725443d5b24
|
|
BLAKE2b-256 checksum How to use checksums |
1d47f5bc37baa679196b21b11783e99cbd5eb17b840a17a2ad80391ceb2b7204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log