Liking cljdoc? Tell your friends :D

rt.libpython


+init+clj


+options+clj


+preamble+clj


eval-libpythonclj

(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"
raw docstring

eval-rawclj

(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"
raw docstring

invoke-libpythonclj

(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
raw docstring

rt-libpythonclj

(rt-libpython m)

creates and starts a libpython runtime

creates and starts a libpython runtime
raw docstring

rt-libpython:createclj

(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?
raw docstring

rt-libpython?clj

(rt-libpython? obj)

checks that object is a libpython runtime

checks that object is a libpython runtime
raw docstring

start-libpythonclj

(start-libpython rt)

starts the libpython runtime

starts the libpython runtime
raw docstring

stop-libpythonclj

(stop-libpython rt)

stops the libpython runtime

stops the libpython runtime
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close