CPI-Lib
Python Library to handle CPI data.
Installation
pip install cpilib
Usage
from cpilib import HICP
# Will fetch new data if the data from cache (if any)
# is older than 1 week (time_limit in days)
hicp = HICP.from_cache(time_limit=7)
# COICOP code
node = 'CP01'
# Country code
country = 'DE'
# DataFrame of the prices of the children of (node, country)
price_children = hicp.prices.children(node, country)
# DataFrame of the weights of the children of (node, country)
weight_children = hicp.weights.children(node, country)
# Series of the weights of (node, country)
total_weight = hicp.weights.node(node, country) # Yearly (int)
Metadata
Release files for cpilib 0.3.1
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 |
|---|---|---|---|---|
| cpilib-0.3.1.tar.gz | 153.5 kB | Without provenance | Details for cpilib-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cpilib-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for cpilib-0.3.1-py3-none-any.whl |
Total release size: 305.3 kB
Release files / cpilib-0.3.1.tar.gz
| Download URL | cpilib-0.3.1.tar.gz |
|---|---|
| Size | 153.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a82000c38fbae1ee0588adbed0603f177d212c4e54cf0be20afa14fa66e45b6
|
|
BLAKE2b-256 checksum How to use checksums |
fd8fcbdc096fcefbff4be3c3eaeb36729e1b3c8ff4ffedb94fa6140f5414edb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.9.7 Darwin/23.1.0
|
Release files / cpilib-0.3.1-py3-none-any.whl
| Download URL | cpilib-0.3.1-py3-none-any.whl |
|---|---|
| Size | 151.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bca243c8127b90634170e4d3d60a0c6eab53d765813fcd379ef2014855efc642
|
|
BLAKE2b-256 checksum How to use checksums |
73ed9257f0b53b895c3681c698d890c00b581c7f5a046ab4efda881e83f11e2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.9.7 Darwin/23.1.0
|
Security for cpilib 0.3.1
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.