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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file uba-calqlator-1.2.2.tar.gz.

File metadata

  • Download URL: uba-calqlator-1.2.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for uba-calqlator-1.2.2.tar.gz
Algorithm Hash digest
SHA256 97593dd783c279a0999f956fc4b9957ca0e824efea836dcaa729dbea869196b6
MD5 4c89678fdb505680182542d8916a8d16
BLAKE2b-256 48745360bb8ee827dfd6afd2bff01e36736c5a0de820f8974f7c99370fb31e14

See more details on using hashes here.

File details

Details for the file uba_calqlator-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: uba_calqlator-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for uba_calqlator-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0de49beed381ef8b3c7939cb9a5054fd8665b9b7dbdec083edcb5f54f9108d
MD5 7d8d6fca57a8d4d8b88540d463588de0
BLAKE2b-256 c31f213022a68e7c8d3210c761c7c33473d4240a538a0cbb5dcb61eac8f7655f

See more details on using hashes here.

Supported by

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