Skip to content

BlueprismWorld/Run-python-in-Blueprism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Python VBO

By using this VBO we can run python code directly in blueprism.

Instructions

  1. Download zip file and extract.
  2. Place the Python.Runtime.dll to Blueprism installed folder.
  3. Import the .bprelese file.
  4. In process provided example usage of each action of Python VBO.

Features:

  1. Run python script or .py files.
  2. Install or Uninstall modules from https://pypi.org/ in VBO only.
  3. Get installed modules List.
  4. Use mixer of python and .Net modules/libraries in python code.
  5. Ready to use Python VBO(almost main actions are available).
  6. Included example usage actions in process.

How to pass parameters from BP to python script.

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:

picture alt

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.

How to install/uninstall modules:

By using Install Pip Module/Uninstall Pip Module actions can install/uninstall modules.

How to set modules path:

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.

Note:

First call IntialisePython action before using other actions from the Python VBO.

How it works.

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published