Liking cljdoc? Tell your friends :D

libpython-clj.python.bridge

Bridging classes to allow python and java to intermix.

Bridging classes to allow python and java to intermix.
raw docstring

->numpyclj

(->numpy item & [options])

as-dictclj

(as-dict map-data)

as-jvmclj

(as-jvm item & [options])

Bridge a python object into the jvm. Attempts to build a jvm bridge that 'hides' the python type. This bridge is lazy and noncaching so use it wisely; it may be better to just copy the type once into the JVM. Bridging is recursive so any subtypes are also bridged if possible or represented by a hashmap of {:type :value} if not.

Bridge a python object into the jvm.  Attempts to build a jvm bridge that 'hides' the
python type.  This bridge is lazy and noncaching so use it wisely; it may be better to
just copy the type once into the JVM.  Bridging is recursive so any subtypes are also
bridged if possible or represented by a hashmap of {:type :value} if not.
raw docstring

as-numpyclj

(as-numpy item & [options])

as-py-fnclj

(as-py-fn jvm-fn)

as-pythonclj

(as-python item & [options])

Bridge a jvm object into python

Bridge a jvm object into python
raw docstring

as-tupleclj

(as-tuple item-seq)

bridge-pyobjectcljmacro

(bridge-pyobject pyobj interpreter & body)

bridgeable-jvm-type?clj

(bridgeable-jvm-type? jvm-obj)

bridgeable-python-type-setclj


bridgeable-python-type?clj

(bridgeable-python-type? pyobj)

check-py-method-returnclj

(check-py-method-return retval)

check-pybool-returnclj

(check-pybool-return retval)

datatype->ptr-type-nameclj

(datatype->ptr-type-name dtype)

descriptor->numpyclj

(descriptor->numpy {:keys [ptr shape strides datatype] :as buffer-desc})

dtype->py-dtype-mapclj


generic-python-as-jvmclj

(generic-python-as-jvm pyobj)

Given a generic pyobject, wrap it in a read-only map interface where the keys are the attributes.

Given a generic pyobject, wrap it in a read-only map interface
where the keys are the attributes.
raw docstring

generic-python-as-listclj

(generic-python-as-list pyobj)

generic-python-as-mapclj

(generic-python-as-map pyobj)

impl-tuple-functioncljmacro

(impl-tuple-function & body)

jvm-fn->ifaceclj

(jvm-fn->iface jvm-fn)

jvm-iterable-as-pythonclj

(jvm-iterable-as-python jvm-data)

jvm-iterator-as-pythonclj

(jvm-iterator-as-python item)

jvm-list-as-pythonclj

(jvm-list-as-python jvm-data)

jvm-map-as-pythonclj

(jvm-map-as-python jvm-data)

numpy->descclj

(numpy->desc np-obj)

obj-dtype->dtypeclj

(obj-dtype->dtype py-dtype)

py-dtype->dtype-mapclj


python-iterable-as-jvmclj

(python-iterable-as-jvm pyobj)

wrap-jvm-contextcljmacro

(wrap-jvm-context & body)

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

× close