Skip to main content

Dados Abertos Brasil

A forma mais simples de acessar dados abertos e APIs do governo brasileiro com Python.

PyPI Versões do Python Downloads Testes Licença

Documentação

Pacote open-source que padroniza o acesso às APIs do IBGE, do Ipea, do Banco Central, da Câmara dos Deputados e do Senado Federal, além de dados da Wikipedia e do Wikidata. As consultas devolvem registros (json), modelos Pydantic ou DataFrames do pandas e do polars.

Instalação

pip install DadosAbertosBrasil

# Para resultados em DataFrames
pip install "DadosAbertosBrasil[pandas]"   # ou [polars]

Vindo do 2.x? Veja o guia de migração para o 3.0.

Módulos

  • ibge: localidades, malhas, população, nomes e tabelas do SIDRA.
  • ipea: séries temporais do IpeaData.
  • bacen: câmbio, expectativas de mercado e séries do SGS do Banco Central.
  • camara: deputados, partidos, proposições, votações e eventos da Câmara.
  • senado: senadores, legislaturas, partidos e orçamentos do Senado.
  • favoritos: atalhos para as consultas mais comuns, como IPCA, Selic e PIB.
  • wiki: governadores, ministros, tribunais, partidos, UFs e municípios, da Wikipedia e do Wikidata.
  • uf: a classe UF, que reúne os dados de um estado num só objeto.

Veja a referência de cada módulo e os exemplos.

Metadata

Release files for DadosAbertosBrasil 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DadosAbertosBrasil 3.0.1
File Size Uploaded Provenance Actions
dadosabertosbrasil-3.0.1.tar.gz 122.1 kB With provenance Details for dadosabertosbrasil-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 281.0 kB

Release files / dadosabertosbrasil-3.0.1.tar.gz

Download URL dadosabertosbrasil-3.0.1.tar.gz
Size 122.1 kB
Tags Source
SHA-256 checksum
How to use checksums
52a90fb6bdbb205f664ff47bc68e1152636527621e0c487276536bcdf848e3cc
BLAKE2b-256 checksum
How to use checksums
feba78a4f9a74d611d61a87f81d4638f3809a2d973b6af6ec2ea48ece36d5075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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

Transparency log

Release files / dadosabertosbrasil-3.0.1-py3-none-any.whl

Download URL dadosabertosbrasil-3.0.1-py3-none-any.whl
Size 158.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d34cde59ea6e112114ed1e0d96de35856da0e4af9bb5f52872cfbc2aaa318d23
BLAKE2b-256 checksum
How to use checksums
7c7430d9ee204bfc4c123943de04b7e5b539c62a92e008b881cd5d60775a5b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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

Transparency log

Security for DadosAbertosBrasil 3.0.1

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 dadosabertosbrasil-3.0.1.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 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.

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