By using this VBO we can run python code directly in blueprism.
- Download zip file and extract.
- Place the Python.Runtime.dll to Blueprism installed folder.
- Import the .bprelese file.
- In process provided example usage of each action of Python VBO.
- Run python script or .py files.
- Install or Uninstall modules from https://pypi.org/ in VBO only.
- Get installed modules List.
- Use mixer of python and .Net modules/libraries in python code.
- Ready to use Python VBO(almost main actions are available).
- Included example usage actions in process.
By using collection we can pass parameters to python script. Example python script:
def exampleFunction(paramOne, paramTwo, paramThree):
return paramOne +" * "+ paramTwo +" * "+ paramThree #assume paramOne,paramTwo,paramThree are text.
In Blueprism collection:
Above collection we can pass params to python function, param name do not have to be same but order is manadtory, given order params will passed to python function.
After excetion of python script code output will be:
This param one * Param names do not have to be same order is mandatory * This is param three.
By using Install Pip Module/Uninstall Pip Module actions can install/uninstall modules.
Lets say for example you have bunch of modules in a folder and runtime you want use those modules in your python script in that case by using Set Module Path action we can set the path. Make sure first set module path before using.
First call IntialisePython action before using other actions from the Python VBO.
In Python_Interop.dll file embeded python standared library and python core files, when ever run IntialisePython action embeded core files will be extracted to AppData/Local folder or given path. Once extracted core files set the path where core files are extracted. and load the core files into memory.