Skip to content

Tags: pacifica/python-jsonpath2

Tags

v0.4.5

Toggle v0.4.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix the deploy pipeline (#57)

Build the package so the publish can pick them up

Signed-off-by: David ML Brown Jr <[email protected]>

v0.4.4

Toggle v0.4.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
v0.4.4: Requirements and Pipeline Fixes (#49)

May the fourth be with you!

- Pull #48 Cleanup Requirements by [@dmlb2000](https://github.com/dmlb2000)
- Fixed #46 Resolve pip>20 Compatability by [@chrisBLIT](https://github.com/chrisBLIT)

Signed-off-by: David Brown <[email protected]>

v0.4.3

Toggle v0.4.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add Changelog for v0.4.3 (#44)

Signed-off-by: David Brown <[email protected]>

v0.4.2

Toggle v0.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Minor Fixes and Testing Improvements (#41)

This adds a Changelog entry for version 0.4.2.

- Fixed #35 fix array slice parse by [@markborkum](https://github.com/markborkum)
- Fixed #40 test Python 3.8 and use bionic by [@dmlb2000](https://github.com/dmlb2000)

Signed-off-by: David Brown <[email protected]>

v0.4.1

Toggle v0.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
- Fixed #31 fix array slice end overrun by [@dmlb2000](https://github…

….com/dmlb2000) (#33)

Signed-off-by: David Brown <[email protected]>

v0.4.0

Toggle v0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add Changelog v0.4.0 (#29)

Signed-off-by: David Brown <[email protected]>

v0.3.1

Toggle v0.3.1's commit message
Generalize subscripts using collections.abc module (#23)

Closes #20

v0.3.0

Toggle v0.3.0's commit message
Implement callable subscripts (#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 <[email protected]>

* 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

v0.2.1

Toggle v0.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix #17 Add Python 3.7 Testing (#18)

* Fix #17 Add Python 3.7 Testing

This adds Python 3.7 testing.

Signed-off-by: David Brown <[email protected]>

* Fix #17 Add Python 3.7 Testing

This adds Python 3.7 testing.

Signed-off-by: David Brown <[email protected]>

* Fix Pylint 2.x Issues

Signed-off-by: David Brown <[email protected]>

v0.2.0

Toggle v0.2.0's commit message
Subscriptable JSONPaths (#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 <[email protected]>

* 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 <[email protected]>

* pre-commit fixes

Signed-off-by: David Brown <[email protected]>

* 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 <[email protected]>

* pre-commit fix

Signed-off-by: David Brown <[email protected]>

* 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"