Python integration
MetaPiping offers to users the possibility to manipulate data produced by the software in order to operate custom treatment.
These manipulations can be done via Python scripts, a simple and well documented language, with great free mathematical, scientific and computer libraries, appreciated by engineers.
A script contains one or more *.py files and can use a python virtual environment.
Main.py is mantadory and represents the main access to the script.
ATTENTION, the use of libraries takes place on the disk ! To be used with care.
Script types
The integration can be done at 3 different levels :
- Explorer phase- See Info page for more information
- Project/study phase - See Study page for more information
- Design phase - See Design page for more information
Main menu
Select Python in the application ribbon :
On the upper left menu, a list of buttons proposes several tools :
- Create a script for study level - See Study page for more information
- Create a script for design level - See Design page for more information
- Create a script for explorer level - See Info page for more information
- Export a script - See Pyckage page for more information
- Import a script - See Pyckage page for more information
- Remove the selected script
Screen
The screen is made up of different parts :
- The list of all scripts (of all types)
- The files (and directories) used in the script - selecting a file shows it in the editor (6)
- The properties of the script (Type, Name, Input, Output…)
- The requirements.txt of the eventual virtual environment of the script
- The chatGPT help - See chatGPT page for more information
- The Python Editor - or image viewer if you select an image in the file explorer (2)
ATTENTION : The installation of libraries and the chatGPT help needs an internet connection !