Skip to main content

condepe condepe hex logo

Python access to the open data of the Observatório de Pernambuco, published by Condepe/Fidem (the Pernambuco State Agency for Planning and Research): municipal series on population, economy, public finance, labour, education, health, security, transport and environment for the 185 municipalities of Pernambuco, Brazil.

Every source is published in the same long format (one observation per row, 15 columns), so one set of functions covers all of them.

Installation

pip install condepe
# development version:
pip install git+https://github.com/StrategicProjects/condepe-py

Usage

import condepe

# Sources available (one row each), with the catalogue version
cat = condepe.condepe_catalog()
cat.attrs["version"]

# Indicators of a source
condepe.condepe_indicators("sidra_populacao_estimada")

# A series: Recife (IBGE 2611606), 2020 onwards
condepe.condepe_series(
    "sidra_populacao_estimada",
    "Populacao residente estimada",
    code="2611606",
    years=range(2020, 2027),
)

# A whole source, and the municipality list
condepe.condepe_data("datasus_sinasc")
condepe.condepe_localities()

Column names are kept in Portuguese, as published, so results stay traceable to the official files: cd_municipio_ibge, nm_municipio, ano, mes, indicador, indicador_base, valor, unidade, natureza, id_fonte, eixo, tema, assunto, fonte_original, arquivo_origem. Monthly series carry the period in indicador ("… [MM/YYYY]") and mes; indicador_base is the label without it.

Where the data come from

Files are cached on disk per catalogue version (condepe_cache_dir()) and checked against the sha256 published in the catalogue. The catalogue itself is trusted for 6 hours. Set CONDEPE_URL, CONDEPE_MIRROR_URL or CONDEPE_CACHE_DIR to override the defaults.

Documentation: https://strategicprojects.github.io/condepe-py/.

Citation and license

Data: Condepe/Fidem, Observatório de Pernambuco — Base de Dados do Estado, CC BY 4.0. The citation with the version in use is in condepe_catalog().attrs["citation"].

Code: MIT. To read or write private buckets on s3.pe.gov.br with an access key, see s3pe; condepe needs no key, since the Observatory open data are public. An R package with the same functions is condepe for R.

Metadata

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

Built distribution (wheel)

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

Total release size: 131.3 kB

Release files / condepe-0.1.0.tar.gz

Download URL condepe-0.1.0.tar.gz
Size 120.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d650b9df32d19092a472a9f9600e8cfb75c3bfabd64e3c688a61ddc1bd910a9
BLAKE2b-256 checksum
How to use checksums
09bfc04ccb474860786058ab8467e3eca8eb35f83238d14ee7124a53020b2504
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 Nov 5, 2026.

Transparency log

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

Download URL condepe-0.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b808e6da4c21cd7a7e48b5c524819939a0548d1e8d12b8a1cbe349b2f9f4ee04
BLAKE2b-256 checksum
How to use checksums
8728e6f4b90f7dd6f8c625bb948487bbe4a2ce35a4652cfa6e4313e72c15165e
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 Nov 5, 2026.

Transparency log

Security for condepe 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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for condepe-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 Nov 5, 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.

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