Skip to main content

povineq

Python wrapper for the World Bank PIP API. Mirrors the functionality of the pipr R package.

Installation

Once the first release is published, install the package from PyPI:

pip install povineq
# with optional polars support
pip install "povineq[polars]"

The package supports Python 3.10 through 3.13. For development snapshots, install directly from GitHub:

pip install git+https://github.com/PIP-Technical-Team/povineq.git
pip install "povineq[polars] @ git+https://github.com/PIP-Technical-Team/povineq.git"

Quick Start

import povineq

# Poverty statistics for a single country
df = povineq.get_stats(country="AGO", year=2000)

# All countries, gap-filled
df = povineq.get_stats(fill_gaps=True)

# World Bank regional aggregates
df = povineq.get_wb()

# Country profiles
df = povineq.get_cp(country="IDN")
df = povineq.get_cp_ki(country="IDN")

# Auxiliary tables
tables = povineq.get_aux()          # list available tables
gdp    = povineq.get_aux("gdp")    # fetch a specific table
cpi    = povineq.get_cpi()         # convenience wrapper

# API info
print(povineq.check_api())
print(povineq.get_versions())

API Reference

Function Description
get_stats() Poverty and inequality statistics
get_wb() World Bank regional/global aggregates
get_agg() Custom aggregates (FCV, etc.)
get_cp() Country profile download
get_cp_ki() Country profile key indicators
get_aux(table) Auxiliary data tables
get_countries(), get_regions(), … Per-table convenience wrappers
check_api() API health check
get_versions() Available data versions
delete_cache() Clear the local cache directory

Development

git clone https://github.com/PIP-Technical-Team/povineq
cd povineq
env -u UV_INDEX -u UV_INDEX_URL -u UV_EXTRA_INDEX_URL UV_DEFAULT_INDEX=https://pypi.org/simple uv sync --locked --group dev
env -u UV_INDEX -u UV_INDEX_URL -u UV_EXTRA_INDEX_URL UV_DEFAULT_INDEX=https://pypi.org/simple uv run --locked pytest -m "not online"

Documentation and release tooling are uv dependency groups, not published package extras. Use the locked public-PyPI commands below:

env -u UV_INDEX -u UV_INDEX_URL -u UV_EXTRA_INDEX_URL UV_DEFAULT_INDEX=https://pypi.org/simple uv sync --locked --no-default-groups --group docs
env -u UV_INDEX -u UV_INDEX_URL -u UV_EXTRA_INDEX_URL UV_DEFAULT_INDEX=https://pypi.org/simple uv sync --locked --no-default-groups --group release

Release Process

Releases are tag-gated by .github/workflows/publish.yml. The validation job requires the vX.Y.Z tag to match the version in pyproject.toml, builds and checks the artifacts, and passes only those artifacts to the publish job. Publishing uses PyPI trusted publishing through the self-service GitHub environment pypi, which is restricted to protected v* tags. No PyPI token is stored in the repository.

The PyPI trusted publisher must be registered with owner PIP-Technical-Team, repository povineq, workflow publish.yml, and environment pypi.

Data Source

World Bank Poverty and Inequality Platform (PIP).

Metadata

Release files for povineq 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 povineq 0.1.0
File Size Uploaded Provenance
povineq-0.1.0.tar.gz 117.7 kB With provenance Details

Built distribution (wheel)

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

Total release size: 146.1 kB

Release files / povineq-0.1.0.tar.gz

Download URL povineq-0.1.0.tar.gz
Size 117.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5a08028b01014b76598723f3bb937b989601f45ba5286ea81e38fc190f4c4f93
BLAKE2b-256 checksum
How to use checksums
a358968817a20671a05d00e5fb45583180b1f557ca8172a2e7110b183dffd952
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 Aug 17, 2026.

Transparency log

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

Download URL povineq-0.1.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61132b689720a165ad4f992ea90f415cd2fc733500c9cc266c331a1d1de8e8e4
BLAKE2b-256 checksum
How to use checksums
10b0a486e6f30c5ed509a4e9ec2cec697493678cff6de79dee5bbd0ac48051f0
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 Aug 17, 2026.

Transparency log

Security for povineq 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for povineq-0.1.0.tar.gz

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 Aug 17, 2026.

Transparency log

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 Full 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