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.40.1.tar.gz
(60.4 kB
view hashes)
Built Distribution
seven2one-2.40.1-py3-none-any.whl
(68.2 kB
view hashes)
Close
Hashes for seven2one-2.40.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9dd6c4e8a6c7c52ae0cd50c4c5a58046b2f493cd1c271c42b7b415dfc9fccf |
|
MD5 | a9a81541f3277d6842c6ed39882df800 |
|
BLAKE2b-256 | d19f22b85ae0b99602d04f9d6c86b2be31375ad969d1bd6609f7c134e6a2be87 |