Functions to interact with the Seven2one TechStack
Project description
Usage
Connect
from seven2one import *
client = TechStack(host, user, password)
# More parameters
client = TechStack(host, user, password, copyGraphQLString=True, logLevel="INFO")
Basic read operations
client.inventories()
client.items('appartments', references=True)
client.inventoryProperties('appartments')
client.propertyList('appartments', references=True, dataTypes=True)
Write operations
Create inventory
properties = [
{
'dataType': 'DATE_TIME_OFFSET',
'name': 'fieldDATETIMEOFFSET',
'nullable': True
},
{
'dataType': 'BOOLEAN',
'name': 'fieldBOOLEAN',
'nullable': True
}
]
client.createInventory('testInventory', properties)
Add (basic) items
items = [
{
"fieldSTRING": "bla",
"fieldDECIMAL": 0,
"fieldLONG": 0,
"fieldINT": 0,
"fieldBOOLEAN": True,
"fieldDATETIME": "2021-09-14T00:00:00.000Z",
"fieldDATETIMEOFFSET": "2021-09-14T00:00:00.000Z"
}
]
addBasicItems('testInventory', items)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
seven2one-2.38.2.tar.gz
(54.3 kB
view hashes)
Built Distribution
seven2one-2.38.2-py3-none-any.whl
(60.0 kB
view hashes)
Close
Hashes for seven2one-2.38.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40df446c8e52ebb83e198b2e78fc710fdb2aea4606c03a8061cb9696ce3564d1 |
|
MD5 | 714824d916a58fdb6ebc922c8d65500a |
|
BLAKE2b-256 | 52ad1fc75dc04365fcf6bad7e9b5d0baf3b9c554179d0ab4b9ba4474862d9a22 |