Skip to main content

Unified Python SDK for Brazilian financial market APIs (Bacen, B3, CVM, Tesouro, IBGE)

Project description

brazilfi

SDK Python unificado para APIs de mercados financeiros brasileiros.

CI PyPI Python

Dados do Banco Central, B3, CVM, Tesouro Direto e IBGE em uma única API limpa, tipada e assíncrona.

Instalação

pip install brazilfi

Uso rápido

from brazilfi import Bacen, IBGE, TesouroDireto

# Bacen
selic = Bacen().selic(last=30).to_dataframe()

# IBGE
pib = IBGE().pib(last=8).to_dataframe()
desemprego = IBGE().desemprego(last=4).to_dataframe()

# Tesouro Direto
bonds = TesouroDireto().available_dataframe()
historico_ipca = TesouroDireto().history(bond_type="IPCA+", maturity=2029)

CLI

brazilfi selic --last 30
brazilfi pib --last 4
brazilfi desemprego
brazilfi ipca --source ibge
brazilfi tesouro

Providers

Provider Status Cobertura
Bacen (SGS) ✅ v0.1 SELIC, CDI, IPCA, IGP-M, câmbio
IBGE (SIDRA) ✅ v0.2 PIB, PNAD, IPCA, população
Tesouro Direto ✅ v0.2 Títulos disponíveis + histórico
B3 🚧 v0.3 Cotações, histórico, opções
CVM 🔜 v0.4 Fundos, DFPs

Contribuindo

PRs bem-vindos. Rode uv sync --all-extras && uv run pytest antes de abrir.

Licença

MIT

Project details


Download files

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

Source Distribution

brazilfi-0.2.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

brazilfi-0.2.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file brazilfi-0.2.1.tar.gz.

File metadata

  • Download URL: brazilfi-0.2.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brazilfi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 24eccd60e07c08000f6affa9b23078233172cbc36a7f177237157696a8c8a69e
MD5 02becce0dfcac7743ace28024ca2a6c6
BLAKE2b-256 543a70a26f975947d1c4a7c26ed9d639ff7f1bce511ed1148969a4eccafb63b2

See more details on using hashes here.

File details

Details for the file brazilfi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: brazilfi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brazilfi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30d507afaca1151c98056bd281ca894847da90f8f867aa07dfea8316d48f285d
MD5 e85b8e41688fb5841ee3d9a9feae8345
BLAKE2b-256 dff7395f7f33e094941d0ddf75441904f65b1575912fb2000d0f393801d27731

See more details on using hashes here.

Supported by

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