Skip to main content

Library for handling CPI data

Project description

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)

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

cpilib-0.3.1.tar.gz (153.5 kB view details)

Uploaded Source

Built Distribution

cpilib-0.3.1-py3-none-any.whl (151.8 kB view details)

Uploaded Python 3

File details

Details for the file cpilib-0.3.1.tar.gz.

File metadata

  • Download URL: cpilib-0.3.1.tar.gz
  • Upload date:
  • Size: 153.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.9.7 Darwin/23.1.0

File hashes

Hashes for cpilib-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2a82000c38fbae1ee0588adbed0603f177d212c4e54cf0be20afa14fa66e45b6
MD5 31c994ef36b8555b47901d0ce0a8add6
BLAKE2b-256 fd8fcbdc096fcefbff4be3c3eaeb36729e1b3c8ff4ffedb94fa6140f5414edb5

See more details on using hashes here.

File details

Details for the file cpilib-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cpilib-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 151.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.9.7 Darwin/23.1.0

File hashes

Hashes for cpilib-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bca243c8127b90634170e4d3d60a0c6eab53d765813fcd379ef2014855efc642
MD5 4954bf2f316c7c493667c2412bedb6eb
BLAKE2b-256 73ed9257f0b53b895c3681c698d890c00b581c7f5a046ab4efda881e83f11e2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page