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
- Clone este repositório ou faça download do pacote:
https://github.com/nukhes/ipeaindices
cd ipeaindices
- Crie e ative um ambiente virtual:
python3 -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate.bat # Windows
- 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipeaindices-0.1.0.tar.gz | 3.7 kB | Without provenance | Details for ipeaindices-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipeaindices-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ipeaindices-0.1.0-py3-none-any.whl |
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
|
Security for ipeaindices 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.