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.21.5.tar.gz
(31.9 kB
view hashes)
Built Distribution
seven2one-1.21.5-py3-none-any.whl
(38.5 kB
view hashes)
Close
Hashes for seven2one-1.21.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4fde4205701675fab5746fddfff97720078a2c7ec3a4bfca28b4c538da0c3c |
|
MD5 | 21cb8cfdc1c1e08ed73bcb78fc79298c |
|
BLAKE2b-256 | 9b07948a8dbd4f0f4d6b31948f41f3cead1d7449d8e6a35c631944e2e954bd32 |