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

Uploaded Source

Built Distribution

cpilib-0.3.0-py3-none-any.whl (151.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cpilib-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 99bd600907e600258943f8b8834b08f8697bfd3ec60c2c75e9a4285b864edec9
MD5 553944a051d3e953f47513e89448a94e
BLAKE2b-256 3c3016a8ffbc258c92c47437e6925eba76c540aa4d563d2951a3116db5529e10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cpilib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 151.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff4dff049d54db33f9cebe1805277f80622738fb4a5d1e68ca79f181e670d18a
MD5 393a592332093da0d1552aa43ab51b46
BLAKE2b-256 3643d343f18414ed5a7745491e9478216a041db9948729dc190b42ef9c7c0dec

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