unitysvc-core 0.2.21__tar.gz → 0.2.22__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.
- {unitysvc_core-0.2.21/src/unitysvc_core.egg-info → unitysvc_core-0.2.22}/PKG-INFO +2 -3
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/README.md +1 -1
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/pyproject.toml +1 -2
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/utils.py +2 -3
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22/src/unitysvc_core.egg-info}/PKG-INFO +2 -3
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core.egg-info/requires.txt +0 -1
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/LICENSE +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/setup.cfg +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/__init__.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/__init__.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/base.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/documents.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/listing_data.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/listing_v1.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/offering_data.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/offering_v1.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/pricing.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/promotion_data.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/provider_data.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/provider_v1.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/service.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/service_group_data.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/validators.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/py.typed +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/base.json +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/listing_v1.json +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/offering_v1.json +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/promotion_v1.json +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/provider_v1.json +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/service_group_v1.json +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/validator.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core.egg-info/SOURCES.txt +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core.egg-info/dependency_links.txt +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core.egg-info/top_level.txt +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_access_interface_routing.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_pricing.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_provider_account_rate_limits.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_service_group.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_service_status.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_utils.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_validator.py +0 -0
- {unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/tests/test_validators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: unitysvc-core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.22
|
|
4
4
|
Summary: Shared data models and validation helpers for UnitySVC packages
|
|
5
5
|
Author-email: Bo Peng <bo.peng@unitysvc.com>
|
|
6
6
|
Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
|
|
@@ -18,7 +18,6 @@ Requires-Dist: pydantic>=2
|
|
|
18
18
|
Requires-Dist: email-validator
|
|
19
19
|
Requires-Dist: jsonschema
|
|
20
20
|
Requires-Dist: jinja2
|
|
21
|
-
Requires-Dist: json5
|
|
22
21
|
Requires-Dist: tomli-w
|
|
23
22
|
Requires-Dist: unitysvc-data>=0.1.9
|
|
24
23
|
Provides-Extra: test
|
|
@@ -95,7 +94,7 @@ pip install unitysvc-core
|
|
|
95
94
|
```
|
|
96
95
|
|
|
97
96
|
Dependencies: `pydantic`, `email-validator`, `jsonschema`, `jinja2`,
|
|
98
|
-
`
|
|
97
|
+
`tomli-w`. No `typer`, no `rich`, no `httpx`.
|
|
99
98
|
|
|
100
99
|
## Usage
|
|
101
100
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "unitysvc-core"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.22"
|
|
8
8
|
description = "Shared data models and validation helpers for UnitySVC packages"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Bo Peng", email = "bo.peng@unitysvc.com" }]
|
|
@@ -21,7 +21,6 @@ dependencies = [
|
|
|
21
21
|
"email-validator",
|
|
22
22
|
"jsonschema",
|
|
23
23
|
"jinja2",
|
|
24
|
-
"json5",
|
|
25
24
|
"tomli-w",
|
|
26
25
|
# Presets exposed under $<fn> sentinels that load_data_file expands
|
|
27
26
|
# transparently after parse + override-merge. The actual set of
|
|
@@ -19,7 +19,6 @@ from functools import lru_cache
|
|
|
19
19
|
from pathlib import Path
|
|
20
20
|
from typing import Any
|
|
21
21
|
|
|
22
|
-
import json5
|
|
23
22
|
import tomli_w
|
|
24
23
|
|
|
25
24
|
# Presets discovered dynamically from unitysvc-data's registry. Any
|
|
@@ -297,7 +296,7 @@ def load_data_file(
|
|
|
297
296
|
preset_fns: Mapping[str, Callable[[Any], Any]] | None = DEFAULT_PRESET_FNS,
|
|
298
297
|
) -> tuple[dict[str, Any], str]:
|
|
299
298
|
"""
|
|
300
|
-
Load a data file (JSON
|
|
299
|
+
Load a data file (JSON or TOML) and return (data, format).
|
|
301
300
|
|
|
302
301
|
:func:`expand_presets` walks the result and replaces every
|
|
303
302
|
``$doc_preset`` / ``$file_preset`` sentinel with the matching preset
|
|
@@ -320,7 +319,7 @@ def load_data_file(
|
|
|
320
319
|
"""
|
|
321
320
|
if file_path.suffix == ".json":
|
|
322
321
|
with open(file_path, encoding="utf-8") as f:
|
|
323
|
-
data =
|
|
322
|
+
data = json.load(f)
|
|
324
323
|
file_format = "json"
|
|
325
324
|
elif file_path.suffix == ".toml":
|
|
326
325
|
with open(file_path, "rb") as f:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: unitysvc-core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.22
|
|
4
4
|
Summary: Shared data models and validation helpers for UnitySVC packages
|
|
5
5
|
Author-email: Bo Peng <bo.peng@unitysvc.com>
|
|
6
6
|
Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
|
|
@@ -18,7 +18,6 @@ Requires-Dist: pydantic>=2
|
|
|
18
18
|
Requires-Dist: email-validator
|
|
19
19
|
Requires-Dist: jsonschema
|
|
20
20
|
Requires-Dist: jinja2
|
|
21
|
-
Requires-Dist: json5
|
|
22
21
|
Requires-Dist: tomli-w
|
|
23
22
|
Requires-Dist: unitysvc-data>=0.1.9
|
|
24
23
|
Provides-Extra: test
|
|
@@ -95,7 +94,7 @@ pip install unitysvc-core
|
|
|
95
94
|
```
|
|
96
95
|
|
|
97
96
|
Dependencies: `pydantic`, `email-validator`, `jsonschema`, `jinja2`,
|
|
98
|
-
`
|
|
97
|
+
`tomli-w`. No `typer`, no `rich`, no `httpx`.
|
|
99
98
|
|
|
100
99
|
## Usage
|
|
101
100
|
|
|
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
|
{unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/models/service_group_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core/schema/service_group_v1.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_core-0.2.21 → unitysvc_core-0.2.22}/src/unitysvc_core.egg-info/dependency_links.txt
RENAMED
|
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
|