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.24.1.tar.gz
(31.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seven2one-2.24.1.tar.gz.
File metadata
- Download URL: seven2one-2.24.1.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25c2ee954710278046d0249795d65b17f11be895a77812ac3e7aed313e678337
|
|
| MD5 |
f936033c304e8ac6e7b3aef8becce85f
|
|
| BLAKE2b-256 |
ba04bcbfabc701f623007863e24799d9cc922f74e9bc9d992c927e2a6c816a2d
|
File details
Details for the file seven2one-2.24.1-py3-none-any.whl.
File metadata
- Download URL: seven2one-2.24.1-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c5bcce76dbf55585d88d0335d402e30537aeeb19efc97aab4772a569bb7aa7
|
|
| MD5 |
c4eba0bd5a5df8e191a42104074b8b4b
|
|
| BLAKE2b-256 |
cc42d0961cabe4887468674955cc3342fe8d7c941e2e906d2820249de9536f74
|