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 AIH's Asset Integrity Hub.

Project is divided structured as follows:

AIH_SDK
├── AIHClient
├── v1
│   ├── Annotation
│   ├── Assessment
│   ├── Deviation
│   ├── Media
│   ├── MediaReference
│   ├── PanoramaImage
│   ├── PanoramicTour
│   └── WorkorderItem
├── v2
│   ├── DataProcessing
│   │   ├── Job
│   │   └── JobConfiguration
│   └── Assets
│   │   ├── Equipment
│   │   └── MainSystem

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 v1 and v2 APIs. Example of getting a main system: mainsystem = AIH_SDK.v2.MainSystem.MainSystem().get(guid)
  4. objects supports CRUD operation in form of get, post, put, and delete.

Object design

Objects store the information fetch from the APIs in the self.value

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()
  • get_value()
  • update_values()
  • to_dataframe()
  • from_dataframe()
  • inner_join()

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

Uploaded Source

Built Distribution

ZEVIT_AIH_SDK-0.1.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ZEVIT_AIH_SDK-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.4

File hashes

Hashes for ZEVIT_AIH_SDK-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59c4d3b5a40efbf4d1e953356be03d5014289186a27082fef8ed17c740ad9f3b
MD5 26b06bb8010d3a0f466b29489ab040e6
BLAKE2b-256 3d27e03ceab218f87384b654e007938f5777c01d8151e98e3af33e00793ab082

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ZEVIT_AIH_SDK-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.4

File hashes

Hashes for ZEVIT_AIH_SDK-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a18a53190acb0b273fc104db4d5dba5ea4bce88b2d3818f8bcd7706c602b7d0
MD5 6f2905179784b59e94a911693b428eaf
BLAKE2b-256 d2ffc1165ba2ce03740fe235e39eea5575691c16750188f55a0cf6c7af49f7b3

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