Python SDK to connect with ZEVIT Asset Integrity Hub
Project description
Introduction
This project makes it possible to easily interact with the objects in ZEVIT's Asset Integrity Hub.
Project is structured as follows:
AIH_SDK
├── AIHClient
├── Assets
│ ├── Equipment
│ ├── MainSystem
│ └── Plant
├── DataProcessing
│ ├── Job
│ ├── JobConfiguration
│ └── JobDefinition
├── DataUpload
│ ├── DataType
│ └── File
├── Designations
│ ├── Design
│ ├── Schema
│ └── Structure
├── Signals
│ ├── Channel
│ └── Signal
├── Workitems
│ ├── Annotation
│ ├── Assessment
│ ├── AssignedElement
│ ├── Failure
│ ├── Media
│ ├── MediaReference
│ ├── PanoramaImage
│ ├── PanoramicTour
│ └── WorkorderItem
Getting Started
- Install by: pip install AIH_SDK
- Initialize AIHClient by: AIH_SDK.AIHClient.AIHClient(environment_to_connect_to, client_id, client_secret)
- Get objects from APIs. Example of getting a main system: from AIH_SDK.Assets import MainSystem; mainsystem = MainSystem().get(guid)
- Objects support CRUD operation in form of post, get, put, and delete.
Object design
Objects store the information fetched from the APIs in the self.value of the object
self.value can either be a dict containing one instance or be a list containing multiple dicts, representing multiple objects.
Objects all contain following methods:
- get()
- put()
- post()
- delete()
- copy()
- get_value()
- set_value()
- update_values()
- to_dataframe()
- get_keys()
- filter()
- from_dataframe()
- from_dict()
- from_list()
- join()
Methods that modifies the object operates inplace, but also returns the obejct itself to allow chaining of methods.
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
Built Distribution
File details
Details for the file ZEVIT_AIH_SDK-0.4.2.tar.gz
.
File metadata
- Download URL: ZEVIT_AIH_SDK-0.4.2.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec5586aea3b62554e3a3933911bed967964fb7cee8cfe31d38ad748d90f42db |
|
MD5 | 3bdaccc46d9c70779f0040a1c6affa1f |
|
BLAKE2b-256 | cab173d615dac9de40f55e742af6855f4c16efb7d2308dee78e7c581b424858c |
File details
Details for the file ZEVIT_AIH_SDK-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: ZEVIT_AIH_SDK-0.4.2-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b58f12da40836f8a33345579b0b0f19d06e4e92ce667bcdf98511c34d56cac5c |
|
MD5 | 90c4eb8f833ab843682f2c56f85323e4 |
|
BLAKE2b-256 | 004452c5de9cd37b6bdeed7056135ae488f7c14fb2da761fbc02a8a3c59dc486 |