[ create a new paste ] login | about

Link: http://codepad.org/f8CL1P1x    [ raw code | fork ]

Python, pasted on Jun 10:
$ python
Python 2.7.6 (default, Nov 19 2013, 14:59:07)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyjq
>>> help(pyjq)
Help on module pyjq:

NAME
    pyjq

FILE
    /Users/s2092651/.virtualenvs/pyjq/lib/python2.7/site-packages/pyjq.py

FUNCTIONS
    apply(script, value, **kw)
        Transform object by jq script, returning all results as list.

    compile(script, **kw)
        Compile a jq script, retuning a script object.

    first(script, value, default=None, **kw)
        Transform object by jq script, returning the first result.
        Return default if result is empty.

    one(script, value, **kw)
        Transform object by jq script, returning the first result.
        Raise ValueError unless results does not include exactly one element.


>>>


Create a new paste based on this one


Comments: