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-2.25.0.tar.gz
(33.6 kB
view hashes)
Built Distribution
seven2one-2.25.0-py3-none-any.whl
(44.5 kB
view hashes)
Close
Hashes for seven2one-2.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b5e36f6f1220aa674e211eadc0438f1399dd9714b2e077abe02fe0d9e6c82d |
|
MD5 | e31937ac2b42d9b065db4d50a4748af7 |
|
BLAKE2b-256 | 533f5f776f7179b3b29d8eb4f79a5684176e65dedb5bde5e175bb05c85f2404a |