jsoncompat 0.2.0__cp312-cp312-win_amd64.whl → 0.2.2a1__cp312-cp312-win_amd64.whl

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.
@@ -0,0 +1,12 @@
1
+ """Typing stubs for jsoncompat Python package"""
2
+
3
+ from typing import Literal
4
+
5
+ RoleLiteral = Literal["serializer", "deserializer", "both"]
6
+
7
+ def check_compat(
8
+ old_schema_json: str, new_schema_json: str, role: RoleLiteral = "both"
9
+ ) -> bool: ...
10
+ def generate_value(schema_json: str, depth: int = 5) -> str: ...
11
+
12
+ __all__: list[str]
Binary file
jsoncompat/py.typed ADDED
File without changes
@@ -0,0 +1,3 @@
1
+ Metadata-Version: 2.4
2
+ Name: jsoncompat
3
+ Version: 0.2.2a1
@@ -0,0 +1,7 @@
1
+ jsoncompat-0.2.2a1.dist-info/METADATA,sha256=ucsSRAkkJVWNdh09GPEbI_04pJz14lFxOl1kVF8L5Nw,56
2
+ jsoncompat-0.2.2a1.dist-info/WHEEL,sha256=4hYCffp0RsSVQAuv2PMtXQ9QS7YSHeZi4PrSg-wi2q0,96
3
+ jsoncompat/__init__.py,sha256=ZUOY1iQLG1MYhHB0Ar0BHk1097DhPkrkw3tO_pjKKRs,123
4
+ jsoncompat/__init__.pyi,sha256=AK3av1e2xVPsVW5GPZeWXRKfNvZAWXVsRD9IftPlJM4,344
5
+ jsoncompat/jsoncompat.cp312-win_amd64.pyd,sha256=bvWzFj_nnDlaREf637k_8HPpB59lGfpYKM3ItfaY7Pk,3671552
6
+ jsoncompat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ jsoncompat-0.2.2a1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.0)
2
+ Generator: maturin (1.9.4)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-win_amd64
@@ -1,50 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: jsoncompat
3
- Version: 0.2.0
4
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
5
-
6
- # jsoncompat
7
-
8
- JSON Schema Compatibility Checker Python Bindings
9
-
10
- Check compatibility of evolving JSON schemas and generate example values using Python.
11
-
12
- ## Installation
13
-
14
- Install from PyPI:
15
-
16
- ```bash
17
- pip install jsoncompat
18
- ```
19
-
20
- ## Usage
21
-
22
- ```python
23
- import jsoncompat as jsc
24
-
25
- # Define old and new schemas as JSON strings
26
- old_schema = '{"type": "string"}'
27
- new_schema = '{"type": "number"}'
28
-
29
- # Check compatibility (role: "serializer", "deserializer", or "both")
30
- is_compatible = jsc.check_compat(old_schema, new_schema, "both")
31
- print(is_compatible)
32
-
33
- # Generate an example value for a schema
34
- example = jsc.generate_value(old_schema, depth=5)
35
- print(example)
36
- ```
37
-
38
- ## API Reference
39
-
40
- - `check_compat(old_schema_json: str, new_schema_json: str, role: str = "both") -> bool`
41
- - `generate_value(schema_json: str, depth: int = 5) -> str`
42
-
43
- ## Examples
44
-
45
- See the [basic demo](../examples/python/basic/demo.py) for a complete end-to-end script.
46
-
47
- ## License
48
-
49
- MIT License. See [LICENSE](../LICENSE).
50
-
@@ -1,5 +0,0 @@
1
- jsoncompat-0.2.0.dist-info/METADATA,sha256=Cf6FkkL9WawtCpzjMZwxZVN8jylx6TMUxMYscEKM9SI,1145
2
- jsoncompat-0.2.0.dist-info/WHEEL,sha256=0ua6B-UmXPKizyn4Mhcu6S66EB8t6wxm_Wsw5H1bZYs,96
3
- jsoncompat/__init__.py,sha256=ZUOY1iQLG1MYhHB0Ar0BHk1097DhPkrkw3tO_pjKKRs,123
4
- jsoncompat/jsoncompat.cp312-win_amd64.pyd,sha256=HFKOUKIeIuSUu1t26xHc05teyerdIdE6e51ELcNWoP0,3654656
5
- jsoncompat-0.2.0.dist-info/RECORD,,