openpx-sdk 0.0.1__py3-none-any.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.
- openpx_sdk/__init__.py +18 -0
- openpx_sdk/openpx-schema.json +1888 -0
- openpx_sdk-0.0.1.dist-info/METADATA +39 -0
- openpx_sdk-0.0.1.dist-info/RECORD +8 -0
- openpx_sdk-0.0.1.dist-info/WHEEL +5 -0
- openpx_sdk-0.0.1.dist-info/licenses/LICENSE +27 -0
- openpx_sdk-0.0.1.dist-info/licenses/TRADEMARKS +35 -0
- openpx_sdk-0.0.1.dist-info/top_level.txt +1 -0
openpx_sdk/__init__.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""OpenPX SDK, early release: ships the published OpenPX schema."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from importlib import resources
|
|
5
|
+
|
|
6
|
+
__version__ = "0.0.1"
|
|
7
|
+
SCHEMA_VERSION = "0.7.0"
|
|
8
|
+
SCHEMA_URL = f"https://schema.openpx.org/v{SCHEMA_VERSION}/openpx-schema.json"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def schema_path():
|
|
12
|
+
"""Path to the OpenPX schema bundled with this package."""
|
|
13
|
+
return resources.files(__name__).joinpath("openpx-schema.json")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def load_schema():
|
|
17
|
+
"""The bundled OpenPX schema, parsed."""
|
|
18
|
+
return json.loads(schema_path().read_text(encoding="utf-8"))
|