Python interface to Eclipse Scripting API
"Pie-Sappy" for research use only.
A passion project to help accelerate breakthroughs in medical physics research by bringing the power of Python into the Varian API ecosystem.
cd
commandpython -m venv venv
pip install https://api.github.com/repos/VarianAPIs/PyESAPI/tarball
pip install jupyter
jupyter notebook
pip install https://api.github.com/repos/VarianAPIs/PyESAPI/tarball --upgrade
For those wishing to contribute to PyESAPI
Set custom ESAPI_PATH (to DLLs) before import (bypasses production directory path search)
import os
os.environ['ESAPI_PATH'] = r'C:\Users\CoolKid\Source\Magic\Bin\Debug64'
import pyesapi
# ...
To create lintable code and enable code completion (in Visual Studio Code at least) we generate python stubs for ESAPI libs...
git submodule update --init
(ironstubs)cd stubgen
stubgen.ps1
(if you hit a Pdb prompt, type continue)