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
├── Risks
│ ├── Mitigation
│ ├── Risk
│ └── RiskAssessmentResult
├── Maintenance
│ ├── Deviation
│ ├── WorkItem
│ └── Activity
│ └── Input
├── 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.
All objects contain the 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 operate inplace, but also return the object 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.5.5.tar.gz
.
File metadata
- Download URL: ZEVIT_AIH_SDK-0.5.5.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77d740a6fbacea7c3d079139bddda6bdc6552bebcc79aca5c3b3f5a255b0e82 |
|
MD5 | 8c553ffe4816b7055fa9a9d113b1b8eb |
|
BLAKE2b-256 | af7069d23274df9619409d95f7fc788192352206b45f6624a7d807e5a5333c72 |
File details
Details for the file ZEVIT_AIH_SDK-0.5.5-py3-none-any.whl
.
File metadata
- Download URL: ZEVIT_AIH_SDK-0.5.5-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2251dabfb71b50a9eb1e038b3b20c355d91718d28e8666e001b73d3a3dc8718 |
|
MD5 | b16849d714c6db58f5158d50c617a37f |
|
BLAKE2b-256 | 283d0dd21824774189517f809e117d5724367bef41721deb13bd7974946bc56b |