Skip to main content

imibare

Programmatic access to Rwandan government statistical data.

imibare gives you clean, typed, versioned access to official statistics published by Rwandan government institutions (NISR, BNR, MINECOFIN, RSSB, RRA, and more) as pandas or polars DataFrames. No scraping, no PDF wrangling.

Install

pip install imibare

Optional extras:

pip install imibare[polars]    # return polars DataFrames
pip install imibare[iceberg]   # snapshot time travel via load(version=...)

Quick start

import imibare as imi

# Browse the catalog (works offline)
for d in imi.catalog(country="RW")[:5]:
    print(d.id, "-", d.name)

# Load a dataset as a pandas DataFrame
df = imi.load("rw.nisr.cpi.monthly")

# Filter by date range
recent = imi.load("rw.nisr.cpi.monthly", start="2023-01-01")

# Return a polars DataFrame (requires the [polars] extra)
fx = imi.load("rw.bnr.fx.daily", engine="polars")

Catalog

catalog() returns dataset metadata you can filter by country, topic, or frequency:

imi.catalog()                             # every dataset
imi.catalog(country="RW", topic="prices")
imi.catalog(frequency="daily")

Each entry carries its id, producing institution, coverage window, columns, source URL, and license.

Dataset IDs

Every dataset has a stable, country-prefixed id of four segments:

{country}.{institution}.{topic}.{frequency}
rw.nisr.cpi.monthly

Ids are permanent; a breaking schema change ships under a new suffix (for example rw.nisr.cpi.monthly.v2).

Versioned data (time travel)

With the [iceberg] extra you can load a dataset as it stood on a given date:

imi.load("rw.nisr.cpi.monthly", version="2025-06-01")

Data access

Both catalog() and load() work with no setup. catalog() reads metadata bundled in the package; load() fetches the latest data from the public imibare API. The versioned load(version=...) path additionally requires the [iceberg] extra and R2 catalog credentials.

Links

License

Code is released under the MIT License. Data retrieved through this package remains under the license of each source institution; see each dataset's metadata for details.

Download files

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

Source Distribution

imibare-0.2.0.tar.gz (111.5 kB view details)

Uploaded Source

Built Distribution

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

imibare-0.2.0-py3-none-any.whl (109.7 kB view details)

Uploaded Python 3

File details

Details for the file imibare-0.2.0.tar.gz.

File metadata

  • Download URL: imibare-0.2.0.tar.gz
  • Upload date:
  • Size: 111.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for imibare-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c21559cacf470dc1b0f249c4d8091b26e03f5ed160cc99761c3994825702d91a
MD5 2562345276dd4bf654d982b63e425479
BLAKE2b-256 0b40b79f3369e0528b636a4da72402983882c908d3da9007c2c4865bf63ec0b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for imibare-0.2.0.tar.gz:

Publisher: publish-pypi.yml on imibare/imibare

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

File details

Details for the file imibare-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: imibare-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 109.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for imibare-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d78fbccabef5e0003e75d98caaafb54b2d93d46498b30956e5e3b13c94925005
MD5 a9de5c55a255a77981707e346ff4b0fc
BLAKE2b-256 26c342d3962e5f6ea21ebde0fa570d072f75b206315847d55c60c56747702adc

See more details on using hashes here.

Provenance

The following attestation bundles were made for imibare-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on imibare/imibare

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

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