Skip to main content

A package to work with Infoworks via SDK. This library is compatible with Infoworks v6.2.0 onwards. Code can be found in https://github.com/Infoworks/InfoworksPythonSDK branch: release/sdk-5.1

Project description

Infoworks Python SDK

Introduction

The Infoworks Python library provides convenient access to the Infoworks v3 APIs from applications written in the Python language.

It includes pre-defined set of functions performing various actions.


Supports Infoworks version 5.3 onwards

Table of Contents

Infoworks SDK Usage GIF

Documentation

https://infoworks.github.io/infoworks-python-sdk/

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install infoworkssdk

Requirements

Python 3.4+ (PyPy supported)

Usage

The library needs to be configured with your user's refresh token key which is available in your Infoworks UI. Set refresh_token to its value.

Steps to get refresh token:

https://docs.infoworks.io/infoworks-5.5.0/developer-resources/rest-api#using-refresh-token

from infoworks.sdk.client import InfoworksClientSDK
# Your refresh token here
protocol="https"
host="<your infoworks hostname>"
port="443"
refresh_token = "<your_refresh_token>"
# Initialise the client
iwx_client = InfoworksClientSDK()
iwx_client.initialize_client_with_defaults(protocol=protocol, ip=host, port=port, refresh_token=refresh_token)

Example

Create Oracle Source

src_create_response = iwx_client.create_source(source_config={
            "name": "iwx_sdk_srcname",
            "type": "rdbms",
            "sub_type": "oracle",
            "data_lake_path": "/iw/sources/iwx_sdk_srcname",
            "environment_id": "",
            "storage_id": "",
            "is_source_ingested": True
        })

Support

If you need any support or assistance, please contact customer-engineering@infoworks.io

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

infoworkssdk-5.1.0.tar.gz (154.6 kB view details)

Uploaded Source

Built Distribution

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

infoworkssdk-5.1.0-py3-none-any.whl (187.7 kB view details)

Uploaded Python 3

File details

Details for the file infoworkssdk-5.1.0.tar.gz.

File metadata

  • Download URL: infoworkssdk-5.1.0.tar.gz
  • Upload date:
  • Size: 154.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for infoworkssdk-5.1.0.tar.gz
Algorithm Hash digest
SHA256 684e7dd235355bec25f3c4d478ef0ad1933f18b9708097f7dc2cc170f5018354
MD5 ec35e34d8469c4a6277f40124eceb2d2
BLAKE2b-256 46d71389114ea14c9c2fabedb0bdff0662c542d64c165372d0e3d4a7a409f155

See more details on using hashes here.

File details

Details for the file infoworkssdk-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: infoworkssdk-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 187.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for infoworkssdk-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1112fd33cbf15aa9fd333a1dbaafa3eb6a3edd152e71cbeb9fdcbb37496a94c
MD5 a7b1a88463dbc526438ebe12d6998886
BLAKE2b-256 5aee473766520dd3d6dc09edd29f34a0433b36d6eea6d260bd42402854e218cf

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