web-framework-api 3.2.0__py3-none-win_amd64.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.
FileManager.dll ADDED
Binary file
Localization.dll ADDED
Binary file
Log.dll ADDED
Binary file
WebFramework.dll ADDED
Binary file
sqlite3.dll ADDED
Binary file
@@ -0,0 +1,159 @@
1
+ Metadata-Version: 2.2
2
+ Name: web_framework_api
3
+ Version: 3.2.0
4
+ Summary: Python API for WebFramework
5
+ Keywords: Web
6
+ Author-Email: LazyPanda07 <semengricenko@gmail.com>
7
+ Maintainer-Email: LazyPanda07 <semengricenko@gmail.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2020 Semyon Gritsenko
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Classifier: Programming Language :: Python :: 3.14
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Operating System :: Microsoft :: Windows
33
+ Classifier: Operating System :: POSIX :: Linux
34
+ Project-URL: Repository, http://github.com/LazyPanda07/WebFramework
35
+ Project-URL: Wiki, http://github.com/LazyPanda07/WebFramework/wiki
36
+ Requires-Python: ==3.14.*
37
+ Description-Content-Type: text/markdown
38
+
39
+ C++ HTTP/HTTPS server with Python API
40
+
41
+
42
+ * [Quick start](#quick-start)
43
+ * [main.py](#mainpy)
44
+ * [Settings](#settings)
45
+ * [Config](#config)
46
+ * [Run sample](#run-sample)
47
+ * [Executors](#executors)
48
+
49
+
50
+ ## Quick start
51
+ Server needs few files to run:
52
+ * [web.json](#settings) with routes
53
+ * [Executors](#executors)
54
+ * [config.json](#config) with server settings
55
+ All these files must be in the same directory as ```main.py```
56
+
57
+
58
+ ### main.py
59
+ ```python
60
+ from web_framework_api.WebFramework import WebFramework # Server
61
+ from web_framework_api.utility.DLLHandler import initialize_web_framework # WebFramework initialization
62
+ from web_framework_api.exceptions.WebFrameworkException import WebFrameworkException # Exception
63
+
64
+ def on_start():
65
+ print("Server is running")
66
+
67
+ if __name__ == '__main__':
68
+ try:
69
+ initialize_web_framework() # Load WebFramework shared library
70
+
71
+ server = WebFramework.from_path("config.json") # Create server
72
+
73
+ server.start(True, on_start) # Start server and wait
74
+ except WebFrameworkException as exception:
75
+ print(exception)
76
+
77
+ exit(-1)
78
+ ```
79
+
80
+
81
+ ### Settings
82
+ ```web.json```
83
+ ```json
84
+ {
85
+ "HelloExecutor": {
86
+ "route": "",
87
+ "loadType": "initialization",
88
+ "api": "python"
89
+ }
90
+ }
91
+ ```
92
+
93
+
94
+ ### Config
95
+ ```config.json```
96
+ ```json
97
+ {
98
+ "WebServer": {
99
+ "ip": "0.0.0.0",
100
+ "port": 8080,
101
+ "timeout": 0
102
+ },
103
+ "WebFramework": {
104
+ "settingsPaths": [
105
+ "web.json"
106
+ ],
107
+ "loadSources": [
108
+ "hello_executor"
109
+ ],
110
+ "runtimes": [
111
+ "python"
112
+ ],
113
+ "assetsPath": "assets",
114
+ "templatesPath": "templates",
115
+ "cachingSize": 536870912,
116
+ "webServerType": "multiThreaded",
117
+ "HTTPS": {
118
+ "useHTTPS": false,
119
+ "pathToCertificate": "certificates/cert.pem",
120
+ "pathToKey": "certificates/key.pem"
121
+ },
122
+ "defaultAssetsPath": "WebFrameworkAssets"
123
+ },
124
+ "Logging": {
125
+ "usingLogging": false,
126
+ "dateFormat": "DMY",
127
+ "logFileSize": 134217728
128
+ },
129
+ "ThreadPoolServer": {
130
+ "threadCount": 0
131
+ }
132
+ }
133
+ ```
134
+
135
+
136
+ ### Run sample
137
+ After running server open url [127.0.0.1:8080](http://127.0.0.1:8080).
138
+ You will see response from server
139
+ ```json
140
+ {
141
+ "message": "Hello, World!"
142
+ }
143
+ ```
144
+
145
+
146
+ ## Executors
147
+ Executors are C++, C, Python or C# classes that responsible for giving responses for their route(url).
148
+ Source code of HelloExecutor from example
149
+ ```hello_executor.py```
150
+ ```python
151
+ from web_framework_api import *
152
+
153
+ class HelloExecutor(StatelessExecutor):
154
+ def do_get(self, request, response):
155
+ response.set_body({
156
+ "message": "Hello, World!"
157
+ })
158
+ ```
159
+ More information you can find in [wiki](https://github.com/LazyPanda07/WebFramework/wiki/Executors-API).
@@ -0,0 +1,11 @@
1
+ FileManager.dll,sha256=BSc6Dw5IW1yY-i3eQD23nuuTNHN9cGyiddZy2OSw93o,330752
2
+ Localization.dll,sha256=zPuGimeTvmxwTWrlxMh_npYS7Tpw7DFVjD845R8kb7k,317440
3
+ Log.dll,sha256=cvv2qqW8A23am4QYcI5OKA6qQozJDdevhw4O_QwSFbo,332288
4
+ sqlite3.dll,sha256=gcmqSKKkHsM3uNoKeO28Xmv2rPWWE4c26ls_D-W_DRk,3033088
5
+ web_framework_api.cp314-win_amd64.pyd,sha256=ReG8VYNCwBFuBzm6k5IxKf2bjsViUTH4S5T5xEat0oI,704000
6
+ web_framework_api.pyi,sha256=ODk1E_DF1X-N7fBZd-aaJNcSHKvMrU1e79iO3quRNRY,39904
7
+ WebFramework.dll,sha256=j0E2U3impMkA8jAW-qK4SB0yn9on7vCGziW56feeeG4,6591488
8
+ web_framework_api-3.2.0.dist-info/METADATA,sha256=a7pyC5t00GEu6U1ILepQxGjfDy08TibezeuhPAqDBss,4534
9
+ web_framework_api-3.2.0.dist-info/WHEEL,sha256=7cuQBrKlgrMjywT6nmSZIIhuOog1xNCTkMyVVbw2aow,103
10
+ web_framework_api-3.2.0.dist-info/licenses/license/LICENSE,sha256=wwQtl-mWC9ryxRiR0SLbwkAnXJug_HcKIi4m5eWOCWA,1094
11
+ web_framework_api-3.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 0.11.6
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Semyon Gritsenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
Binary file
web_framework_api.pyi ADDED
@@ -0,0 +1,801 @@
1
+ """
2
+ Python API for WebFramework
3
+ """
4
+ from __future__ import annotations
5
+ import collections.abc
6
+ import typing
7
+ __all__: list[str] = ['ACCEPTED', 'ALREADY_REPORTED', 'AUTHENTICATION_TIMEOUT', 'A_TIMEOUT_OCCURRED', 'BAD_GATEWAY', 'BAD_REQUEST', 'BANDWIDTH_LIMIT_EXCEEDED', 'CLIENT_CLOSED_REQUEST', 'CONFLICT', 'CONNECTION_TIMED_OUT', 'CONTINUE', 'CREATED', 'ChunkGenerator', 'Config', 'Database', 'DynamicFunction', 'EXPECTATION_FAILED', 'ExecutorSettings', 'ExecutorType', 'FAILED_DEPENDENCY', 'FORBIDDEN', 'FOUND', 'GATEWAY_TIMEOUT', 'GONE', 'HTTP_VERSION_NOT_SUPPORTED', 'HeavyOperationStatefulExecutor', 'HeavyOperationStatelessExecutor', 'HttpRequest', 'HttpResponse', 'IAM_A_TEAPOT', 'IHttpRequest', 'IHttpResponse', 'IM_USED', 'INSUFFICIENT_STORAGE', 'INTERNAL_SERVER_ERROR', 'INVALID_SSL_CERTIFICATE', 'LENGTH_REQUIRED', 'LOCKED', 'LOOP_DETECTED', 'LargeData', 'LoadBalancerHeuristic', 'METHOD_NOT_ALLOWED', 'MISDIRECTED_REQUEST', 'MOVED_PERMANENTLY', 'MULTIPLE_CHOICES', 'MULTI_STATUS', 'Multipart', 'NETWORK_AUTHENTICATION_REQUIRED', 'NON_AUTHORITATIVE_INFORMATION', 'NOT_ACCEPTABLE', 'NOT_EXTENDED', 'NOT_FOUND', 'NOT_IMPLEMENTED', 'NOT_MODIFIED', 'NO_CONTENT', 'OK', 'ORIGIN_IS_UNREACHABLE', 'PARTIAL_CONTENT', 'PAYLOAD_TOO_LARGE', 'PAYMENT_REQUIRED', 'PERMANENT_REDIRECT', 'PRECONDITION_FAILED', 'PRECONDITION_REQUIRED', 'PROCESSING', 'PROXY_AUTHENTICATION_REQUIRED', 'RANGE_NOT_SATISFIABLE', 'REQUEST_HEADER_FIELDS_TOO_LARGE', 'REQUEST_TIMEOUT', 'RESET_CONTENT', 'RETRY_WITH', 'ResponseCodes', 'SEE_OTHER', 'SERVICE_UNAVAILABLE', 'SSL_HANDSHAKE_FAILED', 'SWITCHING_PROTOCOLS', 'SqlResult', 'SqlValue', 'StatefulExecutor', 'StatelessExecutor', 'TEMPORARY_REDIRECT', 'TOO_MANY_REQUESTS', 'Table', 'UNAUTHORIZED', 'UNAVAILABLE_FOR_LEGAL_REASONS', 'UNKNOWN_ERROR', 'UNPROCESSABLE_ENTITY', 'UNSUPPORTED_MEDIA_TYPE', 'UPGRADE_REQUIRED', 'URI_TOO_LONG', 'USE_PROXY', 'VARIANT_ALSO_NEGOTIATES', 'WEB_SERVER_IS_DOWN', 'WebFramework', 'WebFrameworkException', 'get_localized_string', 'heavyOperationStateful', 'heavyOperationStateless', 'initialize_web_framework', 'make_sql_values', 'stateful', 'stateless']
8
+ class ChunkGenerator:
9
+ def __init__(self) -> None:
10
+ ...
11
+ def generate(self) -> typing.Any:
12
+ """
13
+ generate() -> str | bytes
14
+ """
15
+ class Config:
16
+ @typing.overload
17
+ def __init__(self, config_path: os.PathLike | str | bytes) -> None:
18
+ ...
19
+ @typing.overload
20
+ def __init__(self, server_configuration: str, application_directory: str) -> None:
21
+ ...
22
+ @typing.overload
23
+ def __init__(self, config_path: os.PathLike | str | bytes) -> None:
24
+ ...
25
+ def get_base_path(self) -> str:
26
+ ...
27
+ def get_configuration(self) -> str:
28
+ ...
29
+ def get_configuration_bool(self, key: str, recursive: bool = True) -> bool:
30
+ ...
31
+ def get_configuration_int(self, key: str, recursive: bool = True) -> int:
32
+ ...
33
+ def get_configuration_string(self, key: str, recursive: bool = True) -> str:
34
+ ...
35
+ def get_raw_configuration(self) -> str:
36
+ ...
37
+ def override_base_path(self, base_path: str) -> Config:
38
+ ...
39
+ @typing.overload
40
+ def override_configuration(self, key: str, value: str, recursive: bool = True) -> Config:
41
+ ...
42
+ @typing.overload
43
+ def override_configuration(self, key: str, value: bool, recursive: bool = True) -> Config:
44
+ ...
45
+ @typing.overload
46
+ def override_configuration(self, key: str, value: typing.SupportsInt, recursive: bool = True) -> Config:
47
+ ...
48
+ @typing.overload
49
+ def override_configuration(self, key: str, value: collections.abc.Sequence[str], recursive: bool = True) -> Config:
50
+ ...
51
+ @typing.overload
52
+ def override_configuration(self, key: str, value: collections.abc.Sequence[typing.SupportsInt], recursive: bool = True) -> Config:
53
+ ...
54
+ class Database:
55
+ @typing.overload
56
+ def __contains__(self, table_name: str) -> bool:
57
+ ...
58
+ @typing.overload
59
+ def __contains__(self, table_name: str) -> bool:
60
+ ...
61
+ def __getitem__(self, table_name: str) -> Table:
62
+ ...
63
+ def get_database_file_name(self) -> str:
64
+ ...
65
+ def get_database_name(self) -> str:
66
+ ...
67
+ def get_or_create_table(self, table_name: str, create_table_query: str) -> Table:
68
+ ...
69
+ def get_table(self, table_name: str) -> Table:
70
+ ...
71
+ class DynamicFunction:
72
+ def __call__(self, *args) -> str:
73
+ ...
74
+ def __init__(self) -> None:
75
+ ...
76
+ class ExecutorSettings:
77
+ class LoadType:
78
+ """
79
+ Members:
80
+
81
+ initialization
82
+
83
+ dynamic
84
+
85
+ none
86
+ """
87
+ __members__: typing.ClassVar[dict[str, ExecutorSettings.LoadType]] # value = {'initialization': <LoadType.initialization: 0>, 'dynamic': <LoadType.dynamic: 1>, 'none': <LoadType.none: 2>}
88
+ dynamic: typing.ClassVar[ExecutorSettings.LoadType] # value = <LoadType.dynamic: 1>
89
+ initialization: typing.ClassVar[ExecutorSettings.LoadType] # value = <LoadType.initialization: 0>
90
+ none: typing.ClassVar[ExecutorSettings.LoadType] # value = <LoadType.none: 2>
91
+ def __eq__(self, other: typing.Any) -> bool:
92
+ ...
93
+ def __getstate__(self) -> int:
94
+ ...
95
+ def __hash__(self) -> int:
96
+ ...
97
+ def __index__(self) -> int:
98
+ ...
99
+ def __init__(self, value: typing.SupportsInt) -> None:
100
+ ...
101
+ def __int__(self) -> int:
102
+ ...
103
+ def __ne__(self, other: typing.Any) -> bool:
104
+ ...
105
+ def __repr__(self) -> str:
106
+ ...
107
+ def __setstate__(self, state: typing.SupportsInt) -> None:
108
+ ...
109
+ def __str__(self) -> str:
110
+ ...
111
+ @property
112
+ def name(self) -> str:
113
+ ...
114
+ @property
115
+ def value(self) -> int:
116
+ ...
117
+ dynamic: typing.ClassVar[ExecutorSettings.LoadType] # value = <LoadType.dynamic: 1>
118
+ initialization: typing.ClassVar[ExecutorSettings.LoadType] # value = <LoadType.initialization: 0>
119
+ none: typing.ClassVar[ExecutorSettings.LoadType] # value = <LoadType.none: 2>
120
+ def __init__(self, pointer: typing.SupportsInt) -> None:
121
+ ...
122
+ def get_api_type(self) -> str:
123
+ ...
124
+ def get_init_parameters(self) -> dict:
125
+ ...
126
+ def get_load_type(self) -> ExecutorSettings.LoadType:
127
+ ...
128
+ def get_name_type(self) -> str:
129
+ ...
130
+ def get_user_agent_filter(self) -> str:
131
+ ...
132
+ class ExecutorType:
133
+ """
134
+ Members:
135
+
136
+ stateful
137
+
138
+ stateless
139
+
140
+ heavyOperationStateful
141
+
142
+ heavyOperationStateless
143
+ """
144
+ __members__: typing.ClassVar[dict[str, ExecutorType]] # value = {'stateful': <ExecutorType.stateful: 0>, 'stateless': <ExecutorType.stateless: 1>, 'heavyOperationStateful': <ExecutorType.heavyOperationStateful: 2>, 'heavyOperationStateless': <ExecutorType.heavyOperationStateless: 3>}
145
+ heavyOperationStateful: typing.ClassVar[ExecutorType] # value = <ExecutorType.heavyOperationStateful: 2>
146
+ heavyOperationStateless: typing.ClassVar[ExecutorType] # value = <ExecutorType.heavyOperationStateless: 3>
147
+ stateful: typing.ClassVar[ExecutorType] # value = <ExecutorType.stateful: 0>
148
+ stateless: typing.ClassVar[ExecutorType] # value = <ExecutorType.stateless: 1>
149
+ def __eq__(self, other: typing.Any) -> bool:
150
+ ...
151
+ def __getstate__(self) -> int:
152
+ ...
153
+ def __hash__(self) -> int:
154
+ ...
155
+ def __index__(self) -> int:
156
+ ...
157
+ def __init__(self, value: typing.SupportsInt) -> None:
158
+ ...
159
+ def __int__(self) -> int:
160
+ ...
161
+ def __ne__(self, other: typing.Any) -> bool:
162
+ ...
163
+ def __repr__(self) -> str:
164
+ ...
165
+ def __setstate__(self, state: typing.SupportsInt) -> None:
166
+ ...
167
+ def __str__(self) -> str:
168
+ ...
169
+ @property
170
+ def name(self) -> str:
171
+ ...
172
+ @property
173
+ def value(self) -> int:
174
+ ...
175
+ class HeavyOperationStatefulExecutor:
176
+ def __init__(self) -> None:
177
+ ...
178
+ def destroy(self) -> None:
179
+ ...
180
+ def do_connect(self, request: HttpRequest, response: HttpResponse) -> None:
181
+ ...
182
+ def do_delete(self, request: HttpRequest, response: HttpResponse) -> None:
183
+ ...
184
+ def do_get(self, request: HttpRequest, response: HttpResponse) -> None:
185
+ ...
186
+ def do_head(self, request: HttpRequest, response: HttpResponse) -> None:
187
+ ...
188
+ def do_options(self, request: HttpRequest, response: HttpResponse) -> None:
189
+ ...
190
+ def do_patch(self, request: HttpRequest, response: HttpResponse) -> None:
191
+ ...
192
+ def do_post(self, request: HttpRequest, response: HttpResponse) -> None:
193
+ ...
194
+ def do_put(self, request: HttpRequest, response: HttpResponse) -> None:
195
+ ...
196
+ def do_trace(self, request: HttpRequest, response: HttpResponse) -> None:
197
+ ...
198
+ def get_type(self) -> ExecutorType:
199
+ ...
200
+ def init(self, settings: ExecutorSettings) -> None:
201
+ ...
202
+ class HeavyOperationStatelessExecutor:
203
+ def __init__(self) -> None:
204
+ ...
205
+ def do_connect(self, request: HttpRequest, response: HttpResponse) -> None:
206
+ ...
207
+ def do_delete(self, request: HttpRequest, response: HttpResponse) -> None:
208
+ ...
209
+ def do_get(self, request: HttpRequest, response: HttpResponse) -> None:
210
+ ...
211
+ def do_head(self, request: HttpRequest, response: HttpResponse) -> None:
212
+ ...
213
+ def do_options(self, request: HttpRequest, response: HttpResponse) -> None:
214
+ ...
215
+ def do_patch(self, request: HttpRequest, response: HttpResponse) -> None:
216
+ ...
217
+ def do_post(self, request: HttpRequest, response: HttpResponse) -> None:
218
+ ...
219
+ def do_put(self, request: HttpRequest, response: HttpResponse) -> None:
220
+ ...
221
+ def do_trace(self, request: HttpRequest, response: HttpResponse) -> None:
222
+ ...
223
+ def get_type(self) -> ExecutorType:
224
+ ...
225
+ def init(self, settings: ExecutorSettings) -> None:
226
+ ...
227
+ class HttpRequest:
228
+ def __init__(self, pointer: typing.SupportsInt) -> None:
229
+ ...
230
+ def delete_session(self) -> None:
231
+ ...
232
+ def get_attribute(self, arg0: str, arg1: str) -> None:
233
+ ...
234
+ def get_body(self) -> str:
235
+ ...
236
+ def get_chunks(self) -> list[str]:
237
+ ...
238
+ def get_client_ip_v4(self) -> str:
239
+ ...
240
+ def get_client_port(self) -> int:
241
+ ...
242
+ def get_cookies(self) -> dict[str, str]:
243
+ ...
244
+ def get_database(self, database_name: str) -> Database:
245
+ ...
246
+ def get_file(self, file_path: os.PathLike | str | bytes) -> str:
247
+ ...
248
+ def get_headers(self) -> dict[str, str]:
249
+ ...
250
+ def get_http_version(self) -> str:
251
+ ...
252
+ def get_json(self) -> dict:
253
+ ...
254
+ def get_large_data(self) -> LargeData:
255
+ ...
256
+ def get_method(self) -> str:
257
+ ...
258
+ def get_multiparts(self) -> list[Multipart]:
259
+ ...
260
+ def get_or_create_database(self, database_name: str) -> Database:
261
+ ...
262
+ def get_or_create_table(self, database_name: str, table_name: str, create_table_query: str) -> Table:
263
+ ...
264
+ def get_query_parameters(self) -> dict[str, str]:
265
+ ...
266
+ def get_raw_parameters(self) -> str:
267
+ ...
268
+ def get_raw_request(self) -> str:
269
+ ...
270
+ @typing.overload
271
+ def get_route_parameter(self, route_parameter_name: str) -> str:
272
+ ...
273
+ @typing.overload
274
+ def get_route_parameter(self, route_parameter_name: str) -> bool:
275
+ ...
276
+ @typing.overload
277
+ def get_route_parameter(self, route_parameter_name: str) -> int:
278
+ ...
279
+ @typing.overload
280
+ def get_route_parameter(self, route_parameter_name: str) -> float:
281
+ ...
282
+ def get_server_ip_v4(self) -> str:
283
+ ...
284
+ def get_server_port(self) -> int:
285
+ ...
286
+ def get_table(self, database_name: str, table_name: str) -> Table:
287
+ ...
288
+ def is_wfdp_function_registered(self, function_name: str) -> bool:
289
+ ...
290
+ def process_dynamic_file(self, file_data: str, variables: collections.abc.Mapping[str, str]) -> str:
291
+ ...
292
+ def process_static_file(self, file_data: str, file_extension: str) -> str:
293
+ ...
294
+ def register_wfdp_function(self, function_name: str, function_class: type) -> None:
295
+ ...
296
+ def remove_attribute(self, name: str) -> None:
297
+ ...
298
+ def send_asset_file(self, file_path: str, response: HttpResponse, variables: collections.abc.Mapping[str, str], is_binary: bool, file_name: str) -> None:
299
+ ...
300
+ def send_chunks(self, response: HttpResponse, generator: ChunkGenerator) -> None:
301
+ ...
302
+ def send_dynamic_file(self, file_path: str, response: HttpResponse, variables: collections.abc.Mapping[str, str], is_binary: bool = False, file_name: str = '') -> None:
303
+ ...
304
+ def send_file_chunks(self, response: HttpResponse, file_name: str, generator: ChunkGenerator) -> None:
305
+ ...
306
+ def send_static_file(self, file_path: str, response: HttpResponse, is_binary: bool, file_name: str) -> None:
307
+ ...
308
+ def set_attribute(self, name: str, value: str) -> None:
309
+ ...
310
+ def stream_file(self, file_path: str, response: HttpResponse, file_name: str, chunk_size: typing.SupportsInt = 14680064) -> None:
311
+ ...
312
+ def throw_exception(self, error_message: str, response_code: ResponseCodes, log_category: str = '') -> None:
313
+ ...
314
+ def unregister_wfdp_function(self, function_name: str) -> None:
315
+ ...
316
+ class HttpResponse:
317
+ def __bool__(self) -> bool:
318
+ ...
319
+ def __init__(self, arg0: typing.SupportsInt) -> None:
320
+ """
321
+ pointer_a
322
+ """
323
+ def add_cookie(self, name: str, value: str) -> None:
324
+ ...
325
+ def add_header(self, name: str, value: str) -> None:
326
+ ...
327
+ def append_body(self, body: str) -> HttpResponse:
328
+ ...
329
+ @typing.overload
330
+ def set_body(self, body: str) -> None:
331
+ ...
332
+ @typing.overload
333
+ def set_body(self, json: dict) -> None:
334
+ ...
335
+ def set_default(self) -> None:
336
+ ...
337
+ def set_is_valid(self, arg0: bool) -> None:
338
+ ...
339
+ def set_response_code(self, response_code: ResponseCodes) -> None:
340
+ ...
341
+ class IHttpRequest:
342
+ pass
343
+ class IHttpResponse:
344
+ pass
345
+ class LargeData:
346
+ def __iter__(self) -> collections.abc.Iterator:
347
+ ...
348
+ def __len__(self) -> int:
349
+ ...
350
+ class LoadBalancerHeuristic:
351
+ def __call__(self) -> int:
352
+ ...
353
+ def __init__(self, ip: str, port: str, use_https: bool) -> None:
354
+ ...
355
+ def get_ip(self) -> str:
356
+ ...
357
+ def get_port(self) -> str:
358
+ ...
359
+ def get_use_https(self) -> bool:
360
+ ...
361
+ def on_end(self) -> None:
362
+ ...
363
+ def on_start(self) -> None:
364
+ ...
365
+ class Multipart:
366
+ def get_content_type(self) -> str | None:
367
+ ...
368
+ def get_data(self) -> str:
369
+ ...
370
+ def get_file_name(self) -> str | None:
371
+ ...
372
+ def get_name(self) -> str:
373
+ ...
374
+ class ResponseCodes:
375
+ """
376
+ Members:
377
+
378
+ CONTINUE
379
+
380
+ SWITCHING_PROTOCOLS
381
+
382
+ PROCESSING
383
+
384
+ OK
385
+
386
+ CREATED
387
+
388
+ ACCEPTED
389
+
390
+ NON_AUTHORITATIVE_INFORMATION
391
+
392
+ NO_CONTENT
393
+
394
+ RESET_CONTENT
395
+
396
+ PARTIAL_CONTENT
397
+
398
+ MULTI_STATUS
399
+
400
+ ALREADY_REPORTED
401
+
402
+ IM_USED
403
+
404
+ MULTIPLE_CHOICES
405
+
406
+ MOVED_PERMANENTLY
407
+
408
+ FOUND
409
+
410
+ SEE_OTHER
411
+
412
+ NOT_MODIFIED
413
+
414
+ USE_PROXY
415
+
416
+ TEMPORARY_REDIRECT
417
+
418
+ PERMANENT_REDIRECT
419
+
420
+ BAD_REQUEST
421
+
422
+ UNAUTHORIZED
423
+
424
+ PAYMENT_REQUIRED
425
+
426
+ FORBIDDEN
427
+
428
+ NOT_FOUND
429
+
430
+ METHOD_NOT_ALLOWED
431
+
432
+ NOT_ACCEPTABLE
433
+
434
+ PROXY_AUTHENTICATION_REQUIRED
435
+
436
+ REQUEST_TIMEOUT
437
+
438
+ CONFLICT
439
+
440
+ GONE
441
+
442
+ LENGTH_REQUIRED
443
+
444
+ PRECONDITION_FAILED
445
+
446
+ PAYLOAD_TOO_LARGE
447
+
448
+ URI_TOO_LONG
449
+
450
+ UNSUPPORTED_MEDIA_TYPE
451
+
452
+ RANGE_NOT_SATISFIABLE
453
+
454
+ EXPECTATION_FAILED
455
+
456
+ IAM_A_TEAPOT
457
+
458
+ AUTHENTICATION_TIMEOUT
459
+
460
+ MISDIRECTED_REQUEST
461
+
462
+ UNPROCESSABLE_ENTITY
463
+
464
+ LOCKED
465
+
466
+ FAILED_DEPENDENCY
467
+
468
+ UPGRADE_REQUIRED
469
+
470
+ PRECONDITION_REQUIRED
471
+
472
+ TOO_MANY_REQUESTS
473
+
474
+ REQUEST_HEADER_FIELDS_TOO_LARGE
475
+
476
+ RETRY_WITH
477
+
478
+ UNAVAILABLE_FOR_LEGAL_REASONS
479
+
480
+ CLIENT_CLOSED_REQUEST
481
+
482
+ INTERNAL_SERVER_ERROR
483
+
484
+ NOT_IMPLEMENTED
485
+
486
+ BAD_GATEWAY
487
+
488
+ SERVICE_UNAVAILABLE
489
+
490
+ GATEWAY_TIMEOUT
491
+
492
+ HTTP_VERSION_NOT_SUPPORTED
493
+
494
+ VARIANT_ALSO_NEGOTIATES
495
+
496
+ INSUFFICIENT_STORAGE
497
+
498
+ LOOP_DETECTED
499
+
500
+ BANDWIDTH_LIMIT_EXCEEDED
501
+
502
+ NOT_EXTENDED
503
+
504
+ NETWORK_AUTHENTICATION_REQUIRED
505
+
506
+ UNKNOWN_ERROR
507
+
508
+ WEB_SERVER_IS_DOWN
509
+
510
+ CONNECTION_TIMED_OUT
511
+
512
+ ORIGIN_IS_UNREACHABLE
513
+
514
+ A_TIMEOUT_OCCURRED
515
+
516
+ SSL_HANDSHAKE_FAILED
517
+
518
+ INVALID_SSL_CERTIFICATE
519
+ """
520
+ ACCEPTED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.ACCEPTED: 202>
521
+ ALREADY_REPORTED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.ALREADY_REPORTED: 208>
522
+ AUTHENTICATION_TIMEOUT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.AUTHENTICATION_TIMEOUT: 419>
523
+ A_TIMEOUT_OCCURRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.A_TIMEOUT_OCCURRED: 524>
524
+ BAD_GATEWAY: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.BAD_GATEWAY: 502>
525
+ BAD_REQUEST: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.BAD_REQUEST: 400>
526
+ BANDWIDTH_LIMIT_EXCEEDED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.BANDWIDTH_LIMIT_EXCEEDED: 509>
527
+ CLIENT_CLOSED_REQUEST: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.CLIENT_CLOSED_REQUEST: 499>
528
+ CONFLICT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.CONFLICT: 409>
529
+ CONNECTION_TIMED_OUT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.CONNECTION_TIMED_OUT: 522>
530
+ CONTINUE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.CONTINUE: 100>
531
+ CREATED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.CREATED: 201>
532
+ EXPECTATION_FAILED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.EXPECTATION_FAILED: 417>
533
+ FAILED_DEPENDENCY: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.FAILED_DEPENDENCY: 424>
534
+ FORBIDDEN: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.FORBIDDEN: 403>
535
+ FOUND: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.FOUND: 302>
536
+ GATEWAY_TIMEOUT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.GATEWAY_TIMEOUT: 504>
537
+ GONE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.GONE: 410>
538
+ HTTP_VERSION_NOT_SUPPORTED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.HTTP_VERSION_NOT_SUPPORTED: 505>
539
+ IAM_A_TEAPOT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.IAM_A_TEAPOT: 418>
540
+ IM_USED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.IM_USED: 226>
541
+ INSUFFICIENT_STORAGE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.INSUFFICIENT_STORAGE: 507>
542
+ INTERNAL_SERVER_ERROR: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.INTERNAL_SERVER_ERROR: 500>
543
+ INVALID_SSL_CERTIFICATE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.INVALID_SSL_CERTIFICATE: 526>
544
+ LENGTH_REQUIRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.LENGTH_REQUIRED: 411>
545
+ LOCKED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.LOCKED: 423>
546
+ LOOP_DETECTED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.LOOP_DETECTED: 508>
547
+ METHOD_NOT_ALLOWED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.METHOD_NOT_ALLOWED: 405>
548
+ MISDIRECTED_REQUEST: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.MISDIRECTED_REQUEST: 421>
549
+ MOVED_PERMANENTLY: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.MOVED_PERMANENTLY: 301>
550
+ MULTIPLE_CHOICES: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.MULTIPLE_CHOICES: 300>
551
+ MULTI_STATUS: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.MULTI_STATUS: 207>
552
+ NETWORK_AUTHENTICATION_REQUIRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NETWORK_AUTHENTICATION_REQUIRED: 511>
553
+ NON_AUTHORITATIVE_INFORMATION: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NON_AUTHORITATIVE_INFORMATION: 203>
554
+ NOT_ACCEPTABLE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NOT_ACCEPTABLE: 406>
555
+ NOT_EXTENDED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NOT_EXTENDED: 510>
556
+ NOT_FOUND: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NOT_FOUND: 404>
557
+ NOT_IMPLEMENTED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NOT_IMPLEMENTED: 501>
558
+ NOT_MODIFIED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NOT_MODIFIED: 304>
559
+ NO_CONTENT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.NO_CONTENT: 204>
560
+ OK: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.OK: 200>
561
+ ORIGIN_IS_UNREACHABLE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.ORIGIN_IS_UNREACHABLE: 523>
562
+ PARTIAL_CONTENT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PARTIAL_CONTENT: 206>
563
+ PAYLOAD_TOO_LARGE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PAYLOAD_TOO_LARGE: 413>
564
+ PAYMENT_REQUIRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PAYMENT_REQUIRED: 402>
565
+ PERMANENT_REDIRECT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PERMANENT_REDIRECT: 308>
566
+ PRECONDITION_FAILED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PRECONDITION_FAILED: 412>
567
+ PRECONDITION_REQUIRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PRECONDITION_REQUIRED: 428>
568
+ PROCESSING: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PROCESSING: 102>
569
+ PROXY_AUTHENTICATION_REQUIRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.PROXY_AUTHENTICATION_REQUIRED: 407>
570
+ RANGE_NOT_SATISFIABLE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.RANGE_NOT_SATISFIABLE: 416>
571
+ REQUEST_HEADER_FIELDS_TOO_LARGE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.REQUEST_HEADER_FIELDS_TOO_LARGE: 431>
572
+ REQUEST_TIMEOUT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.REQUEST_TIMEOUT: 408>
573
+ RESET_CONTENT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.RESET_CONTENT: 205>
574
+ RETRY_WITH: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.RETRY_WITH: 449>
575
+ SEE_OTHER: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.SEE_OTHER: 303>
576
+ SERVICE_UNAVAILABLE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.SERVICE_UNAVAILABLE: 503>
577
+ SSL_HANDSHAKE_FAILED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.SSL_HANDSHAKE_FAILED: 525>
578
+ SWITCHING_PROTOCOLS: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.SWITCHING_PROTOCOLS: 101>
579
+ TEMPORARY_REDIRECT: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.TEMPORARY_REDIRECT: 307>
580
+ TOO_MANY_REQUESTS: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.TOO_MANY_REQUESTS: 429>
581
+ UNAUTHORIZED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.UNAUTHORIZED: 401>
582
+ UNAVAILABLE_FOR_LEGAL_REASONS: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.UNAVAILABLE_FOR_LEGAL_REASONS: 451>
583
+ UNKNOWN_ERROR: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.UNKNOWN_ERROR: 520>
584
+ UNPROCESSABLE_ENTITY: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.UNPROCESSABLE_ENTITY: 422>
585
+ UNSUPPORTED_MEDIA_TYPE: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.UNSUPPORTED_MEDIA_TYPE: 415>
586
+ UPGRADE_REQUIRED: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.UPGRADE_REQUIRED: 426>
587
+ URI_TOO_LONG: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.URI_TOO_LONG: 414>
588
+ USE_PROXY: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.USE_PROXY: 305>
589
+ VARIANT_ALSO_NEGOTIATES: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.VARIANT_ALSO_NEGOTIATES: 506>
590
+ WEB_SERVER_IS_DOWN: typing.ClassVar[ResponseCodes] # value = <ResponseCodes.WEB_SERVER_IS_DOWN: 521>
591
+ __members__: typing.ClassVar[dict[str, ResponseCodes]] # value = {'CONTINUE': <ResponseCodes.CONTINUE: 100>, 'SWITCHING_PROTOCOLS': <ResponseCodes.SWITCHING_PROTOCOLS: 101>, 'PROCESSING': <ResponseCodes.PROCESSING: 102>, 'OK': <ResponseCodes.OK: 200>, 'CREATED': <ResponseCodes.CREATED: 201>, 'ACCEPTED': <ResponseCodes.ACCEPTED: 202>, 'NON_AUTHORITATIVE_INFORMATION': <ResponseCodes.NON_AUTHORITATIVE_INFORMATION: 203>, 'NO_CONTENT': <ResponseCodes.NO_CONTENT: 204>, 'RESET_CONTENT': <ResponseCodes.RESET_CONTENT: 205>, 'PARTIAL_CONTENT': <ResponseCodes.PARTIAL_CONTENT: 206>, 'MULTI_STATUS': <ResponseCodes.MULTI_STATUS: 207>, 'ALREADY_REPORTED': <ResponseCodes.ALREADY_REPORTED: 208>, 'IM_USED': <ResponseCodes.IM_USED: 226>, 'MULTIPLE_CHOICES': <ResponseCodes.MULTIPLE_CHOICES: 300>, 'MOVED_PERMANENTLY': <ResponseCodes.MOVED_PERMANENTLY: 301>, 'FOUND': <ResponseCodes.FOUND: 302>, 'SEE_OTHER': <ResponseCodes.SEE_OTHER: 303>, 'NOT_MODIFIED': <ResponseCodes.NOT_MODIFIED: 304>, 'USE_PROXY': <ResponseCodes.USE_PROXY: 305>, 'TEMPORARY_REDIRECT': <ResponseCodes.TEMPORARY_REDIRECT: 307>, 'PERMANENT_REDIRECT': <ResponseCodes.PERMANENT_REDIRECT: 308>, 'BAD_REQUEST': <ResponseCodes.BAD_REQUEST: 400>, 'UNAUTHORIZED': <ResponseCodes.UNAUTHORIZED: 401>, 'PAYMENT_REQUIRED': <ResponseCodes.PAYMENT_REQUIRED: 402>, 'FORBIDDEN': <ResponseCodes.FORBIDDEN: 403>, 'NOT_FOUND': <ResponseCodes.NOT_FOUND: 404>, 'METHOD_NOT_ALLOWED': <ResponseCodes.METHOD_NOT_ALLOWED: 405>, 'NOT_ACCEPTABLE': <ResponseCodes.NOT_ACCEPTABLE: 406>, 'PROXY_AUTHENTICATION_REQUIRED': <ResponseCodes.PROXY_AUTHENTICATION_REQUIRED: 407>, 'REQUEST_TIMEOUT': <ResponseCodes.REQUEST_TIMEOUT: 408>, 'CONFLICT': <ResponseCodes.CONFLICT: 409>, 'GONE': <ResponseCodes.GONE: 410>, 'LENGTH_REQUIRED': <ResponseCodes.LENGTH_REQUIRED: 411>, 'PRECONDITION_FAILED': <ResponseCodes.PRECONDITION_FAILED: 412>, 'PAYLOAD_TOO_LARGE': <ResponseCodes.PAYLOAD_TOO_LARGE: 413>, 'URI_TOO_LONG': <ResponseCodes.URI_TOO_LONG: 414>, 'UNSUPPORTED_MEDIA_TYPE': <ResponseCodes.UNSUPPORTED_MEDIA_TYPE: 415>, 'RANGE_NOT_SATISFIABLE': <ResponseCodes.RANGE_NOT_SATISFIABLE: 416>, 'EXPECTATION_FAILED': <ResponseCodes.EXPECTATION_FAILED: 417>, 'IAM_A_TEAPOT': <ResponseCodes.IAM_A_TEAPOT: 418>, 'AUTHENTICATION_TIMEOUT': <ResponseCodes.AUTHENTICATION_TIMEOUT: 419>, 'MISDIRECTED_REQUEST': <ResponseCodes.MISDIRECTED_REQUEST: 421>, 'UNPROCESSABLE_ENTITY': <ResponseCodes.UNPROCESSABLE_ENTITY: 422>, 'LOCKED': <ResponseCodes.LOCKED: 423>, 'FAILED_DEPENDENCY': <ResponseCodes.FAILED_DEPENDENCY: 424>, 'UPGRADE_REQUIRED': <ResponseCodes.UPGRADE_REQUIRED: 426>, 'PRECONDITION_REQUIRED': <ResponseCodes.PRECONDITION_REQUIRED: 428>, 'TOO_MANY_REQUESTS': <ResponseCodes.TOO_MANY_REQUESTS: 429>, 'REQUEST_HEADER_FIELDS_TOO_LARGE': <ResponseCodes.REQUEST_HEADER_FIELDS_TOO_LARGE: 431>, 'RETRY_WITH': <ResponseCodes.RETRY_WITH: 449>, 'UNAVAILABLE_FOR_LEGAL_REASONS': <ResponseCodes.UNAVAILABLE_FOR_LEGAL_REASONS: 451>, 'CLIENT_CLOSED_REQUEST': <ResponseCodes.CLIENT_CLOSED_REQUEST: 499>, 'INTERNAL_SERVER_ERROR': <ResponseCodes.INTERNAL_SERVER_ERROR: 500>, 'NOT_IMPLEMENTED': <ResponseCodes.NOT_IMPLEMENTED: 501>, 'BAD_GATEWAY': <ResponseCodes.BAD_GATEWAY: 502>, 'SERVICE_UNAVAILABLE': <ResponseCodes.SERVICE_UNAVAILABLE: 503>, 'GATEWAY_TIMEOUT': <ResponseCodes.GATEWAY_TIMEOUT: 504>, 'HTTP_VERSION_NOT_SUPPORTED': <ResponseCodes.HTTP_VERSION_NOT_SUPPORTED: 505>, 'VARIANT_ALSO_NEGOTIATES': <ResponseCodes.VARIANT_ALSO_NEGOTIATES: 506>, 'INSUFFICIENT_STORAGE': <ResponseCodes.INSUFFICIENT_STORAGE: 507>, 'LOOP_DETECTED': <ResponseCodes.LOOP_DETECTED: 508>, 'BANDWIDTH_LIMIT_EXCEEDED': <ResponseCodes.BANDWIDTH_LIMIT_EXCEEDED: 509>, 'NOT_EXTENDED': <ResponseCodes.NOT_EXTENDED: 510>, 'NETWORK_AUTHENTICATION_REQUIRED': <ResponseCodes.NETWORK_AUTHENTICATION_REQUIRED: 511>, 'UNKNOWN_ERROR': <ResponseCodes.UNKNOWN_ERROR: 520>, 'WEB_SERVER_IS_DOWN': <ResponseCodes.WEB_SERVER_IS_DOWN: 521>, 'CONNECTION_TIMED_OUT': <ResponseCodes.CONNECTION_TIMED_OUT: 522>, 'ORIGIN_IS_UNREACHABLE': <ResponseCodes.ORIGIN_IS_UNREACHABLE: 523>, 'A_TIMEOUT_OCCURRED': <ResponseCodes.A_TIMEOUT_OCCURRED: 524>, 'SSL_HANDSHAKE_FAILED': <ResponseCodes.SSL_HANDSHAKE_FAILED: 525>, 'INVALID_SSL_CERTIFICATE': <ResponseCodes.INVALID_SSL_CERTIFICATE: 526>}
592
+ def __eq__(self, other: typing.Any) -> bool:
593
+ ...
594
+ def __getstate__(self) -> int:
595
+ ...
596
+ def __hash__(self) -> int:
597
+ ...
598
+ def __index__(self) -> int:
599
+ ...
600
+ def __init__(self, value: typing.SupportsInt) -> None:
601
+ ...
602
+ def __int__(self) -> int:
603
+ ...
604
+ def __ne__(self, other: typing.Any) -> bool:
605
+ ...
606
+ def __repr__(self) -> str:
607
+ ...
608
+ def __setstate__(self, state: typing.SupportsInt) -> None:
609
+ ...
610
+ def __str__(self) -> str:
611
+ ...
612
+ @property
613
+ def name(self) -> str:
614
+ ...
615
+ @property
616
+ def value(self) -> int:
617
+ ...
618
+ class SqlResult:
619
+ def __getitem__(self, index: typing.SupportsInt) -> dict[str, SqlValue]:
620
+ ...
621
+ def __iter__(self) -> collections.abc.Iterator[dict[str, SqlValue]]:
622
+ ...
623
+ def __len__(self) -> int:
624
+ ...
625
+ def at(self, index: typing.SupportsInt) -> dict[str, SqlValue]:
626
+ ...
627
+ class SqlValue:
628
+ @typing.overload
629
+ def __init__(self, value: typing.SupportsInt) -> None:
630
+ ...
631
+ @typing.overload
632
+ def __init__(self, value: typing.SupportsFloat) -> None:
633
+ ...
634
+ @typing.overload
635
+ def __init__(self, value: str) -> None:
636
+ ...
637
+ @typing.overload
638
+ def __init__(self, value: None) -> None:
639
+ ...
640
+ @typing.overload
641
+ def __init__(self, value: collections.abc.Sequence[typing.SupportsInt]) -> None:
642
+ ...
643
+ def get(self) -> int | float | str | bool | None | list[int]:
644
+ ...
645
+ class StatefulExecutor:
646
+ def __init__(self) -> None:
647
+ ...
648
+ def destroy(self) -> None:
649
+ ...
650
+ def do_connect(self, request: HttpRequest, response: HttpResponse) -> None:
651
+ ...
652
+ def do_delete(self, request: HttpRequest, response: HttpResponse) -> None:
653
+ ...
654
+ def do_get(self, request: HttpRequest, response: HttpResponse) -> None:
655
+ ...
656
+ def do_head(self, request: HttpRequest, response: HttpResponse) -> None:
657
+ ...
658
+ def do_options(self, request: HttpRequest, response: HttpResponse) -> None:
659
+ ...
660
+ def do_patch(self, request: HttpRequest, response: HttpResponse) -> None:
661
+ ...
662
+ def do_post(self, request: HttpRequest, response: HttpResponse) -> None:
663
+ ...
664
+ def do_put(self, request: HttpRequest, response: HttpResponse) -> None:
665
+ ...
666
+ def do_trace(self, request: HttpRequest, response: HttpResponse) -> None:
667
+ ...
668
+ def get_type(self) -> ExecutorType:
669
+ ...
670
+ def init(self, settings: ExecutorSettings) -> None:
671
+ ...
672
+ class StatelessExecutor:
673
+ def __init__(self) -> None:
674
+ ...
675
+ def do_connect(self, request: HttpRequest, response: HttpResponse) -> None:
676
+ ...
677
+ def do_delete(self, request: HttpRequest, response: HttpResponse) -> None:
678
+ ...
679
+ def do_get(self, request: HttpRequest, response: HttpResponse) -> None:
680
+ ...
681
+ def do_head(self, request: HttpRequest, response: HttpResponse) -> None:
682
+ ...
683
+ def do_options(self, request: HttpRequest, response: HttpResponse) -> None:
684
+ ...
685
+ def do_patch(self, request: HttpRequest, response: HttpResponse) -> None:
686
+ ...
687
+ def do_post(self, request: HttpRequest, response: HttpResponse) -> None:
688
+ ...
689
+ def do_put(self, request: HttpRequest, response: HttpResponse) -> None:
690
+ ...
691
+ def do_trace(self, request: HttpRequest, response: HttpResponse) -> None:
692
+ ...
693
+ def get_type(self) -> ExecutorType:
694
+ ...
695
+ def init(self, settings: ExecutorSettings) -> None:
696
+ ...
697
+ class Table:
698
+ def execute(self, query: str, values: collections.abc.Sequence[SqlValue] = []) -> SqlResult:
699
+ ...
700
+ class WebFramework:
701
+ @staticmethod
702
+ def get_web_framework_version() -> str:
703
+ ...
704
+ @typing.overload
705
+ def __init__(self, config_path: str) -> None:
706
+ ...
707
+ @typing.overload
708
+ def __init__(self, server_configuration: str, application_directory: str) -> None:
709
+ ...
710
+ @typing.overload
711
+ def __init__(self, config: Config) -> None:
712
+ ...
713
+ def is_server_running(self) -> bool:
714
+ ...
715
+ def start(self, wait: bool = False, on_start_server: collections.abc.Callable[[], None] = None) -> None:
716
+ ...
717
+ def stop(self, wait: bool = True) -> None:
718
+ ...
719
+ class WebFrameworkException(Exception):
720
+ pass
721
+ def get_localized_string(localization_module_name: str, key: str, language: str = '') -> str:
722
+ ...
723
+ def initialize_web_framework(path_to_dll: str = '') -> None:
724
+ ...
725
+ def make_sql_values(*args) -> list[SqlValue]:
726
+ ...
727
+ ACCEPTED: ResponseCodes # value = <ResponseCodes.ACCEPTED: 202>
728
+ ALREADY_REPORTED: ResponseCodes # value = <ResponseCodes.ALREADY_REPORTED: 208>
729
+ AUTHENTICATION_TIMEOUT: ResponseCodes # value = <ResponseCodes.AUTHENTICATION_TIMEOUT: 419>
730
+ A_TIMEOUT_OCCURRED: ResponseCodes # value = <ResponseCodes.A_TIMEOUT_OCCURRED: 524>
731
+ BAD_GATEWAY: ResponseCodes # value = <ResponseCodes.BAD_GATEWAY: 502>
732
+ BAD_REQUEST: ResponseCodes # value = <ResponseCodes.BAD_REQUEST: 400>
733
+ BANDWIDTH_LIMIT_EXCEEDED: ResponseCodes # value = <ResponseCodes.BANDWIDTH_LIMIT_EXCEEDED: 509>
734
+ CLIENT_CLOSED_REQUEST: ResponseCodes # value = <ResponseCodes.CLIENT_CLOSED_REQUEST: 499>
735
+ CONFLICT: ResponseCodes # value = <ResponseCodes.CONFLICT: 409>
736
+ CONNECTION_TIMED_OUT: ResponseCodes # value = <ResponseCodes.CONNECTION_TIMED_OUT: 522>
737
+ CONTINUE: ResponseCodes # value = <ResponseCodes.CONTINUE: 100>
738
+ CREATED: ResponseCodes # value = <ResponseCodes.CREATED: 201>
739
+ EXPECTATION_FAILED: ResponseCodes # value = <ResponseCodes.EXPECTATION_FAILED: 417>
740
+ FAILED_DEPENDENCY: ResponseCodes # value = <ResponseCodes.FAILED_DEPENDENCY: 424>
741
+ FORBIDDEN: ResponseCodes # value = <ResponseCodes.FORBIDDEN: 403>
742
+ FOUND: ResponseCodes # value = <ResponseCodes.FOUND: 302>
743
+ GATEWAY_TIMEOUT: ResponseCodes # value = <ResponseCodes.GATEWAY_TIMEOUT: 504>
744
+ GONE: ResponseCodes # value = <ResponseCodes.GONE: 410>
745
+ HTTP_VERSION_NOT_SUPPORTED: ResponseCodes # value = <ResponseCodes.HTTP_VERSION_NOT_SUPPORTED: 505>
746
+ IAM_A_TEAPOT: ResponseCodes # value = <ResponseCodes.IAM_A_TEAPOT: 418>
747
+ IM_USED: ResponseCodes # value = <ResponseCodes.IM_USED: 226>
748
+ INSUFFICIENT_STORAGE: ResponseCodes # value = <ResponseCodes.INSUFFICIENT_STORAGE: 507>
749
+ INTERNAL_SERVER_ERROR: ResponseCodes # value = <ResponseCodes.INTERNAL_SERVER_ERROR: 500>
750
+ INVALID_SSL_CERTIFICATE: ResponseCodes # value = <ResponseCodes.INVALID_SSL_CERTIFICATE: 526>
751
+ LENGTH_REQUIRED: ResponseCodes # value = <ResponseCodes.LENGTH_REQUIRED: 411>
752
+ LOCKED: ResponseCodes # value = <ResponseCodes.LOCKED: 423>
753
+ LOOP_DETECTED: ResponseCodes # value = <ResponseCodes.LOOP_DETECTED: 508>
754
+ METHOD_NOT_ALLOWED: ResponseCodes # value = <ResponseCodes.METHOD_NOT_ALLOWED: 405>
755
+ MISDIRECTED_REQUEST: ResponseCodes # value = <ResponseCodes.MISDIRECTED_REQUEST: 421>
756
+ MOVED_PERMANENTLY: ResponseCodes # value = <ResponseCodes.MOVED_PERMANENTLY: 301>
757
+ MULTIPLE_CHOICES: ResponseCodes # value = <ResponseCodes.MULTIPLE_CHOICES: 300>
758
+ MULTI_STATUS: ResponseCodes # value = <ResponseCodes.MULTI_STATUS: 207>
759
+ NETWORK_AUTHENTICATION_REQUIRED: ResponseCodes # value = <ResponseCodes.NETWORK_AUTHENTICATION_REQUIRED: 511>
760
+ NON_AUTHORITATIVE_INFORMATION: ResponseCodes # value = <ResponseCodes.NON_AUTHORITATIVE_INFORMATION: 203>
761
+ NOT_ACCEPTABLE: ResponseCodes # value = <ResponseCodes.NOT_ACCEPTABLE: 406>
762
+ NOT_EXTENDED: ResponseCodes # value = <ResponseCodes.NOT_EXTENDED: 510>
763
+ NOT_FOUND: ResponseCodes # value = <ResponseCodes.NOT_FOUND: 404>
764
+ NOT_IMPLEMENTED: ResponseCodes # value = <ResponseCodes.NOT_IMPLEMENTED: 501>
765
+ NOT_MODIFIED: ResponseCodes # value = <ResponseCodes.NOT_MODIFIED: 304>
766
+ NO_CONTENT: ResponseCodes # value = <ResponseCodes.NO_CONTENT: 204>
767
+ OK: ResponseCodes # value = <ResponseCodes.OK: 200>
768
+ ORIGIN_IS_UNREACHABLE: ResponseCodes # value = <ResponseCodes.ORIGIN_IS_UNREACHABLE: 523>
769
+ PARTIAL_CONTENT: ResponseCodes # value = <ResponseCodes.PARTIAL_CONTENT: 206>
770
+ PAYLOAD_TOO_LARGE: ResponseCodes # value = <ResponseCodes.PAYLOAD_TOO_LARGE: 413>
771
+ PAYMENT_REQUIRED: ResponseCodes # value = <ResponseCodes.PAYMENT_REQUIRED: 402>
772
+ PERMANENT_REDIRECT: ResponseCodes # value = <ResponseCodes.PERMANENT_REDIRECT: 308>
773
+ PRECONDITION_FAILED: ResponseCodes # value = <ResponseCodes.PRECONDITION_FAILED: 412>
774
+ PRECONDITION_REQUIRED: ResponseCodes # value = <ResponseCodes.PRECONDITION_REQUIRED: 428>
775
+ PROCESSING: ResponseCodes # value = <ResponseCodes.PROCESSING: 102>
776
+ PROXY_AUTHENTICATION_REQUIRED: ResponseCodes # value = <ResponseCodes.PROXY_AUTHENTICATION_REQUIRED: 407>
777
+ RANGE_NOT_SATISFIABLE: ResponseCodes # value = <ResponseCodes.RANGE_NOT_SATISFIABLE: 416>
778
+ REQUEST_HEADER_FIELDS_TOO_LARGE: ResponseCodes # value = <ResponseCodes.REQUEST_HEADER_FIELDS_TOO_LARGE: 431>
779
+ REQUEST_TIMEOUT: ResponseCodes # value = <ResponseCodes.REQUEST_TIMEOUT: 408>
780
+ RESET_CONTENT: ResponseCodes # value = <ResponseCodes.RESET_CONTENT: 205>
781
+ RETRY_WITH: ResponseCodes # value = <ResponseCodes.RETRY_WITH: 449>
782
+ SEE_OTHER: ResponseCodes # value = <ResponseCodes.SEE_OTHER: 303>
783
+ SERVICE_UNAVAILABLE: ResponseCodes # value = <ResponseCodes.SERVICE_UNAVAILABLE: 503>
784
+ SSL_HANDSHAKE_FAILED: ResponseCodes # value = <ResponseCodes.SSL_HANDSHAKE_FAILED: 525>
785
+ SWITCHING_PROTOCOLS: ResponseCodes # value = <ResponseCodes.SWITCHING_PROTOCOLS: 101>
786
+ TEMPORARY_REDIRECT: ResponseCodes # value = <ResponseCodes.TEMPORARY_REDIRECT: 307>
787
+ TOO_MANY_REQUESTS: ResponseCodes # value = <ResponseCodes.TOO_MANY_REQUESTS: 429>
788
+ UNAUTHORIZED: ResponseCodes # value = <ResponseCodes.UNAUTHORIZED: 401>
789
+ UNAVAILABLE_FOR_LEGAL_REASONS: ResponseCodes # value = <ResponseCodes.UNAVAILABLE_FOR_LEGAL_REASONS: 451>
790
+ UNKNOWN_ERROR: ResponseCodes # value = <ResponseCodes.UNKNOWN_ERROR: 520>
791
+ UNPROCESSABLE_ENTITY: ResponseCodes # value = <ResponseCodes.UNPROCESSABLE_ENTITY: 422>
792
+ UNSUPPORTED_MEDIA_TYPE: ResponseCodes # value = <ResponseCodes.UNSUPPORTED_MEDIA_TYPE: 415>
793
+ UPGRADE_REQUIRED: ResponseCodes # value = <ResponseCodes.UPGRADE_REQUIRED: 426>
794
+ URI_TOO_LONG: ResponseCodes # value = <ResponseCodes.URI_TOO_LONG: 414>
795
+ USE_PROXY: ResponseCodes # value = <ResponseCodes.USE_PROXY: 305>
796
+ VARIANT_ALSO_NEGOTIATES: ResponseCodes # value = <ResponseCodes.VARIANT_ALSO_NEGOTIATES: 506>
797
+ WEB_SERVER_IS_DOWN: ResponseCodes # value = <ResponseCodes.WEB_SERVER_IS_DOWN: 521>
798
+ heavyOperationStateful: ExecutorType # value = <ExecutorType.heavyOperationStateful: 2>
799
+ heavyOperationStateless: ExecutorType # value = <ExecutorType.heavyOperationStateless: 3>
800
+ stateful: ExecutorType # value = <ExecutorType.stateful: 0>
801
+ stateless: ExecutorType # value = <ExecutorType.stateless: 1>