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.16.3.tar.gz
(24.7 kB
view hashes)
Built Distribution
seven2one-1.16.3-py3-none-any.whl
(31.4 kB
view hashes)
Close
Hashes for seven2one-1.16.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98ed08e4e94e84a7bad57c0cc75834c34d72e0d560f8943772143b43c3ade07 |
|
MD5 | 23bb4d40b4fdd91dec401774cfa3dfa8 |
|
BLAKE2b-256 | 6cae86ea9f15e5d1360ce58676b285600699926182d1a2617b473738a171a555 |