/usr/lib/python2.7/dist-packages/jmespath/__init__.py is in python-jmespath 0.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from jmespath import parser
__version__ = '0.2.1'
def compile(expression, debug=False):
return parser.Parser(debug=debug).parse(expression)
def search(expression, data, debug=False):
return parser.Parser(debug=debug).parse(expression).search(data)
|