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.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 DadosAbertosBrasil 3.0.0
File Size Uploaded Provenance Actions
dadosabertosbrasil-3.0.0.tar.gz 115.7 kB With provenance Details for dadosabertosbrasil-3.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 259.2 kB

Release files / dadosabertosbrasil-3.0.0.tar.gz

Download URL dadosabertosbrasil-3.0.0.tar.gz
Size 115.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2b3dc767c5480516e1d0bd24e050bac1f63089a0a0942ddbf0cdd3d6159a9c85
BLAKE2b-256 checksum
How to use checksums
fa1fdef74023bd7506314f1d89151d3da893f5f01f5d79fcc5c67044dc02cae1
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 16, 2026.

Transparency log

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

Download URL dadosabertosbrasil-3.0.0-py3-none-any.whl
Size 143.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4316360e7de53d3d87f21e38eb24db1bd55dfdf79b8c8594dd2b6ab1c375749
BLAKE2b-256 checksum
How to use checksums
1d1c000511d6328418b65c5d310b39e04ce26e419adb6f52310df641d00f9b4e
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 16, 2026.

Transparency log

Security for DadosAbertosBrasil 3.0.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 dadosabertosbrasil-3.0.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 16, 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