Skip to main content

Functions to interact with the Seven2one TechStack via CalQlator

Project description

Initiate CalQlator

client = new TechStack(**args)
calqlator = CalQlator(client)

Set scope

inventory_name = 'TestInventory'
from_timepoint = '2010-01-11 00:00:00'
to_timepoint = '2022-12-31 23:59:59'
scope = calqlator.scope(inventory_name, from_timepoint, to_timepoint)

Load time series

target_inventory_item_id1 = 'Y5NBb7dfIe'
target_inventory_item_id2 = 'Y5NBb7vGQi'
time_series1 = scope.time_series(target_inventory_item_id1)
time_series2 = scope.time_series(target_inventory_item_id2)

Calculations with time series

calculated_time_series1 = time_series1 + time_series2 
calculated_time_series2 = time_series1 * 0.3

Write time series

target_inventory_item_id = 'YFS6yBQF7o'
scope.write(target_inventory_item_id, calculated_time_series)

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

uba-calqlator-1.2.2.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

uba_calqlator-1.2.2-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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