PySerials 0.0.0.dev54__tar.gz → 0.0.0.dev55__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.
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/PKG-INFO +4 -4
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/pyproject.toml +4 -4
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/PySerials.egg-info/PKG-INFO +4 -4
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/PySerials.egg-info/requires.txt +3 -3
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/write.py +7 -2
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/README.md +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/setup.cfg +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/PySerials.egg-info/SOURCES.txt +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/PySerials.egg-info/dependency_links.txt +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/PySerials.egg-info/not-zip-safe +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/PySerials.egg-info/top_level.txt +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/__init__.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/compare.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/exception/__init__.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/exception/_base.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/exception/read.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/exception/update.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/exception/validate.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/format.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/nested_dict.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/property_dict.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/read.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/update.py +0 -0
- {pyserials-0.0.0.dev54 → pyserials-0.0.0.dev55}/src/pyserials/validate.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySerials
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev55
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: jsonschema<5,>=4.21.0
|
|
6
6
|
Requires-Dist: referencing>=0.35.1
|
|
7
7
|
Requires-Dist: jsonpath-ng<2,>=1.6.1
|
|
8
|
-
Requires-Dist: ruamel.yaml
|
|
8
|
+
Requires-Dist: ruamel.yaml>=0.18
|
|
9
9
|
Requires-Dist: ruamel.yaml.string<1,>=0.1.1
|
|
10
10
|
Requires-Dist: tomlkit<0.12,>=0.11.8
|
|
11
|
-
Requires-Dist: MDit==0.0.0.
|
|
12
|
-
Requires-Dist: ExceptionMan==0.0.0.
|
|
11
|
+
Requires-Dist: MDit==0.0.0.dev52
|
|
12
|
+
Requires-Dist: ExceptionMan==0.0.0.dev52
|
|
13
13
|
Requires-Dist: ProtocolMan==0.0.0.dev2
|
|
@@ -17,17 +17,17 @@ namespaces = true
|
|
|
17
17
|
# ----------------------------------------- Project Metadata -------------------------------------
|
|
18
18
|
#
|
|
19
19
|
[project]
|
|
20
|
-
version = "0.0.0.
|
|
20
|
+
version = "0.0.0.dev55"
|
|
21
21
|
name = "PySerials"
|
|
22
22
|
dependencies = [
|
|
23
23
|
"jsonschema >= 4.21.0, < 5",
|
|
24
24
|
"referencing >= 0.35.1",
|
|
25
25
|
"jsonpath-ng >= 1.6.1, < 2",
|
|
26
|
-
"ruamel.yaml >= 0.
|
|
26
|
+
"ruamel.yaml >= 0.18", # https://yaml.readthedocs.io/en/stable/
|
|
27
27
|
"ruamel.yaml.string >= 0.1.1, < 1",
|
|
28
28
|
"tomlkit >= 0.11.8, < 0.12", # https://tomlkit.readthedocs.io/en/stable/,
|
|
29
|
-
"MDit == 0.0.0.
|
|
30
|
-
"ExceptionMan == 0.0.0.
|
|
29
|
+
"MDit == 0.0.0.dev52",
|
|
30
|
+
"ExceptionMan == 0.0.0.dev52",
|
|
31
31
|
"ProtocolMan == 0.0.0.dev2",
|
|
32
32
|
]
|
|
33
33
|
requires-python = ">=3.10"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySerials
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev55
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: jsonschema<5,>=4.21.0
|
|
6
6
|
Requires-Dist: referencing>=0.35.1
|
|
7
7
|
Requires-Dist: jsonpath-ng<2,>=1.6.1
|
|
8
|
-
Requires-Dist: ruamel.yaml
|
|
8
|
+
Requires-Dist: ruamel.yaml>=0.18
|
|
9
9
|
Requires-Dist: ruamel.yaml.string<1,>=0.1.1
|
|
10
10
|
Requires-Dist: tomlkit<0.12,>=0.11.8
|
|
11
|
-
Requires-Dist: MDit==0.0.0.
|
|
12
|
-
Requires-Dist: ExceptionMan==0.0.0.
|
|
11
|
+
Requires-Dist: MDit==0.0.0.dev52
|
|
12
|
+
Requires-Dist: ExceptionMan==0.0.0.dev52
|
|
13
13
|
Requires-Dist: ProtocolMan==0.0.0.dev2
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
jsonschema<5,>=4.21.0
|
|
2
2
|
referencing>=0.35.1
|
|
3
3
|
jsonpath-ng<2,>=1.6.1
|
|
4
|
-
ruamel.yaml
|
|
4
|
+
ruamel.yaml>=0.18
|
|
5
5
|
ruamel.yaml.string<1,>=0.1.1
|
|
6
6
|
tomlkit<0.12,>=0.11.8
|
|
7
|
-
MDit==0.0.0.
|
|
8
|
-
ExceptionMan==0.0.0.
|
|
7
|
+
MDit==0.0.0.dev52
|
|
8
|
+
ExceptionMan==0.0.0.dev52
|
|
9
9
|
ProtocolMan==0.0.0.dev2
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
from
|
|
1
|
+
from __future__ import annotations as _annotations
|
|
2
|
+
from typing import Literal as _Literal, TYPE_CHECKING as _TYPE_CHECKING
|
|
2
3
|
from pathlib import Path as _Path
|
|
3
4
|
import json as _json
|
|
4
5
|
import ruamel.yaml as _yaml
|
|
5
6
|
from ruamel.yaml import scalarstring as _yaml_scalar_string
|
|
6
7
|
import tomlkit as _tomlkit
|
|
7
8
|
|
|
9
|
+
if _TYPE_CHECKING:
|
|
10
|
+
from typing import Callable, Any
|
|
11
|
+
|
|
8
12
|
|
|
9
13
|
def to_string(
|
|
10
14
|
data: dict | list | str | int | float | bool | _yaml.CommentedMap | _yaml.CommentedSeq,
|
|
@@ -47,8 +51,9 @@ def to_json_string(
|
|
|
47
51
|
data: dict | list | str | int | float | bool | _yaml.CommentedMap | _yaml.CommentedSeq,
|
|
48
52
|
sort_keys: bool = False,
|
|
49
53
|
indent: int | None = None,
|
|
54
|
+
default: Callable[[Any], Any] | None = None,
|
|
50
55
|
) -> str:
|
|
51
|
-
return _json.dumps(data, indent=indent, sort_keys=sort_keys)
|
|
56
|
+
return _json.dumps(data, indent=indent, sort_keys=sort_keys, default=default)
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
def to_yaml_file(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|