A package to work with Infoworks via SDK. This library is compatible with Infoworks v5.34 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
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:
from infoworks.sdk.client import InfoworksClientSDK
# Your refresh token here
refresh_token = "zThziQ7MoJJPYAha+U/+PBSTZG944F+SHBDs+m/z2qn8+m/ax8Prpzla1MHzQ5EBLzB2Bw8a+Qs9r6En5BEN2DsmUVJ6sKFb2yI2"
# Initialise the client
iwx_client = InfoworksClientSDK()
iwx_client.initialize_client_with_defaults("http", "10.18.1.28", "3001", 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
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
File details
Details for the file infoworkssdk-4.0b1.tar.gz
.
File metadata
- Download URL: infoworkssdk-4.0b1.tar.gz
- Upload date:
- Size: 121.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb5b762361fabbe9269b22de07a16e58c82301965b0d0fd0b0e483939cf312c5 |
|
MD5 | 32a099f699990c9baa36ce8d73b258cd |
|
BLAKE2b-256 | 9f53a8b28bc4ff7b576c73d3a1259518698431add81dbdf2061a32b49e4cfd53 |