Beispiel #1
0
def compile(script, vars={}, library_paths=[]):
    """
    Compile a jq script, retuning a script object.

    library_paths is a list of strings that defines the module search path.
    """

    return _pyjq.Script(script.encode("utf-8"), vars=vars, library_paths=library_paths)
Beispiel #2
0
def compile(script, vars={}):
    """
    Compile a jq script, retuning a script object.
    """
    return _pyjq.Script(script.encode('utf-8'), vars=vars)