KE-chain Python SDK
pykechain is a python library for advanced users and KE-chain configurations to connect and interact fully to all features of KE-chain, the engineering platform of KE-works. With it you can interact with KE-chain, its product information model (PIM), its workflow information model (WIM) and many other aspects of KE-chain from python scripts or iPython / Jupyter notebooks.
It requires normal user access to a KE-chain (version 2) instance for it to work.
Ensure you have member access to a KE-chain instance and login:
from pykechain import Client kec = Client(url='https://kec2api.ke-chain.com') kec.login(username='demo_user', password='pastaplease')
Now interact with it:
project = kec.scope('Bike Project') for part in project.parts(): print(part.name)
pykechain is easily installed using pip. pykechain is Python 2.7, 3.4, 3.5, 3.6 and 3.7 compatible:
pip install pykechain
Or if you want to live on the edge, install the latest and greatest from the master branch:
pip install https://github.com/KE-works/pykechain/archive/master.zip
A proper changelog is maintained in the Changelog