python-jsonpath 1.2.0__tar.gz → 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/PKG-INFO +6 -6
  2. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/README.md +2 -2
  3. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/__about__.py +1 -1
  4. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/filter.py +1 -2
  5. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/pyproject.toml +2 -1
  6. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/.gitignore +0 -0
  7. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/LICENSE.txt +0 -0
  8. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/__init__.py +0 -0
  9. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/__main__.py +0 -0
  10. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/_data.py +0 -0
  11. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/cli.py +0 -0
  12. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/env.py +0 -0
  13. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/exceptions.py +0 -0
  14. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/fluent_api.py +0 -0
  15. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/__init__.py +0 -0
  16. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/arguments.py +0 -0
  17. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/count.py +0 -0
  18. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/filter_function.py +0 -0
  19. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/is_instance.py +0 -0
  20. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/keys.py +0 -0
  21. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/length.py +0 -0
  22. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/match.py +0 -0
  23. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/search.py +0 -0
  24. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/typeof.py +0 -0
  25. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/function_extensions/value.py +0 -0
  26. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/lex.py +0 -0
  27. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/match.py +0 -0
  28. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/parse.py +0 -0
  29. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/patch.py +0 -0
  30. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/path.py +0 -0
  31. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/pointer.py +0 -0
  32. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/py.typed +0 -0
  33. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/selectors.py +0 -0
  34. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/stream.py +0 -0
  35. {python_jsonpath-1.2.0 → python_jsonpath-1.2.1}/jsonpath/token.py +0 -0
@@ -1,13 +1,12 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: python-jsonpath
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: JSONPath, JSON Pointer and JSON Patch for Python.
5
5
  Project-URL: Documentation, https://jg-rp.github.io/python-jsonpath/
6
6
  Project-URL: Issues, https://github.com/jg-rp/python-jsonpath/issues
7
7
  Project-URL: Source, https://github.com/jg-rp/python-jsonpath
8
8
  Author-email: James Prior <jamesgr.prior@gmail.com>
9
- License-Expression: MIT
10
- License-File: LICENSE.txt
9
+ License: MIT
11
10
  Classifier: Development Status :: 5 - Production/Stable
12
11
  Classifier: Intended Audience :: Developers
13
12
  Classifier: License :: OSI Approved :: MIT License
@@ -18,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.9
18
17
  Classifier: Programming Language :: Python :: 3.10
19
18
  Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
22
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
23
  Requires-Python: >=3.7
@@ -91,9 +91,9 @@ conda install -c conda-forge python-jsonpath
91
91
 
92
92
  ## Related projects
93
93
 
94
- - [Python JSONPath RFC 9535](https://github.com/jg-rp/python-jsonpath-rfc9535) - An implementation of JSONPath that follows RFC 9535 much more strictly. If you require maximum interoperability with JSONPath implemented in other languages - at the expense of extra features - choose python-jsonpath-rfc9535 over python-jsonpath.
94
+ - [JSONPath RFC 9535](https://github.com/jg-rp/python-jsonpath-rfc9535) - A Python implementation of JSONPath that follows RFC 9535 much more strictly. If you require maximum interoperability with JSONPath implemented in other languages - at the expense of extra features - choose [jsonpath-rfc9535](https://pypi.org/project/jsonpath-rfc9535/) over [python-jsonpath](https://pypi.org/project/python-jsonpath/).
95
95
 
96
- python-jsonpath-rfc9535 matches RFC 9535's JSONPath model internally and is careful to match the spec's terminology. It also includes utilities for verifying and testing the [JSONPath Compliance Test Suite](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite). Most notably the nondeterministic behavior of some JSONPath selectors.
96
+ jsonpath-rfc9535 matches RFC 9535's JSONPath model internally and is careful to use the spec's terminology. It also includes utilities for verifying and testing the [JSONPath Compliance Test Suite](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite). Most notably the nondeterministic behavior of some JSONPath selectors.
97
97
 
98
98
  - [JSON P3](https://github.com/jg-rp/json-p3) - RFC 9535 implemented in TypeScript. JSON P3 does not include all the non-standard features of Python JSONPath, but does define some optional [extra syntax](https://jg-rp.github.io/json-p3/guides/jsonpath-extra).
99
99
 
@@ -66,9 +66,9 @@ conda install -c conda-forge python-jsonpath
66
66
 
67
67
  ## Related projects
68
68
 
69
- - [Python JSONPath RFC 9535](https://github.com/jg-rp/python-jsonpath-rfc9535) - An implementation of JSONPath that follows RFC 9535 much more strictly. If you require maximum interoperability with JSONPath implemented in other languages - at the expense of extra features - choose python-jsonpath-rfc9535 over python-jsonpath.
69
+ - [JSONPath RFC 9535](https://github.com/jg-rp/python-jsonpath-rfc9535) - A Python implementation of JSONPath that follows RFC 9535 much more strictly. If you require maximum interoperability with JSONPath implemented in other languages - at the expense of extra features - choose [jsonpath-rfc9535](https://pypi.org/project/jsonpath-rfc9535/) over [python-jsonpath](https://pypi.org/project/python-jsonpath/).
70
70
 
71
- python-jsonpath-rfc9535 matches RFC 9535's JSONPath model internally and is careful to match the spec's terminology. It also includes utilities for verifying and testing the [JSONPath Compliance Test Suite](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite). Most notably the nondeterministic behavior of some JSONPath selectors.
71
+ jsonpath-rfc9535 matches RFC 9535's JSONPath model internally and is careful to use the spec's terminology. It also includes utilities for verifying and testing the [JSONPath Compliance Test Suite](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite). Most notably the nondeterministic behavior of some JSONPath selectors.
72
72
 
73
73
  - [JSON P3](https://github.com/jg-rp/json-p3) - RFC 9535 implemented in TypeScript. JSON P3 does not include all the non-standard features of Python JSONPath, but does define some optional [extra syntax](https://jg-rp.github.io/json-p3/guides/jsonpath-extra).
74
74
 
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2023-present James Prior <jamesgr.prior@gmail.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "1.2.0"
4
+ __version__ = "1.2.1"
@@ -243,8 +243,7 @@ class RegexLiteral(Literal[Pattern[str]]):
243
243
  if self.value.flags & flag:
244
244
  flags.append(ch)
245
245
 
246
- pattern = re.sub(r"\\(.)", r"\1", self.value.pattern)
247
- return f"/{pattern}/{''.join(flags)}"
246
+ return f"/{self.value.pattern}/{''.join(flags)}"
248
247
 
249
248
 
250
249
  class ListLiteral(FilterExpression):
@@ -21,6 +21,7 @@ classifiers = [
21
21
  "Programming Language :: Python :: 3.10",
22
22
  "Programming Language :: Python :: 3.11",
23
23
  "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
24
25
  "Programming Language :: Python :: Implementation :: CPython",
25
26
  "Programming Language :: Python :: Implementation :: PyPy",
26
27
  ]
@@ -167,7 +168,7 @@ select = [
167
168
  "YTT",
168
169
  ]
169
170
 
170
- ignore = ["S105", "S101", "D107", "D105", "PLR0913", "SIM108"]
171
+ ignore = ["S105", "S101", "D107", "D105", "PLR0913", "SIM108", "PT001"]
171
172
 
172
173
  fixable = ["I"]
173
174
  unfixable = []