IBM-DataStage-API on Python. Please read InfoSphere DataStage Development Kit to find details.
For the correct work ctypes
with DataStage API library (32-bit or 64-bit) you need Python of the same version (32-bit or 64-bit)
PATH
on Windows should include a directory where file vmdsapi.dll
is located.
In most cases, in the ../IBM/InformationServer/Clients/Classic/
LD_LIBRARY_PATH
on *nix should include a directory where file libvmdsapi.so
and its dependencies are located.
In most cases, in the ../IBM/InformationServer/Server/DSEngine/lib/
Also activation of dsenv can help you
cd ../IBM/InformationServer/Server/DSEngine/
. ./dsenv
pip install IBM-DataStage-API
Create your own config.py
with path to DataStage API library (vmdsapi.dll
on a client or libvmdsapi.so
on a server) and configure connection's parameters.
There are two types of setting login parameters
- Using operating system user credentials of Engine tier, by default,
dsadm
+: fast work
-: doesn't support admin functions (DSAddProject, DSSetProjectProperty...)
DS_DOMAIN_NAME = ''
DS_USER_NAME = 'dsadm'
DS_PASSWORD = 'dsadm_password'
DS_SERVER = 'HOST_NAME:ENGINE_TIER_PORT'
- Using user credentials of Services tier
+: support admin functions
-: slow work
DS_DOMAIN_NAME = 'HOST_NAME:SERVICES_TIER_PORT'
DS_USER_NAME = 'user_login'
DS_PASSWORD = 'user_password'
DS_SERVER = 'HOST_NAME:ENGINE_TIER_PORT'
See Examples/config_example.py
Import classes for work in your code
from ibm_datastage_api import *
See Examples/