fidgate-sdk 1.14.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.
- fidgate_sdk/__init__.py +188 -0
- fidgate_sdk/_knobs.py +741 -0
- fidgate_sdk/_serialize.py +84 -0
- fidgate_sdk/builder.py +4110 -0
- fidgate_sdk/client.py +910 -0
- fidgate_sdk/config_document.py +209 -0
- fidgate_sdk/exceptions.py +256 -0
- fidgate_sdk/models/__init__.py +32 -0
- fidgate_sdk/models/commercial.py +650 -0
- fidgate_sdk/models/config.py +1122 -0
- fidgate_sdk/models/contracts.py +809 -0
- fidgate_sdk/models/optimization.py +325 -0
- fidgate_sdk/models/results.py +86 -0
- fidgate_sdk/models/types.py +716 -0
- fidgate_sdk/overrides.py +381 -0
- fidgate_sdk/presentation.py +124 -0
- fidgate_sdk/projects.py +228 -0
- fidgate_sdk/py.typed +0 -0
- fidgate_sdk/report.py +190 -0
- fidgate_sdk/responses.py +141 -0
- fidgate_sdk/sweep.py +219 -0
- fidgate_sdk/wizard.py +840 -0
- fidgate_sdk-1.14.0.dist-info/METADATA +287 -0
- fidgate_sdk-1.14.0.dist-info/RECORD +26 -0
- fidgate_sdk-1.14.0.dist-info/WHEEL +4 -0
- fidgate_sdk-1.14.0.dist-info/licenses/LICENSE +21 -0
fidgate_sdk/__init__.py
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"""FIDgate SDK — a standalone, curated public data-model surface.
|
|
2
|
+
|
|
3
|
+
The SDK carries its own standalone copies of the data models and has no runtime
|
|
4
|
+
dependency on the core library. Its runtime dependencies stay small — ``numpy``
|
|
5
|
+
and ``pydantic`` for the models, ``httpx`` for the client, ``pyyaml`` for the
|
|
6
|
+
config-document surface, and ``pyarrow`` to render the run's Parquet result
|
|
7
|
+
tables to CSV in :meth:`FidgateClient.get_results`. The full set of public data
|
|
8
|
+
models is exposed at the top level::
|
|
9
|
+
|
|
10
|
+
from fidgate_sdk import AssetConfigSchema, ProjectResult, ProjectSnapshot
|
|
11
|
+
|
|
12
|
+
See ``fidgate_sdk.models`` for the categorised model modules and the
|
|
13
|
+
"add a new model" convention in the package README.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from fidgate_sdk import models
|
|
17
|
+
from fidgate_sdk.models import * # noqa: F401,F403
|
|
18
|
+
|
|
19
|
+
__version__ = "1.14.0" # x-release-please-version
|
|
20
|
+
|
|
21
|
+
# Client surface is imported after ``__version__`` so the client can stamp it
|
|
22
|
+
# into its User-Agent at import time without a circular-import hazard.
|
|
23
|
+
from fidgate_sdk.builder import ( # noqa: E402
|
|
24
|
+
CostModel,
|
|
25
|
+
PriceCurve,
|
|
26
|
+
ProjectBuilder,
|
|
27
|
+
SiteMeteo,
|
|
28
|
+
absolute_cost,
|
|
29
|
+
annual_price_csv,
|
|
30
|
+
area_sizing,
|
|
31
|
+
as_produced_commitment,
|
|
32
|
+
baseload_commitment,
|
|
33
|
+
buyback_penalty,
|
|
34
|
+
cec_inverter,
|
|
35
|
+
cec_module,
|
|
36
|
+
composite_cost,
|
|
37
|
+
constant_price,
|
|
38
|
+
debt,
|
|
39
|
+
depreciation,
|
|
40
|
+
escalating_price,
|
|
41
|
+
fixed_mount,
|
|
42
|
+
generation_degradation,
|
|
43
|
+
global_availability,
|
|
44
|
+
hourly_da_price_csv,
|
|
45
|
+
linear_degradation,
|
|
46
|
+
maintenance_window,
|
|
47
|
+
maintenance_windows,
|
|
48
|
+
module_parameters,
|
|
49
|
+
monthly_profile_price,
|
|
50
|
+
per_mw_cost,
|
|
51
|
+
per_mwh_shortfall_penalty,
|
|
52
|
+
pvgis_tmy,
|
|
53
|
+
pvgis_tmy_meteo,
|
|
54
|
+
pvlib_generation,
|
|
55
|
+
quantity_arc,
|
|
56
|
+
quantity_expression,
|
|
57
|
+
quantity_reference,
|
|
58
|
+
sat_mount,
|
|
59
|
+
soh_curves_degradation,
|
|
60
|
+
span,
|
|
61
|
+
steps,
|
|
62
|
+
topology_sizing,
|
|
63
|
+
weather_csv_meteo,
|
|
64
|
+
)
|
|
65
|
+
from fidgate_sdk.client import FidgateClient # noqa: E402
|
|
66
|
+
from fidgate_sdk.config_document import ProjectConfig # noqa: E402
|
|
67
|
+
from fidgate_sdk.exceptions import ( # noqa: E402
|
|
68
|
+
AuthenticationError,
|
|
69
|
+
AuthorizationError,
|
|
70
|
+
ConfigValidationError,
|
|
71
|
+
ConflictError,
|
|
72
|
+
FidgateAPIError,
|
|
73
|
+
FidgateBuilderWarning,
|
|
74
|
+
FidgateConnectionError,
|
|
75
|
+
FidgateError,
|
|
76
|
+
OverrideValidationError,
|
|
77
|
+
PartialUploadError,
|
|
78
|
+
RateLimitError,
|
|
79
|
+
RequestValidationError,
|
|
80
|
+
ServiceUnavailableError,
|
|
81
|
+
)
|
|
82
|
+
from fidgate_sdk.overrides import ( # noqa: E402
|
|
83
|
+
Finding,
|
|
84
|
+
check_optimization,
|
|
85
|
+
count_scenarios,
|
|
86
|
+
override_problem,
|
|
87
|
+
)
|
|
88
|
+
from fidgate_sdk.presentation import ResponseList, ResponseModel # noqa: E402
|
|
89
|
+
from fidgate_sdk.projects import ( # noqa: E402
|
|
90
|
+
Project,
|
|
91
|
+
ProjectExport,
|
|
92
|
+
ProjectVersion,
|
|
93
|
+
S3File,
|
|
94
|
+
format_files,
|
|
95
|
+
format_projects,
|
|
96
|
+
format_results,
|
|
97
|
+
format_versions,
|
|
98
|
+
)
|
|
99
|
+
from fidgate_sdk.report import BuildReport # noqa: E402
|
|
100
|
+
from fidgate_sdk.responses import ( # noqa: E402
|
|
101
|
+
JobState,
|
|
102
|
+
RunJob,
|
|
103
|
+
RunResults,
|
|
104
|
+
SimulationJob,
|
|
105
|
+
SimulationStatus,
|
|
106
|
+
)
|
|
107
|
+
from fidgate_sdk.sweep import ParameterSweep, apply_override # noqa: E402
|
|
108
|
+
|
|
109
|
+
__all__ = [
|
|
110
|
+
*models.__all__,
|
|
111
|
+
"AuthenticationError",
|
|
112
|
+
"AuthorizationError",
|
|
113
|
+
"BuildReport",
|
|
114
|
+
"ConfigValidationError",
|
|
115
|
+
"ConflictError",
|
|
116
|
+
"CostModel",
|
|
117
|
+
"FidgateAPIError",
|
|
118
|
+
"FidgateBuilderWarning",
|
|
119
|
+
"FidgateClient",
|
|
120
|
+
"FidgateConnectionError",
|
|
121
|
+
"FidgateError",
|
|
122
|
+
"Finding",
|
|
123
|
+
"JobState",
|
|
124
|
+
"OverrideValidationError",
|
|
125
|
+
"ParameterSweep",
|
|
126
|
+
"PartialUploadError",
|
|
127
|
+
"PriceCurve",
|
|
128
|
+
"Project",
|
|
129
|
+
"ProjectBuilder",
|
|
130
|
+
"ProjectConfig",
|
|
131
|
+
"ProjectExport",
|
|
132
|
+
"ProjectVersion",
|
|
133
|
+
"RateLimitError",
|
|
134
|
+
"RequestValidationError",
|
|
135
|
+
"ResponseList",
|
|
136
|
+
"ResponseModel",
|
|
137
|
+
"RunJob",
|
|
138
|
+
"RunResults",
|
|
139
|
+
"S3File",
|
|
140
|
+
"ServiceUnavailableError",
|
|
141
|
+
"SimulationJob",
|
|
142
|
+
"SimulationStatus",
|
|
143
|
+
"SiteMeteo",
|
|
144
|
+
"absolute_cost",
|
|
145
|
+
"annual_price_csv",
|
|
146
|
+
"apply_override",
|
|
147
|
+
"area_sizing",
|
|
148
|
+
"as_produced_commitment",
|
|
149
|
+
"baseload_commitment",
|
|
150
|
+
"buyback_penalty",
|
|
151
|
+
"cec_inverter",
|
|
152
|
+
"cec_module",
|
|
153
|
+
"check_optimization",
|
|
154
|
+
"composite_cost",
|
|
155
|
+
"constant_price",
|
|
156
|
+
"count_scenarios",
|
|
157
|
+
"debt",
|
|
158
|
+
"depreciation",
|
|
159
|
+
"escalating_price",
|
|
160
|
+
"fixed_mount",
|
|
161
|
+
"format_files",
|
|
162
|
+
"format_projects",
|
|
163
|
+
"format_results",
|
|
164
|
+
"format_versions",
|
|
165
|
+
"generation_degradation",
|
|
166
|
+
"global_availability",
|
|
167
|
+
"hourly_da_price_csv",
|
|
168
|
+
"linear_degradation",
|
|
169
|
+
"maintenance_window",
|
|
170
|
+
"maintenance_windows",
|
|
171
|
+
"module_parameters",
|
|
172
|
+
"monthly_profile_price",
|
|
173
|
+
"override_problem",
|
|
174
|
+
"per_mw_cost",
|
|
175
|
+
"per_mwh_shortfall_penalty",
|
|
176
|
+
"pvgis_tmy",
|
|
177
|
+
"pvgis_tmy_meteo",
|
|
178
|
+
"pvlib_generation",
|
|
179
|
+
"quantity_arc",
|
|
180
|
+
"quantity_expression",
|
|
181
|
+
"quantity_reference",
|
|
182
|
+
"sat_mount",
|
|
183
|
+
"soh_curves_degradation",
|
|
184
|
+
"span",
|
|
185
|
+
"steps",
|
|
186
|
+
"topology_sizing",
|
|
187
|
+
"weather_csv_meteo",
|
|
188
|
+
]
|