power-openapi-models 0.1.0__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.
- power_openapi_models/__init__.py +52 -0
- power_openapi_models/_schema_version.txt +1 -0
- power_openapi_models/core/__init__.py +5 -0
- power_openapi_models/core/models.py +818 -0
- power_openapi_models/document.py +290 -0
- power_openapi_models/dynamics/__init__.py +5 -0
- power_openapi_models/dynamics/models.py +257 -0
- power_openapi_models/infrastructure_core/__init__.py +5 -0
- power_openapi_models/infrastructure_core/models.py +175 -0
- power_openapi_models/investments/__init__.py +5 -0
- power_openapi_models/investments/models.py +564 -0
- power_openapi_models/operations/__init__.py +5 -0
- power_openapi_models/operations/models.py +2958 -0
- power_openapi_models/py.typed +0 -0
- power_openapi_models/timeseries/__init__.py +5 -0
- power_openapi_models/timeseries/models.py +626 -0
- power_openapi_models-0.1.0.dist-info/METADATA +237 -0
- power_openapi_models-0.1.0.dist-info/RECORD +21 -0
- power_openapi_models-0.1.0.dist-info/WHEEL +5 -0
- power_openapi_models-0.1.0.dist-info/licenses/LICENSE +29 -0
- power_openapi_models-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Typed Python models for the Sienna power system data format.
|
|
2
|
+
|
|
3
|
+
Generated from SiennaSchemas. See `__schema_version__` for the schema release
|
|
4
|
+
these models were built from.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from importlib.metadata import PackageNotFoundError
|
|
8
|
+
from importlib.metadata import version as _version
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
from power_openapi_models import (
|
|
12
|
+
core,
|
|
13
|
+
document,
|
|
14
|
+
dynamics,
|
|
15
|
+
infrastructure_core,
|
|
16
|
+
investments,
|
|
17
|
+
operations,
|
|
18
|
+
timeseries,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
__version__ = _version("power-openapi-models")
|
|
23
|
+
except PackageNotFoundError: # running from a source tree, not installed
|
|
24
|
+
__version__ = "0.0.0.dev0"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _read_schema_version() -> str:
|
|
28
|
+
"""The SiennaSchemas release these models were generated from.
|
|
29
|
+
|
|
30
|
+
Shipped as package data so it is answerable at runtime -- the first
|
|
31
|
+
question worth asking about a generated model is which schema produced it.
|
|
32
|
+
"""
|
|
33
|
+
marker = Path(__file__).parent / "_schema_version.txt"
|
|
34
|
+
try:
|
|
35
|
+
return marker.read_text().strip()
|
|
36
|
+
except OSError:
|
|
37
|
+
return "unknown"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
__schema_version__ = _read_schema_version()
|
|
41
|
+
|
|
42
|
+
__all__ = [
|
|
43
|
+
"core",
|
|
44
|
+
"document",
|
|
45
|
+
"dynamics",
|
|
46
|
+
"infrastructure_core",
|
|
47
|
+
"investments",
|
|
48
|
+
"operations",
|
|
49
|
+
"timeseries",
|
|
50
|
+
"__version__",
|
|
51
|
+
"__schema_version__",
|
|
52
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v0.1.0
|