hara.runtime.libpython

+init+

+options+

+preamble+

eval-libpython

added in 4.0

(eval-libpython _ string)

evals body in the runtime

(lp/eval-libpython nil “OUT = 1 + 1”) => 2

eval-raw

added in 3.0

(eval-raw _ string)

performs an exec expression

invoke-libpython

added in 4.0

(invoke-libpython {:keys [state lang layout], :as rt} ptr args)

invokes a pointer in the runtime

(lp/invoke-libpython (l/rt :python) k/sub 1 2) => -1

rt-libpython

added in 4.0

(rt-libpython m)

creates a libpython rt

rt-libpython:create

added in 4.0

(rt-libpython:create {:keys [id], :or {id (f/sid)}, :as m})

creates a libpython runtime

(h/-> (lp/rt-libpython:create {:lang :js}) (h/start) (h/stop)) => lp/rt-libpython?

rt-libpython?

added in 4.0

(rt-libpython? obj)

checks object is a libpython rt

start-libpython

added in 3.0

(start-libpython rt)

starts the libpython runtime

stop-libpython

added in 3.0

(stop-libpython rt)

stops the libpython runtime