Skip to main content

Índices do IPEA de forma simples

Project description

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)

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

ipeaindices-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

ipeaindices-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file ipeaindices-0.1.0.tar.gz.

File metadata

  • Download URL: ipeaindices-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for ipeaindices-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3cbb482463ad16a6074d66cf499b8f76ed649a514952406937e635806de8ee31
MD5 9003696cc4467a960906713a3503618b
BLAKE2b-256 312076891c3a0384c8b92c701c9080452b6e8afc1ab60990f76ca04fae607a3f

See more details on using hashes here.

File details

Details for the file ipeaindices-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipeaindices-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for ipeaindices-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 147cd9c33f5e077695acfe0571e84f72cf95f3e527edd22fc5c4eefb46b0a79d
MD5 14ad478d8c69c3f7c12b116c6aa71ace
BLAKE2b-256 495afdbc0c80c5d86bced413778584c89df1ed0a566a55013c12f9a9ac2dd292

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