Skip to main content

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
├── Signals
│   ├── Channel
│   └── Signal
├── Workitems
│   ├── Annotation
│   ├── Assessment
│   ├── AssignedElement
│   ├── Failure
│   ├── Media
│   ├── MediaReference
│   ├── PanoramaImage
│   ├── PanoramicTour
│   └── WorkorderItem

Getting Started

  1. Install by: pip install AIH_SDK
  2. Initialize AIHClient by: AIH_SDK.AIHClient.AIHClient(environment_to_connect_to, client_id, client_secret)
  3. Get objects from APIs. Example of getting a main system: from AIH_SDK.Assets import MainSystem; mainsystem = MainSystem().get(guid)
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ZEVIT_AIH_SDK-0.5.2.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

ZEVIT_AIH_SDK-0.5.2-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file ZEVIT_AIH_SDK-0.5.2.tar.gz.

File metadata

  • Download URL: ZEVIT_AIH_SDK-0.5.2.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15

File hashes

Hashes for ZEVIT_AIH_SDK-0.5.2.tar.gz
Algorithm Hash digest
SHA256 a300d46ba2e74cd881adfd93de29e6cc38a435dba539b34ad96bf82c55e98b2c
MD5 4a5753a9bc459bf068b41f219730d86d
BLAKE2b-256 ac21f6102dc116b4b28f746a2bf62114e8376a87456c14588d1e39e90bf42bb0

See more details on using hashes here.

File details

Details for the file ZEVIT_AIH_SDK-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ZEVIT_AIH_SDK-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15

File hashes

Hashes for ZEVIT_AIH_SDK-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43b56f61b015e74a897f6c244c57c5ebf28a6d3ed347db7d4ad7ab285c4b1103
MD5 1c5f476878d287a475b3524ad7d4809c
BLAKE2b-256 ebd446746d8a781257dc04760ec5fe5732469e1a86cbf5c37a5753b4486f454a

See more details on using hashes here.

Supported by

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