Tags: dmlb2000/python-jsonpath2
Tags
Fix the deploy pipeline (pacifica#57) Build the package so the publish can pick them up Signed-off-by: David ML Brown Jr <dmlb2000@gmail.com>
v0.4.4: Requirements and Pipeline Fixes (pacifica#49) May the fourth be with you! - Pull pacifica#48 Cleanup Requirements by [@dmlb2000](https://github.com/dmlb2000) - Fixed pacifica#46 Resolve pip>20 Compatability by [@chrisBLIT](https://github.com/chrisBLIT) Signed-off-by: David Brown <dmlb2000@gmail.com>
Add Changelog for v0.4.3 (pacifica#44) Signed-off-by: David Brown <dmlb2000@gmail.com>
Minor Fixes and Testing Improvements (pacifica#41) This adds a Changelog entry for version 0.4.2. - Fixed pacifica#35 fix array slice parse by [@markborkum](https://github.com/markborkum) - Fixed pacifica#40 test Python 3.8 and use bionic by [@dmlb2000](https://github.com/dmlb2000) Signed-off-by: David Brown <dmlb2000@gmail.com>
- Fixed pacifica#31 fix array slice end overrun by [@dmlb2000](https:… …//github.com/dmlb2000) (pacifica#33) Signed-off-by: David Brown <dmlb2000@gmail.com>
Add Changelog v0.4.0 (pacifica#29) Signed-off-by: David Brown <dmlb2000@gmail.com>
Generalize subscripts using collections.abc module (pacifica#23) Closes pacifica#20
Implement callable subscripts (pacifica#14) * Implement callable subscripts Implements `length()` function for JSON arrays, and `entries()`, `keys()` and `values()` functions for JSON objects. * Resolve autopep8 and pylint warnings * Resolve pylint warnings * Resolve flake8 E501 warning * Call length() on JSON string * Resolve pylint warnings * Resolve pylint warnings * Fix pre-commit and update pylint Signed-off-by: David Brown <dmlb2000@gmail.com> * Resolve pylint warnings * Resolve pylint warnings * Implement subscript(number[,number]) callable subscript * 100% coverage * Resolve pylint warnings * Resolve pylint warnings * Resolve pylint warnings * Resolve pylint warnings * Resolve pylint warnings * Resolve pylint warnings * Resolve pylint warnings * Resolve pylint warnings * Rename callable subscript classes * Implement Array.entries, Array.keys and Array.values methods * Update README.md * Remove unnecessary diffs * Rename __match__ to __call__ * Move callable subscript names into class properties * Construct dictionary of callable subscripts * Resolve pylint warnings * Update README.md * Update typing for callable subscripts * track provenance of callable subscript arguments * Resolve pylint warnings * Rename "number" to "int" * Document callables in README * Transform list into table * Add link to pull request
Fix pacifica#17 Add Python 3.7 Testing (pacifica#18) * Fix pacifica#17 Add Python 3.7 Testing This adds Python 3.7 testing. Signed-off-by: David Brown <dmlb2000@gmail.com> * Fix pacifica#17 Add Python 3.7 Testing This adds Python 3.7 testing. Signed-off-by: David Brown <dmlb2000@gmail.com> * Fix Pylint 2.x Issues Signed-off-by: David Brown <dmlb2000@gmail.com>
Subscriptable JSONPaths (pacifica#12) * Implement JSONPath Copy files from https://github.com/markborkum/pacifica-jsonpath@jsonpath2 and merge conflicts. * Fix some Flake8 warnings * Initial pre-commit run Signed-off-by: David Brown <dmlb2000@gmail.com> * Test parse_str method. * Operator callables should be static Flake8 warned that the operator callables were globals. In a previous commit, the operator callables were refactored into method-locals in the operator's constructor. This is sufficient to resolve the flake8 warnings, but introduces a bug: since callables are created per instance, they have different memory locations, and hence, are not compatible with the `Node`-level definition of `__eq__`, which naively compares each `__dict__` of each operand. The fix is to refactor the operator callables into static methods. * pre-commit fixes * add some bookstore examples for testing Signed-off-by: David Brown <dmlb2000@gmail.com> * pre-commit fixes Signed-off-by: David Brown <dmlb2000@gmail.com> * Rollback modification to grammar * Fix bookstore tests In previous implementations of JSONPath, the current value is implicitly cast to array or object if the next node is an array index subscript or object index subscript. This introduces ambiguity: "is the index subscript referring to the current value, or a child value of the current value?" The solution is to use the wildcard "*" to refer to the child values explicitly. * add more testing to increase coverage Signed-off-by: David Brown <dmlb2000@gmail.com> * pre-commit fix Signed-off-by: David Brown <dmlb2000@gmail.com> * more testing coverage * Improve slice notation Aim for feature parity with equivalent in Python programming language * Tests to increase coverage * pre-commit fixes * fix pre-commit * try some more non-sense tests * add array to test * Python 3.5 doesn't seem to be working great * Add coverage pragmas * More coverage tests * try getting pre-commit and testing right * subscriptable JSONPaths * Resolve flake8 E902, F401, F601 warnings * Resolve pep257 warnings * Resolve pep257 warning * Resolve autopep8 warnings * Resolve pylint warnings * Resolve flake8 F821 warning * Resolve pylint warnings * Resolve autopep8 warnings * Resolve pylint warnings (hopefuly...) * Array index subscript for integers only * Rename variable * Golf down __jsonpath__ implementation * Rename subscript: "path" to "node"
PreviousNext