Skip to main content

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

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
        })

Authors

Nitin B.S (nitin.bs@infoworks.io) Abhishek Raviprasad (abhishek.raviprasad@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.0.7.tar.gz (153.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: infoworkssdk-5.0.7.tar.gz
  • Upload date:
  • Size: 153.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.5

File hashes

Hashes for infoworkssdk-5.0.7.tar.gz
Algorithm Hash digest
SHA256 4754b50d765b7266c6074ab48b3d14c79a3252ea27e2e7332d484d3bccd47d1a
MD5 8c5519d1b910e7e348cc8e573b333c47
BLAKE2b-256 a4355cbd5f4ac865e1e9fbd6edd9ab58fd84a7aeb2c9b4890b50b9b6cc5f844d

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