-
Notifications
You must be signed in to change notification settings - Fork 12
5.18 The Python Library: pylispe
Claude Roux edited this page Mar 26, 2025
·
4 revisions
This library is both a LispE library and a python library. It offers the possibility either to execute python code in LispE or LispE code in python, using the same library.
(deflib python() ; create a python interpreter for LispE)
(deflib python_run(py code (variable "") (timeout -1)) ; run a piece of code and returns the result in an optional variable, a timeout can be set as well)
(deflib python_runmodule(py name code (variable "")) ;run a module, with the final value in an optional variable)
deflib python_getmodule(py name (variable "")) ; load a python module);
deflib python_runfile(py path) ; execute a Python file)
deflib python_setpath(py path) ; set a path to find Python libraries)
deflib python_import(py path) ; import a module or a library)
deflib python_execute(py name arguments) ; execute a function)
deflib python_simple(py code) ; use python_simple to execute code)
deflib python_close(py) ; close the python interpreter)