csvpredict 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.
Files changed (111) hide show
  1. csvpredict/__init__.py +35 -0
  2. csvpredict/client/__init__.py +8 -0
  3. csvpredict/client/api/__init__.py +1 -0
  4. csvpredict/client/api/api_v1_generate_analysis_graphs/__init__.py +1 -0
  5. csvpredict/client/api/api_v1_generate_analysis_graphs/endpoint_generate_graphs_api_v1_graphs_post.py +248 -0
  6. csvpredict/client/api/api_v1_generate_analysis_graphs/endpoint_generate_graphs_batch_api_v1_graphs_batch_post.py +236 -0
  7. csvpredict/client/api/api_v1_generate_excel_files/__init__.py +1 -0
  8. csvpredict/client/api/api_v1_generate_excel_files/endpoint_generate_xlsx_api_v1_xlsx_post.py +236 -0
  9. csvpredict/client/api/api_v1_generate_excel_files/endpoint_generate_xlsx_batch_api_v1_xlsx_batch_post.py +236 -0
  10. csvpredict/client/api/api_v1_generate_power_point_files/__init__.py +1 -0
  11. csvpredict/client/api/api_v1_generate_power_point_files/endpoint_generate_pptx_api_v1_pptx_post.py +240 -0
  12. csvpredict/client/api/api_v1_generate_power_point_files/endpoint_generate_pptx_batch_api_v1_pptx_batch_post.py +240 -0
  13. csvpredict/client/api/api_v1_generate_visualizable_statistics/__init__.py +1 -0
  14. csvpredict/client/api/api_v1_generate_visualizable_statistics/endpoint_inspect_api_v1_inspect_post.py +222 -0
  15. csvpredict/client/api/api_v1_generate_visualizable_statistics/endpoint_inspect_batch_api_v1_inspect_batch_post.py +226 -0
  16. csvpredict/client/api/default/__init__.py +1 -0
  17. csvpredict/client/api/default/health_get.py +84 -0
  18. csvpredict/client/api/generate_analysis_graphs/__init__.py +1 -0
  19. csvpredict/client/api/generate_analysis_graphs/endpoint_generate_graphs_batch_graphs_batch_post.py +262 -0
  20. csvpredict/client/api/generate_analysis_graphs/endpoint_generate_graphs_graphs_post.py +270 -0
  21. csvpredict/client/api/generate_excel_files/__init__.py +1 -0
  22. csvpredict/client/api/generate_excel_files/endpoint_generate_xlsx_batch_xlsx_batch_post.py +258 -0
  23. csvpredict/client/api/generate_excel_files/endpoint_generate_xlsx_xlsx_post.py +258 -0
  24. csvpredict/client/api/generate_power_point_files/__init__.py +1 -0
  25. csvpredict/client/api/generate_power_point_files/endpoint_generate_pptx_batch_pptx_batch_post.py +262 -0
  26. csvpredict/client/api/generate_power_point_files/endpoint_generate_pptx_pptx_post.py +262 -0
  27. csvpredict/client/api/generate_visualizable_statistics/__init__.py +1 -0
  28. csvpredict/client/api/generate_visualizable_statistics/endpoint_inspect_batch_inspect_batch_post.py +248 -0
  29. csvpredict/client/api/generate_visualizable_statistics/endpoint_inspect_inspect_post.py +242 -0
  30. csvpredict/client/api/make_predictions_based_on_input_data/__init__.py +1 -0
  31. csvpredict/client/api/make_predictions_based_on_input_data/endpoint_predict_file_predict_file_post.py +254 -0
  32. csvpredict/client/api/make_predictions_based_on_input_data/endpoint_predict_predict_post.py +262 -0
  33. csvpredict/client/client.py +282 -0
  34. csvpredict/client/errors.py +16 -0
  35. csvpredict/client/models/__init__.py +205 -0
  36. csvpredict/client/models/body_endpoint_generate_graphs_api_v1_graphs_post.py +398 -0
  37. csvpredict/client/models/body_endpoint_generate_graphs_api_v1_graphs_post_extension.py +11 -0
  38. csvpredict/client/models/body_endpoint_generate_graphs_batch_api_v1_graphs_batch_post.py +394 -0
  39. csvpredict/client/models/body_endpoint_generate_graphs_batch_api_v1_graphs_batch_post_extension.py +11 -0
  40. csvpredict/client/models/body_endpoint_generate_graphs_batch_graphs_batch_post.py +394 -0
  41. csvpredict/client/models/body_endpoint_generate_graphs_batch_graphs_batch_post_extension.py +11 -0
  42. csvpredict/client/models/body_endpoint_generate_graphs_graphs_post.py +398 -0
  43. csvpredict/client/models/body_endpoint_generate_graphs_graphs_post_extension.py +11 -0
  44. csvpredict/client/models/body_endpoint_generate_pptx_api_v1_pptx_post.py +357 -0
  45. csvpredict/client/models/body_endpoint_generate_pptx_batch_api_v1_pptx_batch_post.py +351 -0
  46. csvpredict/client/models/body_endpoint_generate_pptx_batch_pptx_batch_post.py +351 -0
  47. csvpredict/client/models/body_endpoint_generate_pptx_pptx_post.py +357 -0
  48. csvpredict/client/models/body_endpoint_generate_xlsx_api_v1_xlsx_post.py +342 -0
  49. csvpredict/client/models/body_endpoint_generate_xlsx_batch_api_v1_xlsx_batch_post.py +336 -0
  50. csvpredict/client/models/body_endpoint_generate_xlsx_batch_xlsx_batch_post.py +336 -0
  51. csvpredict/client/models/body_endpoint_generate_xlsx_xlsx_post.py +342 -0
  52. csvpredict/client/models/body_endpoint_inspect_api_v1_inspect_post.py +205 -0
  53. csvpredict/client/models/body_endpoint_inspect_batch_api_v1_inspect_batch_post.py +199 -0
  54. csvpredict/client/models/body_endpoint_inspect_batch_inspect_batch_post.py +199 -0
  55. csvpredict/client/models/body_endpoint_inspect_inspect_post.py +205 -0
  56. csvpredict/client/models/body_endpoint_predict_file_predict_file_post.py +362 -0
  57. csvpredict/client/models/body_endpoint_predict_file_predict_file_post_custom_seasonality_type_0.py +59 -0
  58. csvpredict/client/models/body_endpoint_predict_predict_post.py +358 -0
  59. csvpredict/client/models/body_endpoint_predict_predict_post_custom_seasonality_type_0.py +59 -0
  60. csvpredict/client/models/color_palette.py +164 -0
  61. csvpredict/client/models/file_statistics.py +131 -0
  62. csvpredict/client/models/file_statistics_partitioned_statistics_type_0.py +63 -0
  63. csvpredict/client/models/font_family.py +17 -0
  64. csvpredict/client/models/frequency.py +12 -0
  65. csvpredict/client/models/http_validation_error.py +79 -0
  66. csvpredict/client/models/inspect_batch_response.py +71 -0
  67. csvpredict/client/models/inspect_batch_response_statistics.py +80 -0
  68. csvpredict/client/models/inspect_response.py +144 -0
  69. csvpredict/client/models/inspect_response_partitioned_statistics_type_0.py +63 -0
  70. csvpredict/client/models/language.py +14 -0
  71. csvpredict/client/models/overall_statistics_dict.py +164 -0
  72. csvpredict/client/models/predict_response.py +113 -0
  73. csvpredict/client/models/predict_response_historical_data_item.py +46 -0
  74. csvpredict/client/models/predict_response_predictions_item.py +46 -0
  75. csvpredict/client/models/statistics.py +95 -0
  76. csvpredict/client/models/statistics_correlation_statistics.py +71 -0
  77. csvpredict/client/models/statistics_correlation_statistics_additional_property.py +63 -0
  78. csvpredict/client/models/summary_statistics_dict.py +209 -0
  79. csvpredict/client/models/summary_statistics_dict_boolean.py +81 -0
  80. csvpredict/client/models/summary_statistics_dict_boolean_additional_property_item.py +46 -0
  81. csvpredict/client/models/summary_statistics_dict_boolean_count.py +85 -0
  82. csvpredict/client/models/summary_statistics_dict_boolean_count_additional_property_item.py +46 -0
  83. csvpredict/client/models/summary_statistics_dict_datetime.py +81 -0
  84. csvpredict/client/models/summary_statistics_dict_datetime_additional_property_item.py +46 -0
  85. csvpredict/client/models/summary_statistics_dict_datetime_count.py +85 -0
  86. csvpredict/client/models/summary_statistics_dict_datetime_count_additional_property_item.py +46 -0
  87. csvpredict/client/models/summary_statistics_dict_duration.py +81 -0
  88. csvpredict/client/models/summary_statistics_dict_duration_additional_property_item.py +46 -0
  89. csvpredict/client/models/summary_statistics_dict_duration_count.py +85 -0
  90. csvpredict/client/models/summary_statistics_dict_duration_count_additional_property_item.py +46 -0
  91. csvpredict/client/models/summary_statistics_dict_numeric.py +81 -0
  92. csvpredict/client/models/summary_statistics_dict_numeric_additional_property_item.py +46 -0
  93. csvpredict/client/models/summary_statistics_dict_numeric_count.py +85 -0
  94. csvpredict/client/models/summary_statistics_dict_numeric_count_additional_property_item.py +46 -0
  95. csvpredict/client/models/summary_statistics_dict_numeric_rolling.py +85 -0
  96. csvpredict/client/models/summary_statistics_dict_numeric_rolling_additional_property_item.py +46 -0
  97. csvpredict/client/models/summary_statistics_dict_string.py +81 -0
  98. csvpredict/client/models/summary_statistics_dict_string_additional_property_item.py +46 -0
  99. csvpredict/client/models/summary_statistics_dict_string_count.py +85 -0
  100. csvpredict/client/models/summary_statistics_dict_string_count_additional_property_item.py +46 -0
  101. csvpredict/client/models/validation_error.py +90 -0
  102. csvpredict/client/types.py +54 -0
  103. csvpredict/helpers.py +17 -0
  104. csvpredict/html.py +1933 -0
  105. csvpredict/models.py +964 -0
  106. csvpredict/py.typed +0 -0
  107. csvpredict/sdk.py +1048 -0
  108. csvpredict/server.py +411 -0
  109. csvpredict-0.1.0.dist-info/METADATA +577 -0
  110. csvpredict-0.1.0.dist-info/RECORD +111 -0
  111. csvpredict-0.1.0.dist-info/WHEEL +4 -0
csvpredict/__init__.py ADDED
@@ -0,0 +1,35 @@
1
+ """CSVPredict SDK - Analyze and visualize CSV data."""
2
+
3
+ from .client.models.color_palette import ColorPalette
4
+ from .client.models.font_family import FontFamily
5
+ from .client.models.language import Language
6
+ from .models import (
7
+ CorrelationMatrix,
8
+ InspectBatchResult,
9
+ InspectResult,
10
+ OverallStatistics,
11
+ Statistics,
12
+ SummaryStatistics,
13
+ )
14
+ from .sdk import CSVPredict, ExcelResult, GraphResult, PowerPointResult
15
+ from .server import display, set_download_context, show, stop_server
16
+
17
+ __all__ = [
18
+ "CSVPredict",
19
+ "GraphResult",
20
+ "ExcelResult",
21
+ "PowerPointResult",
22
+ "InspectResult",
23
+ "InspectBatchResult",
24
+ "Statistics",
25
+ "OverallStatistics",
26
+ "SummaryStatistics",
27
+ "CorrelationMatrix",
28
+ "ColorPalette",
29
+ "FontFamily",
30
+ "Language",
31
+ "show",
32
+ "display",
33
+ "set_download_context",
34
+ "stop_server",
35
+ ]
@@ -0,0 +1,8 @@
1
+ """A client library for accessing FastAPI"""
2
+
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
@@ -0,0 +1 @@
1
+ """Contains methods for accessing the API"""
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,248 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.body_endpoint_generate_graphs_api_v1_graphs_post import (
9
+ BodyEndpointGenerateGraphsApiV1GraphsPost,
10
+ )
11
+ from ...models.http_validation_error import HTTPValidationError
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BodyEndpointGenerateGraphsApiV1GraphsPost,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/api/v1/graphs/",
24
+ }
25
+
26
+ _kwargs["files"] = body.to_multipart()
27
+
28
+ _kwargs["headers"] = headers
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: AuthenticatedClient | Client, response: httpx.Response
34
+ ) -> Any | HTTPValidationError | None:
35
+ if response.status_code == 200:
36
+ response_200 = response.json()
37
+ return response_200
38
+
39
+ if response.status_code == 422:
40
+ response_422 = HTTPValidationError.from_dict(response.json())
41
+
42
+ return response_422
43
+
44
+ if client.raise_on_unexpected_status:
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+ else:
47
+ return None
48
+
49
+
50
+ def _build_response(
51
+ *, client: AuthenticatedClient | Client, response: httpx.Response
52
+ ) -> Response[Any | HTTPValidationError]:
53
+ return Response(
54
+ status_code=HTTPStatus(response.status_code),
55
+ content=response.content,
56
+ headers=response.headers,
57
+ parsed=_parse_response(client=client, response=response),
58
+ )
59
+
60
+
61
+ def sync_detailed(
62
+ *,
63
+ client: AuthenticatedClient,
64
+ body: BodyEndpointGenerateGraphsApiV1GraphsPost,
65
+ ) -> Response[Any | HTTPValidationError]:
66
+ r"""Endpoint Generate Graphs
67
+
68
+ Endpoint to generate and download graphs for a single file as a ZIP.
69
+
70
+ Args:
71
+ api_key (None): The API key dependency.
72
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
73
+ file (UploadFile): The data file to generate graphs for.
74
+ ist[str] | None | None): The columns to partition the data by.
75
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
76
+ the graphs.
77
+ transparent (bool): Whether the graph background should be transparent.
78
+ window_size (int): The window size for rolling statistics.
79
+ null_values (list[str] | None): List of strings to consider as null values.
80
+ dpi (int): The resolution (dots per inch) for the generated graphs.
81
+ font (FontFamily): The font family to use in the graphs.
82
+ language (Language): The language for graph titles.
83
+ palette (ColorPalette | None): The main color palette for the graphs.
84
+ extra_palette (list[str] | None): The extra color palette for the graphs.
85
+
86
+ Returns:
87
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
88
+
89
+ Args:
90
+ body (BodyEndpointGenerateGraphsApiV1GraphsPost):
91
+
92
+ Raises:
93
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
94
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
95
+
96
+ Returns:
97
+ Response[Any | HTTPValidationError]
98
+ """
99
+
100
+ kwargs = _get_kwargs(
101
+ body=body,
102
+ )
103
+
104
+ response = client.get_httpx_client().request(
105
+ **kwargs,
106
+ )
107
+
108
+ return _build_response(client=client, response=response)
109
+
110
+
111
+ def sync(
112
+ *,
113
+ client: AuthenticatedClient,
114
+ body: BodyEndpointGenerateGraphsApiV1GraphsPost,
115
+ ) -> Any | HTTPValidationError | None:
116
+ r"""Endpoint Generate Graphs
117
+
118
+ Endpoint to generate and download graphs for a single file as a ZIP.
119
+
120
+ Args:
121
+ api_key (None): The API key dependency.
122
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
123
+ file (UploadFile): The data file to generate graphs for.
124
+ ist[str] | None | None): The columns to partition the data by.
125
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
126
+ the graphs.
127
+ transparent (bool): Whether the graph background should be transparent.
128
+ window_size (int): The window size for rolling statistics.
129
+ null_values (list[str] | None): List of strings to consider as null values.
130
+ dpi (int): The resolution (dots per inch) for the generated graphs.
131
+ font (FontFamily): The font family to use in the graphs.
132
+ language (Language): The language for graph titles.
133
+ palette (ColorPalette | None): The main color palette for the graphs.
134
+ extra_palette (list[str] | None): The extra color palette for the graphs.
135
+
136
+ Returns:
137
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
138
+
139
+ Args:
140
+ body (BodyEndpointGenerateGraphsApiV1GraphsPost):
141
+
142
+ Raises:
143
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
144
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
145
+
146
+ Returns:
147
+ Any | HTTPValidationError
148
+ """
149
+
150
+ return sync_detailed(
151
+ client=client,
152
+ body=body,
153
+ ).parsed
154
+
155
+
156
+ async def asyncio_detailed(
157
+ *,
158
+ client: AuthenticatedClient,
159
+ body: BodyEndpointGenerateGraphsApiV1GraphsPost,
160
+ ) -> Response[Any | HTTPValidationError]:
161
+ r"""Endpoint Generate Graphs
162
+
163
+ Endpoint to generate and download graphs for a single file as a ZIP.
164
+
165
+ Args:
166
+ api_key (None): The API key dependency.
167
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
168
+ file (UploadFile): The data file to generate graphs for.
169
+ ist[str] | None | None): The columns to partition the data by.
170
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
171
+ the graphs.
172
+ transparent (bool): Whether the graph background should be transparent.
173
+ window_size (int): The window size for rolling statistics.
174
+ null_values (list[str] | None): List of strings to consider as null values.
175
+ dpi (int): The resolution (dots per inch) for the generated graphs.
176
+ font (FontFamily): The font family to use in the graphs.
177
+ language (Language): The language for graph titles.
178
+ palette (ColorPalette | None): The main color palette for the graphs.
179
+ extra_palette (list[str] | None): The extra color palette for the graphs.
180
+
181
+ Returns:
182
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
183
+
184
+ Args:
185
+ body (BodyEndpointGenerateGraphsApiV1GraphsPost):
186
+
187
+ Raises:
188
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
189
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
190
+
191
+ Returns:
192
+ Response[Any | HTTPValidationError]
193
+ """
194
+
195
+ kwargs = _get_kwargs(
196
+ body=body,
197
+ )
198
+
199
+ response = await client.get_async_httpx_client().request(**kwargs)
200
+
201
+ return _build_response(client=client, response=response)
202
+
203
+
204
+ async def asyncio(
205
+ *,
206
+ client: AuthenticatedClient,
207
+ body: BodyEndpointGenerateGraphsApiV1GraphsPost,
208
+ ) -> Any | HTTPValidationError | None:
209
+ r"""Endpoint Generate Graphs
210
+
211
+ Endpoint to generate and download graphs for a single file as a ZIP.
212
+
213
+ Args:
214
+ api_key (None): The API key dependency.
215
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
216
+ file (UploadFile): The data file to generate graphs for.
217
+ ist[str] | None | None): The columns to partition the data by.
218
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
219
+ the graphs.
220
+ transparent (bool): Whether the graph background should be transparent.
221
+ window_size (int): The window size for rolling statistics.
222
+ null_values (list[str] | None): List of strings to consider as null values.
223
+ dpi (int): The resolution (dots per inch) for the generated graphs.
224
+ font (FontFamily): The font family to use in the graphs.
225
+ language (Language): The language for graph titles.
226
+ palette (ColorPalette | None): The main color palette for the graphs.
227
+ extra_palette (list[str] | None): The extra color palette for the graphs.
228
+
229
+ Returns:
230
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
231
+
232
+ Args:
233
+ body (BodyEndpointGenerateGraphsApiV1GraphsPost):
234
+
235
+ Raises:
236
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
237
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
238
+
239
+ Returns:
240
+ Any | HTTPValidationError
241
+ """
242
+
243
+ return (
244
+ await asyncio_detailed(
245
+ client=client,
246
+ body=body,
247
+ )
248
+ ).parsed
@@ -0,0 +1,236 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.body_endpoint_generate_graphs_batch_api_v1_graphs_batch_post import (
9
+ BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost,
10
+ )
11
+ from ...models.http_validation_error import HTTPValidationError
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/api/v1/graphs/batch",
24
+ }
25
+
26
+ _kwargs["files"] = body.to_multipart()
27
+
28
+ _kwargs["headers"] = headers
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: AuthenticatedClient | Client, response: httpx.Response
34
+ ) -> Any | HTTPValidationError | None:
35
+ if response.status_code == 200:
36
+ response_200 = response.json()
37
+ return response_200
38
+
39
+ if response.status_code == 422:
40
+ response_422 = HTTPValidationError.from_dict(response.json())
41
+
42
+ return response_422
43
+
44
+ if client.raise_on_unexpected_status:
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+ else:
47
+ return None
48
+
49
+
50
+ def _build_response(
51
+ *, client: AuthenticatedClient | Client, response: httpx.Response
52
+ ) -> Response[Any | HTTPValidationError]:
53
+ return Response(
54
+ status_code=HTTPStatus(response.status_code),
55
+ content=response.content,
56
+ headers=response.headers,
57
+ parsed=_parse_response(client=client, response=response),
58
+ )
59
+
60
+
61
+ def sync_detailed(
62
+ *,
63
+ client: AuthenticatedClient,
64
+ body: BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost,
65
+ ) -> Response[Any | HTTPValidationError]:
66
+ r"""Endpoint Generate Graphs Batch
67
+
68
+ Endpoint to generate and download graphs for multiple files as a ZIP.
69
+
70
+ Args:
71
+ api_key (None): The API key dependency.
72
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
73
+ files (list[UploadFile]): The data files to generate graphs for.
74
+ ist[str] | None | None): The columns to partition the data by.
75
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
76
+ the graphs.
77
+ transparent (bool): Whether the graph background should be transparent.
78
+ window_size (int): The window size for rolling statistics.
79
+ null_values (list[str] | None): List of strings to consider as null values.
80
+ font (FontFamily): The font family to use in the graphs.
81
+ language (Language): The language for graph titles.
82
+
83
+ Returns:
84
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
85
+
86
+ Args:
87
+ body (BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost):
88
+
89
+ Raises:
90
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
91
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
92
+
93
+ Returns:
94
+ Response[Any | HTTPValidationError]
95
+ """
96
+
97
+ kwargs = _get_kwargs(
98
+ body=body,
99
+ )
100
+
101
+ response = client.get_httpx_client().request(
102
+ **kwargs,
103
+ )
104
+
105
+ return _build_response(client=client, response=response)
106
+
107
+
108
+ def sync(
109
+ *,
110
+ client: AuthenticatedClient,
111
+ body: BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost,
112
+ ) -> Any | HTTPValidationError | None:
113
+ r"""Endpoint Generate Graphs Batch
114
+
115
+ Endpoint to generate and download graphs for multiple files as a ZIP.
116
+
117
+ Args:
118
+ api_key (None): The API key dependency.
119
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
120
+ files (list[UploadFile]): The data files to generate graphs for.
121
+ ist[str] | None | None): The columns to partition the data by.
122
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
123
+ the graphs.
124
+ transparent (bool): Whether the graph background should be transparent.
125
+ window_size (int): The window size for rolling statistics.
126
+ null_values (list[str] | None): List of strings to consider as null values.
127
+ font (FontFamily): The font family to use in the graphs.
128
+ language (Language): The language for graph titles.
129
+
130
+ Returns:
131
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
132
+
133
+ Args:
134
+ body (BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost):
135
+
136
+ Raises:
137
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
138
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
139
+
140
+ Returns:
141
+ Any | HTTPValidationError
142
+ """
143
+
144
+ return sync_detailed(
145
+ client=client,
146
+ body=body,
147
+ ).parsed
148
+
149
+
150
+ async def asyncio_detailed(
151
+ *,
152
+ client: AuthenticatedClient,
153
+ body: BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost,
154
+ ) -> Response[Any | HTTPValidationError]:
155
+ r"""Endpoint Generate Graphs Batch
156
+
157
+ Endpoint to generate and download graphs for multiple files as a ZIP.
158
+
159
+ Args:
160
+ api_key (None): The API key dependency.
161
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
162
+ files (list[UploadFile]): The data files to generate graphs for.
163
+ ist[str] | None | None): The columns to partition the data by.
164
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
165
+ the graphs.
166
+ transparent (bool): Whether the graph background should be transparent.
167
+ window_size (int): The window size for rolling statistics.
168
+ null_values (list[str] | None): List of strings to consider as null values.
169
+ font (FontFamily): The font family to use in the graphs.
170
+ language (Language): The language for graph titles.
171
+
172
+ Returns:
173
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
174
+
175
+ Args:
176
+ body (BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost):
177
+
178
+ Raises:
179
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
180
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
181
+
182
+ Returns:
183
+ Response[Any | HTTPValidationError]
184
+ """
185
+
186
+ kwargs = _get_kwargs(
187
+ body=body,
188
+ )
189
+
190
+ response = await client.get_async_httpx_client().request(**kwargs)
191
+
192
+ return _build_response(client=client, response=response)
193
+
194
+
195
+ async def asyncio(
196
+ *,
197
+ client: AuthenticatedClient,
198
+ body: BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost,
199
+ ) -> Any | HTTPValidationError | None:
200
+ r"""Endpoint Generate Graphs Batch
201
+
202
+ Endpoint to generate and download graphs for multiple files as a ZIP.
203
+
204
+ Args:
205
+ api_key (None): The API key dependency.
206
+ request (Request): The FastAPI request object. Needed by slowapi limiter.
207
+ files (list[UploadFile]): The data files to generate graphs for.
208
+ ist[str] | None | None): The columns to partition the data by.
209
+ extension (Literal[\".png\", \".jpg\", \".jpeg\", \".svg\"]): The file extension for
210
+ the graphs.
211
+ transparent (bool): Whether the graph background should be transparent.
212
+ window_size (int): The window size for rolling statistics.
213
+ null_values (list[str] | None): List of strings to consider as null values.
214
+ font (FontFamily): The font family to use in the graphs.
215
+ language (Language): The language for graph titles.
216
+
217
+ Returns:
218
+ StreamingResponse: A streaming response containing the ZIP file of graphs.
219
+
220
+ Args:
221
+ body (BodyEndpointGenerateGraphsBatchApiV1GraphsBatchPost):
222
+
223
+ Raises:
224
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
225
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
226
+
227
+ Returns:
228
+ Any | HTTPValidationError
229
+ """
230
+
231
+ return (
232
+ await asyncio_detailed(
233
+ client=client,
234
+ body=body,
235
+ )
236
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""