(_> [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
(__ 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.
(append-paths libpaths)
Appends a vector of paths to the python system path.
Appends a vector of paths to the python system path.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(py-import-obj lib obj & objs)
Import objects from lib.
Import objects from lib.
(pyobj-iterate pyobj)
Access 'PyObjectDerived' items as Lazy Seq.
Access 'PyObjectDerived' items as Lazy Seq.
(pyobj-nth o i)
Nth item in a 'PyObjectDerived'.
Nth item in a 'PyObjectDerived'.
(pyobj-range o start end)
Access 'PyObjectDerived' items as non-lazy range.
Access 'PyObjectDerived' items as non-lazy range.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close