(eval-libpython _ string)
evals body in the runtime
(str (eval-libpython (l/rt :js) "1+1")) => "2"
evals body in the runtime (str (eval-libpython (l/rt :js) "1+1")) => "2"
(eval-raw _ string)
performs an exec expression
(str (eval-raw +js+ "1 + 1")) => "2"
performs an exec expression (str (eval-raw +js+ "1 + 1")) => "2"
(invoke-libpython {:keys [state lang layout] :as rt} ptr args)
invokes a pointer in the runtime
(invoke-libpython (l/rt :js) k/sub [1 2]) => -1
invokes a pointer in the runtime (invoke-libpython (l/rt :js) k/sub [1 2]) => -1
(rt-libpython m)
creates and starts a libpython runtime
creates and starts a libpython runtime
(rt-libpython:create {:keys [id] :or {id (h/sid)} :as m})
creates a libpython runtime
(h/-> (rt-libpython:create {:lang :js}) (h/start) (h/stop)) => rt-libpython?
creates a libpython runtime (h/-> (rt-libpython:create {:lang :js}) (h/start) (h/stop)) => rt-libpython?
(rt-libpython? obj)
checks that object is a libpython runtime
checks that object is a libpython runtime
(start-libpython rt)
starts the libpython runtime
starts the libpython runtime
(stop-libpython rt)
stops the libpython runtime
stops the libpython runtime
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close