Skip to main content

ipeaindices

Biblioteca Python para obter índices econômicos (IPCA, INCC-M e IGP-M).

O IPEA (Instituto de Pesquisa Econômica Aplicada) é uma fundação pública federal vinculada ao Ministério do Planejamento e Orçamento. Suas atividades de pesquisa fornecem suporte técnico e institucional às ações governamentais para a formulação e reformulação de políticas públicas e programas de desenvolvimento brasileiros. Os trabalhos do Ipea são disponibilizados para a sociedade por meio de inúmeras e regulares publicações eletrônicas, impressas, e eventos.

Instalação

Usando o pip

TODO

Manual

  1. Clone este repositório ou faça download do pacote:
https://github.com/nukhes/ipeaindices
cd ipeaindices
  1. Crie e ative um ambiente virtual:
python3 -m venv .venv  
source .venv/bin/activate      # Linux/macOS  
.venv\Scripts\activate.bat     # Windows
  1. Instale o pacote em modo “editable”:
pip install -e .

Uso

from igpmcalc.indices import get_ipca, get_incc, get_igpm

# Últimos valores disponíveis  
ipca_valor = get_ipca()  
incc_valor = get_incc()  
igpm_valor = get_igpm()

# Valores mensais de um ano específico  
valores_2024 = get_igpm(2024)

# Média anual de um único ano  
media_2024 = get_igpm(2024, average=True)

# Valores mensais de vários anos  
df_anos = get_igpm([2022, 2023])

# Média de vários anos  
media_2022_23 = get_igpm([2022, 2023], average=True)

Metadata

Release files for ipeaindices 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 ipeaindices 0.1.0
File Size Uploaded
ipeaindices-0.1.0.tar.gz 3.7 kB Details

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / ipeaindices-0.1.0.tar.gz

Download URL ipeaindices-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3cbb482463ad16a6074d66cf499b8f76ed649a514952406937e635806de8ee31
BLAKE2b-256 checksum
How to use checksums
312076891c3a0384c8b92c701c9080452b6e8afc1ab60990f76ca04fae607a3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

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

Download URL ipeaindices-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
147cd9c33f5e077695acfe0571e84f72cf95f3e527edd22fc5c4eefb46b0a79d
BLAKE2b-256 checksum
How to use checksums
495afdbc0c80c5d86bced413778584c89df1ed0a566a55013c12f9a9ac2dd292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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