Skip to main content

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)

Source distribution for cpilib 0.3.1
File Size Uploaded
cpilib-0.3.1.tar.gz 153.5 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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