sileht / python-jsonpath-rw-ext

Extensions for JSONPath RW
Apache License 2.0
59 stars 19 forks source link

Added convenience shortcut functions. #12

Closed ernoc closed 6 years ago

ernoc commented 7 years ago

In the re.match style; examples:

import jsonpath_rw_ext as jp
print jp.match('$.cow[*]', {'cow': ['foo', 'bar'], 'fish': 'foobar'})
# prints ['foo', 'bar']

print jp.match1('$.cow[*]', {'cow': ['foo', 'bar'], 'fish': 'foobar'})
# prints 'foo'
ghost commented 6 years ago

Tests FAILURE for HEAD 0890c0f0f6d7874ffda964f86727c7c1a288ae51

ernoc commented 6 years ago

Thanks for the feedback. Travis job is failing with InterpreterNotFound: python3.3, I don't know where that comes from...

sileht commented 6 years ago

Perfect, the python3.3 is gone from the travis CI. I have move the CI to 3.5 and 3.6 instead.

ghost commented 6 years ago

Tests FAILURE for HEAD 0890c0f0f6d7874ffda964f86727c7c1a288ae51

ghost commented 6 years ago

Tests FAILURE for HEAD 0890c0f0f6d7874ffda964f86727c7c1a288ae51