This repo demonstrates how the WKC API can be used to perform quick updates in bulk for some laborious tasks when done through the UI.
- Cloud Pak for Data
4.0
or above - Github Desktop https://desktop.github.com/
- Git (optional for integration with VSC) https://git-scm.com/downloads
- Python
3.8
or above https://www.python.org/downloads/ - Visual Studio Code (VSC) https://code.visualstudio.com/
- Python Extension of VSC https://code.visualstudio.com/docs/python/python-tutorial
- Make sure the prerequisites are installed.
- clone this github repository.
- Install necessary dependencies:
pip install -r requirements.txt
- Create
.env
file with Secrets:
cp .envExample .env
- Beginners Guide to Python: https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
- Programmers Guide to Python: https://wiki.python.org/moin/BeginnersGuide/Programmers
- Getting Stared with Pandas: https://pandas.pydata.org/docs/getting_started/index.html
Following are the key use cases that are covered in this repo
- Session class
- Hostname, User, Pwd or API Key
- Headers, Token
https://www.ibm.com/docs/en/SSQNUZ_4.6.x/cpd/get-started/api-keys.html
- Using Global Search to demonstrate how to find artefacts in WKC
- How to export a list of all data assets along with their columns and descriptions in a specific catalog and write these into a CSV
- Now the CSV can be manipulated by a business user in that for instance a description can be added or modified
- Then the CSV can be imported and all descriptions contained therein will updated updated in the catalog