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.
@@ -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
@@ -0,0 +1,5 @@
1
+ """Auto-generated stubs for the core domain."""
2
+
3
+ from power_openapi_models.core import models
4
+
5
+ __all__ = ["models"]