Functions to interact with the Seven2one TechStack
Project description
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-1.19.0.tar.gz
(27.6 kB
view hashes)
Built Distribution
seven2one-1.19.0-py3-none-any.whl
(34.4 kB
view hashes)
Close
Hashes for seven2one-1.19.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cace036ed57f6ef7f4f4f7a5332cd8a8f84c7274ce8653795dedb256099e1cfb |
|
MD5 | 1d8d28bf046a1a9ac587c1472b4f2b1b |
|
BLAKE2b-256 | c53269198a456c1766d24da8e119915304c3ea31c963bff1a1c590f60edab45d |