jsonpatch 1.33__tar.gz → 1.35__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.
- {jsonpatch-1.33 → jsonpatch-1.35}/MANIFEST.in +3 -1
- jsonpatch-1.35/PKG-INFO +87 -0
- jsonpatch-1.35/README.md +39 -0
- {jsonpatch-1.33 → jsonpatch-1.35}/ext_tests.py +2 -2
- jsonpatch-1.35/jsonpatch.egg-info/PKG-INFO +87 -0
- {jsonpatch-1.33 → jsonpatch-1.35}/jsonpatch.egg-info/SOURCES.txt +5 -3
- jsonpatch-1.35/jsonpatch.egg-info/entry_points.txt +3 -0
- jsonpatch-1.35/jsonpatch.egg-info/requires.txt +1 -0
- jsonpatch-1.35/jsonpatch.egg-info/top_level.txt +2 -0
- jsonpatch-1.35/jsonpatch.py +1199 -0
- jsonpatch-1.33/bin/jsonpatch → jsonpatch-1.35/jsonpatch_cli.py +55 -25
- jsonpatch-1.35/property_tests.py +564 -0
- jsonpatch-1.35/pyproject.toml +4 -0
- jsonpatch-1.35/pytest.ini +3 -0
- jsonpatch-1.35/requirements.txt +1 -0
- {jsonpatch-1.33 → jsonpatch-1.35}/setup.cfg +0 -3
- {jsonpatch-1.33 → jsonpatch-1.35}/setup.py +22 -36
- jsonpatch-1.35/tests.py +1994 -0
- jsonpatch-1.33/PKG-INFO +0 -65
- jsonpatch-1.33/README.md +0 -28
- jsonpatch-1.33/bin/jsondiff +0 -41
- jsonpatch-1.33/jsonpatch.egg-info/PKG-INFO +0 -65
- jsonpatch-1.33/jsonpatch.egg-info/requires.txt +0 -1
- jsonpatch-1.33/jsonpatch.egg-info/top_level.txt +0 -1
- jsonpatch-1.33/jsonpatch.py +0 -931
- jsonpatch-1.33/requirements.txt +0 -1
- jsonpatch-1.33/tests.py +0 -1077
- {jsonpatch-1.33 → jsonpatch-1.35}/AUTHORS +0 -0
- {jsonpatch-1.33 → jsonpatch-1.35}/LICENSE +0 -0
- {jsonpatch-1.33 → jsonpatch-1.35}/jsonpatch.egg-info/dependency_links.txt +0 -0
- {jsonpatch-1.33 → jsonpatch-1.35}/tests.js +0 -0
jsonpatch-1.35/PKG-INFO
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jsonpatch
|
|
3
|
+
Version: 1.35
|
|
4
|
+
Summary: Apply JSON-Patches (RFC 6902)
|
|
5
|
+
Home-page: https://github.com/stefankoegl/python-json-patch
|
|
6
|
+
Author: Stefan Kögl
|
|
7
|
+
Author-email: stefan@skoegl.net
|
|
8
|
+
License-Expression: BSD-3-Clause
|
|
9
|
+
Project-URL: Website, https://github.com/stefankoegl/python-json-patch
|
|
10
|
+
Project-URL: Repository, https://github.com/stefankoegl/python-json-patch.git
|
|
11
|
+
Project-URL: Documentation, https://python-json-patch.readthedocs.org/
|
|
12
|
+
Project-URL: PyPI, https://pypi.org/pypi/jsonpatch
|
|
13
|
+
Project-URL: Tests, https://github.com/stefankoegl/python-json-patch/actions
|
|
14
|
+
Project-URL: Test Coverage, https://coveralls.io/github/stefankoegl/python-json-patch
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
30
|
+
Classifier: Topic :: Utilities
|
|
31
|
+
Requires-Python: >=3.10
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
License-File: LICENSE
|
|
34
|
+
License-File: AUTHORS
|
|
35
|
+
Requires-Dist: jsonpointer>=3.2
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
Dynamic: license-expression
|
|
44
|
+
Dynamic: project-url
|
|
45
|
+
Dynamic: requires-dist
|
|
46
|
+
Dynamic: requires-python
|
|
47
|
+
Dynamic: summary
|
|
48
|
+
|
|
49
|
+
python-json-patch
|
|
50
|
+
=================
|
|
51
|
+
|
|
52
|
+
[](https://pypi.org/project/jsonpatch//)
|
|
53
|
+
[](https://pypi.org/project/jsonpatch//)
|
|
54
|
+
[](https://github.com/stefankoegl/python-json-patch/actions/workflows/test.yaml)
|
|
55
|
+
[](https://coveralls.io/github/stefankoegl/python-json-patch?branch=master)
|
|
56
|
+
|
|
57
|
+
Applying JSON Patches in Python
|
|
58
|
+
-------------------------------
|
|
59
|
+
|
|
60
|
+
Library to apply JSON Patches according to
|
|
61
|
+
[RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902)
|
|
62
|
+
|
|
63
|
+
See source code for examples
|
|
64
|
+
|
|
65
|
+
* Website: https://github.com/stefankoegl/python-json-patch
|
|
66
|
+
* Repository: https://github.com/stefankoegl/python-json-patch.git
|
|
67
|
+
* Documentation: https://python-json-patch.readthedocs.org/
|
|
68
|
+
* PyPI: https://pypi.org/project/jsonpatch/
|
|
69
|
+
* CI: https://github.com/stefankoegl/python-json-patch/actions
|
|
70
|
+
* Coveralls: https://coveralls.io/github/stefankoegl/python-json-patch
|
|
71
|
+
|
|
72
|
+
Running external tests
|
|
73
|
+
----------------------
|
|
74
|
+
To run external tests (such as those from https://github.com/json-patch/json-patch-tests) use ext_tests.py
|
|
75
|
+
|
|
76
|
+
./ext_tests.py ../json-patch-tests/tests.json
|
|
77
|
+
|
|
78
|
+
Running property-based tests
|
|
79
|
+
----------------------------
|
|
80
|
+
Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
|
|
81
|
+
are in property_tests.py. Properties that the implementation does not satisfy
|
|
82
|
+
yet are marked as expected failures.
|
|
83
|
+
|
|
84
|
+
pip install hypothesis
|
|
85
|
+
python property_tests.py
|
|
86
|
+
|
|
87
|
+
Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
|
jsonpatch-1.35/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
python-json-patch
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
[](https://pypi.org/project/jsonpatch//)
|
|
5
|
+
[](https://pypi.org/project/jsonpatch//)
|
|
6
|
+
[](https://github.com/stefankoegl/python-json-patch/actions/workflows/test.yaml)
|
|
7
|
+
[](https://coveralls.io/github/stefankoegl/python-json-patch?branch=master)
|
|
8
|
+
|
|
9
|
+
Applying JSON Patches in Python
|
|
10
|
+
-------------------------------
|
|
11
|
+
|
|
12
|
+
Library to apply JSON Patches according to
|
|
13
|
+
[RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902)
|
|
14
|
+
|
|
15
|
+
See source code for examples
|
|
16
|
+
|
|
17
|
+
* Website: https://github.com/stefankoegl/python-json-patch
|
|
18
|
+
* Repository: https://github.com/stefankoegl/python-json-patch.git
|
|
19
|
+
* Documentation: https://python-json-patch.readthedocs.org/
|
|
20
|
+
* PyPI: https://pypi.org/project/jsonpatch/
|
|
21
|
+
* CI: https://github.com/stefankoegl/python-json-patch/actions
|
|
22
|
+
* Coveralls: https://coveralls.io/github/stefankoegl/python-json-patch
|
|
23
|
+
|
|
24
|
+
Running external tests
|
|
25
|
+
----------------------
|
|
26
|
+
To run external tests (such as those from https://github.com/json-patch/json-patch-tests) use ext_tests.py
|
|
27
|
+
|
|
28
|
+
./ext_tests.py ../json-patch-tests/tests.json
|
|
29
|
+
|
|
30
|
+
Running property-based tests
|
|
31
|
+
----------------------------
|
|
32
|
+
Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
|
|
33
|
+
are in property_tests.py. Properties that the implementation does not satisfy
|
|
34
|
+
yet are marked as expected failures.
|
|
35
|
+
|
|
36
|
+
pip install hypothesis
|
|
37
|
+
python property_tests.py
|
|
38
|
+
|
|
39
|
+
Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
|
|
@@ -67,7 +67,7 @@ class TestCaseTemplate(unittest.TestCase):
|
|
|
67
67
|
# if there is no 'expected' we only verify that applying the patch
|
|
68
68
|
# does not raise an exception
|
|
69
69
|
if 'expected' in test:
|
|
70
|
-
self.
|
|
70
|
+
self.assertEqual(res, test['expected'], test.get('comment', ''))
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
def make_test_case(tests):
|
|
@@ -98,7 +98,7 @@ def get_suite(filenames):
|
|
|
98
98
|
# we use the (potentially) patched version of json.load here
|
|
99
99
|
tests = jsonpatch.json.load(f)
|
|
100
100
|
cls = make_test_case(tests)
|
|
101
|
-
suite.addTest(unittest.
|
|
101
|
+
suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(cls))
|
|
102
102
|
|
|
103
103
|
return suite
|
|
104
104
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jsonpatch
|
|
3
|
+
Version: 1.35
|
|
4
|
+
Summary: Apply JSON-Patches (RFC 6902)
|
|
5
|
+
Home-page: https://github.com/stefankoegl/python-json-patch
|
|
6
|
+
Author: Stefan Kögl
|
|
7
|
+
Author-email: stefan@skoegl.net
|
|
8
|
+
License-Expression: BSD-3-Clause
|
|
9
|
+
Project-URL: Website, https://github.com/stefankoegl/python-json-patch
|
|
10
|
+
Project-URL: Repository, https://github.com/stefankoegl/python-json-patch.git
|
|
11
|
+
Project-URL: Documentation, https://python-json-patch.readthedocs.org/
|
|
12
|
+
Project-URL: PyPI, https://pypi.org/pypi/jsonpatch
|
|
13
|
+
Project-URL: Tests, https://github.com/stefankoegl/python-json-patch/actions
|
|
14
|
+
Project-URL: Test Coverage, https://coveralls.io/github/stefankoegl/python-json-patch
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
30
|
+
Classifier: Topic :: Utilities
|
|
31
|
+
Requires-Python: >=3.10
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
License-File: LICENSE
|
|
34
|
+
License-File: AUTHORS
|
|
35
|
+
Requires-Dist: jsonpointer>=3.2
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
Dynamic: license-expression
|
|
44
|
+
Dynamic: project-url
|
|
45
|
+
Dynamic: requires-dist
|
|
46
|
+
Dynamic: requires-python
|
|
47
|
+
Dynamic: summary
|
|
48
|
+
|
|
49
|
+
python-json-patch
|
|
50
|
+
=================
|
|
51
|
+
|
|
52
|
+
[](https://pypi.org/project/jsonpatch//)
|
|
53
|
+
[](https://pypi.org/project/jsonpatch//)
|
|
54
|
+
[](https://github.com/stefankoegl/python-json-patch/actions/workflows/test.yaml)
|
|
55
|
+
[](https://coveralls.io/github/stefankoegl/python-json-patch?branch=master)
|
|
56
|
+
|
|
57
|
+
Applying JSON Patches in Python
|
|
58
|
+
-------------------------------
|
|
59
|
+
|
|
60
|
+
Library to apply JSON Patches according to
|
|
61
|
+
[RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902)
|
|
62
|
+
|
|
63
|
+
See source code for examples
|
|
64
|
+
|
|
65
|
+
* Website: https://github.com/stefankoegl/python-json-patch
|
|
66
|
+
* Repository: https://github.com/stefankoegl/python-json-patch.git
|
|
67
|
+
* Documentation: https://python-json-patch.readthedocs.org/
|
|
68
|
+
* PyPI: https://pypi.org/project/jsonpatch/
|
|
69
|
+
* CI: https://github.com/stefankoegl/python-json-patch/actions
|
|
70
|
+
* Coveralls: https://coveralls.io/github/stefankoegl/python-json-patch
|
|
71
|
+
|
|
72
|
+
Running external tests
|
|
73
|
+
----------------------
|
|
74
|
+
To run external tests (such as those from https://github.com/json-patch/json-patch-tests) use ext_tests.py
|
|
75
|
+
|
|
76
|
+
./ext_tests.py ../json-patch-tests/tests.json
|
|
77
|
+
|
|
78
|
+
Running property-based tests
|
|
79
|
+
----------------------------
|
|
80
|
+
Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
|
|
81
|
+
are in property_tests.py. Properties that the implementation does not satisfy
|
|
82
|
+
yet are marked as expected failures.
|
|
83
|
+
|
|
84
|
+
pip install hypothesis
|
|
85
|
+
python property_tests.py
|
|
86
|
+
|
|
87
|
+
Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
|
|
@@ -4,15 +4,17 @@ MANIFEST.in
|
|
|
4
4
|
README.md
|
|
5
5
|
ext_tests.py
|
|
6
6
|
jsonpatch.py
|
|
7
|
+
jsonpatch_cli.py
|
|
8
|
+
property_tests.py
|
|
9
|
+
pyproject.toml
|
|
10
|
+
pytest.ini
|
|
7
11
|
requirements.txt
|
|
8
|
-
setup.cfg
|
|
9
12
|
setup.py
|
|
10
13
|
tests.js
|
|
11
14
|
tests.py
|
|
12
|
-
bin/jsondiff
|
|
13
|
-
bin/jsonpatch
|
|
14
15
|
jsonpatch.egg-info/PKG-INFO
|
|
15
16
|
jsonpatch.egg-info/SOURCES.txt
|
|
16
17
|
jsonpatch.egg-info/dependency_links.txt
|
|
18
|
+
jsonpatch.egg-info/entry_points.txt
|
|
17
19
|
jsonpatch.egg-info/requires.txt
|
|
18
20
|
jsonpatch.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
jsonpointer>=3.2
|