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.2.5.tar.gz (153.4 kB view details)

Uploaded Source

Built Distribution

cpilib-0.2.5-py3-none-any.whl (151.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cpilib-0.2.5.tar.gz
  • Upload date:
  • Size: 153.4 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.2.5.tar.gz
Algorithm Hash digest
SHA256 591be7abe52bbab38ada70dd2e9857789761d962888f85fcaffa4e3dc7d28537
MD5 9abb656713a93bb80881c111065887d5
BLAKE2b-256 53254e85fe91a65769075220ac042613e2e109f2c452321edd59c0d24c9d7311

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cpilib-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 151.6 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.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1bccfa379619ed384bd685bcb7fbab7c3484389d72826ed0ff00301bff4b66bd
MD5 0ff13f803b2888348851b276899841a4
BLAKE2b-256 ad55d75f6a63b5d9f14ddd2e32ab483ceecdfb363a28af191275cca7ac463dd7

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