Skip to main content

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.10.2.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seven2one-1.10.2-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file seven2one-1.10.2.tar.gz.

File metadata

  • Download URL: seven2one-1.10.2.tar.gz
  • Upload date:
  • Size: 18.4 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

Hashes for seven2one-1.10.2.tar.gz
Algorithm Hash digest
SHA256 a4c787410f8605302b32a8f98f746e5236f0f35b348c6fadba2481daf5ed62ed
MD5 dd1c0eb07f5102c9375011e325fd9a07
BLAKE2b-256 e192dedc7ccfffb5a25dcb75295392cbdcd030f7a6e1c8b8892ecc40ffc63bbf

See more details on using hashes here.

File details

Details for the file seven2one-1.10.2-py3-none-any.whl.

File metadata

  • Download URL: seven2one-1.10.2-py3-none-any.whl
  • Upload date:
  • Size: 22.8 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

Hashes for seven2one-1.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fea333a164cd415e3fc26001c6ae0854d1305a8d253fd104b3bc72d0148387cb
MD5 ce0e16cefe5d094625e2bc892dcd87bc
BLAKE2b-256 4ba38ccf2cba881953d68e5c74d8f28a64019b17ba6bf3ac4e953f752b152d94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page