Liking cljdoc? Tell your friends :D

clojure-python.core


*interp*clj


_>cljmacro

(_> [class & attrs] & args)

Call attribute as a method. Basic usage: (> [class attrs ...] args ...) Usage with keyword args: (> [class attrs ...] args ... :key arg :key arg) Keyword args must come after any non-keyword args

Call attribute as a method.
Basic usage: (_> [class attrs ...] args ...)
Usage with keyword args: (_> [class attrs ...] args ... :key arg :key arg)
Keyword args must come after any non-keyword args
raw docstring

__cljmacro

(__ class attr)
(__ class attr & attrs)

Access attribute of class or attribute of attribute of (and so on) class.

Access attribute of class or attribute of attribute of (and so on) class.
raw docstring

append-pathsclj

(append-paths libpaths)

Appends a vector of paths to the python system path.

Appends a vector of paths to the python system path.
raw docstring

callclj

(call fun args & key-args)

The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.

The first len(args)-len(keywords) members of args[] are plain arguments. The
last len(keywords) arguments are the values of the keyword arguments.
raw docstring

dirclj

(dir x)

It's slightly nicer to call the dir method in this way.

It's slightly nicer to call the dir method in this way.
raw docstring

import-fncljmacro

(import-fn lib fun & funs)

This is like import but it defines the imported item as a native function that applies the python wrapper calls.

This is like import but it defines the imported item as a native function that
applies the python wrapper calls.
raw docstring

initclj

(init {:keys [libpaths] :as options})

Establish a global python interpreter. The init function is only usefully called once. Alternatively, only use with-interpreter.

Establish a global python interpreter. The init function is only usefully
called once. Alternatively, only use with-interpreter.
raw docstring

java2pyclj

(java2py args)

To wrap java objects for input as jython, and unwrap Jython output as java.

To wrap java objects for input as jython, and unwrap Jython output as java.
raw docstring

py-fncljmacro

(py-fn lib fun)

Create a native clojure function applying the python wrapper calls on a python function at the top level of the library use this where lambda is preferred over named function.

Create a native clojure function applying the python wrapper calls on a python
function at the top level of the library use this where lambda is preferred
over named function.
raw docstring

py-import-libcljmacro

(py-import-lib lib & libs)

Import lib. Defaults to use same name it has in python. If it is something like foo.bar, the name is bar.

Import lib. Defaults to use same name it has in python. If it is something
like foo.bar, the name is bar.
raw docstring

py-import-objcljmacro

(py-import-obj lib obj & objs)

Import objects from lib.

Import objects from lib.
raw docstring

pyobj-iterateclj

(pyobj-iterate pyobj)

Access 'PyObjectDerived' items as Lazy Seq.

Access 'PyObjectDerived' items as Lazy Seq.
raw docstring

pyobj-nthclj

(pyobj-nth o i)

Nth item in a 'PyObjectDerived'.

Nth item in a 'PyObjectDerived'.
raw docstring

pyobj-rangeclj

(pyobj-range o start end)

Access 'PyObjectDerived' items as non-lazy range.

Access 'PyObjectDerived' items as non-lazy range.
raw docstring

with-interpretercljmacro

(with-interpreter {:keys [libpaths] :as options} & body)

Dynamically bind a new python interpreter for the calling context.

Dynamically bind a new python interpreter for the calling context.
raw docstring

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

× close