Skip to main content

Reserve Bank of Australia connector for the parsimony framework

Project description

parsimony-rba

Reserve Bank of Australia source for parsimony: statistical tables fetch and catalog enumeration.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-rba.

Connectors

Name Kind Description
rba_fetch connector Fetch a published RBA statistical table/series by table_id. Resolves across all three publication formats — a CSV stem (f1-data), a current XLSX-exclusive sheet (a03/Bond Purchase Program), or a legacy xls-hist workbook (b03hist) — and returns a tidy long-format DataFrame.
enumerate_rba enumerator Discover series via the 3-pass HTML scrape (CSV index + current XLSX-exclusive sheets + legacy xls-hist), parsing each table's metadata header rows. Drives the rba catalog.
rba_search search Semantic search over the published RBA catalog. Pass the table_id portion (before #) of a returned code to rba_fetch(table_id=...).

Coverage

The catalog indexes ~4,672 series across RBA's nine statistical categories (Reserve Bank, banking & finance, credit cards, monetary aggregates, household & business finance, interest rates, exchange rates, economic activity, balance of payments), drawn from three publication formats RBA exposes as static files (it has no JSON/REST API):

  • CSV index (/statistics/tables/) — ~3,958 current series (the bulk).
  • Current XLSX-exclusive sheets — series published only in a workbook, never re-exported as CSV (today: the Bond Purchase Program). Detected by dynamic exclusivity, so a future XLSX-only sheet is picked up automatically.
  • Legacy xls-hist binaries (/statistics/historical-data.html) — discontinued series that left the live CSVs.

The catalog code is compound ({table_id}#{series_id}) because RBA reuses series ids across related tables. Every catalogued series is fetchablerba_fetch resolves the table_id to whichever format published it. The redundant *hist.xlsx long-history workbooks and the period-range archives are deliberately skipped (an audit confirmed they carry the same series ids as the current CSVs). Data is CC BY 4.0 — cite as "Source: Reserve Bank of Australia".

Install

pip install parsimony-rba

Pulls in a compatible parsimony-core automatically. Verify discovery:

python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"

Configuration

No API key required — the RBA statistics site is public and keyless.

curl_cffi is a required runtime dependency (installed automatically). The RBA site (rba.gov.au) is fronted by Akamai bot-mitigation that TLS-fingerprint-blocks stock python-httpx (every request returns HTTP 403). parsimony-rba reaches the origin only via curl_cffi, which presents a real Chrome TLS handshake. Without it the connector is non-functional — this is why curl_cffi ships as a hard dependency rather than an optional extra.

rba_search reads its catalog snapshot from hf://parsimony-dev/rba by default; override with the PARSIMONY_RBA_CATALOG_URL env var or load(catalog_url=...).

Quick start

from parsimony_rba import CONNECTORS

result = CONNECTORS["rba_fetch"](table_id="f1-data")
print(result.data.head())

For multi-plugin composition:

from parsimony import discover
connectors = discover.load_all()

Catalogs

rba_search runs semantic search over a published catalog snapshot (hf://parsimony-dev/rba by default; override with the PARSIMONY_RBA_CATALOG_URL env var or load(catalog_url=...)). The snapshot is built from enumerate_rba via scripts/build_catalog.py. No API key is required — RBA is a public, keyless data source.

Provider

License

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsimony_rba-0.0.1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsimony_rba-0.0.1-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_rba-0.0.1.tar.gz.

File metadata

  • Download URL: parsimony_rba-0.0.1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_rba-0.0.1.tar.gz
Algorithm Hash digest
SHA256 643d59fc0a499a6d5c8b863adc1fbc3c64ef0f6a920737b61909ec210a46cf16
MD5 ff936b345cd462ddec3eb984e8063f0f
BLAKE2b-256 f98939bfd2ff1dc81ac0071473f9f002db82afa8b81560d5db65bba36a7d117e

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_rba-0.0.1.tar.gz:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parsimony_rba-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: parsimony_rba-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_rba-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9237013045fd47cea38a846bb51cdab57d62102f4f3572a9da978623dcb2fee
MD5 04ffcd0b71a64d3f142ef4730eb3ce30
BLAKE2b-256 5f5afb8c09287082fc8a5b8beabfc6b7004e0c54e4a20051b2b3cb1658e69979

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_rba-0.0.1-py3-none-any.whl:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page