anncsu-sdk 0.0.1__tar.gz

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 (93) hide show
  1. anncsu_sdk-0.0.1/PKG-INFO +598 -0
  2. anncsu_sdk-0.0.1/README.md +586 -0
  3. anncsu_sdk-0.0.1/pyproject.toml +16 -0
  4. anncsu_sdk-0.0.1/src/anncsu/pa/__init__.py +17 -0
  5. anncsu_sdk-0.0.1/src/anncsu/pa/_hooks/__init__.py +5 -0
  6. anncsu_sdk-0.0.1/src/anncsu/pa/_hooks/registration.py +13 -0
  7. anncsu_sdk-0.0.1/src/anncsu/pa/_hooks/sdkhooks.py +76 -0
  8. anncsu_sdk-0.0.1/src/anncsu/pa/_hooks/types.py +112 -0
  9. anncsu_sdk-0.0.1/src/anncsu/pa/_version.py +15 -0
  10. anncsu_sdk-0.0.1/src/anncsu/pa/basesdk.py +350 -0
  11. anncsu_sdk-0.0.1/src/anncsu/pa/errors/__init__.py +787 -0
  12. anncsu_sdk-0.0.1/src/anncsu/pa/errors/anncsuerror.py +26 -0
  13. anncsu_sdk-0.0.1/src/anncsu/pa/errors/apierror.py +38 -0
  14. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoaccessigetpathparamop.py +117 -0
  15. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoaccessigetqueryparamop.py +117 -0
  16. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoaccessipostop.py +117 -0
  17. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoaccessiproggetpathparamop.py +117 -0
  18. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoaccessiproggetqueryparamop.py +117 -0
  19. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoaccessiprogpostop.py +117 -0
  20. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoodonimigetpathparamop.py +117 -0
  21. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoodonimigetqueryparamop.py +117 -0
  22. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoodonimipostop.py +117 -0
  23. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoodonimiproggetpathparamop.py +117 -0
  24. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoodonimiproggetqueryparamop.py +117 -0
  25. anncsu_sdk-0.0.1/src/anncsu/pa/errors/elencoodonimiprogpostop.py +117 -0
  26. anncsu_sdk-0.0.1/src/anncsu/pa/errors/esisteaccessogetpathparamop.py +95 -0
  27. anncsu_sdk-0.0.1/src/anncsu/pa/errors/esisteaccessogetqueryparamop.py +95 -0
  28. anncsu_sdk-0.0.1/src/anncsu/pa/errors/esisteaccessopostop.py +95 -0
  29. anncsu_sdk-0.0.1/src/anncsu/pa/errors/esisteodonimogetpathparamop.py +95 -0
  30. anncsu_sdk-0.0.1/src/anncsu/pa/errors/esisteodonimogetqueryparamop.py +95 -0
  31. anncsu_sdk-0.0.1/src/anncsu/pa/errors/esisteodonimopostop.py +95 -0
  32. anncsu_sdk-0.0.1/src/anncsu/pa/errors/no_response_error.py +13 -0
  33. anncsu_sdk-0.0.1/src/anncsu/pa/errors/prognazaccgetpathparamop.py +117 -0
  34. anncsu_sdk-0.0.1/src/anncsu/pa/errors/prognazaccgetqueryparamop.py +117 -0
  35. anncsu_sdk-0.0.1/src/anncsu/pa/errors/prognazaccpostop.py +117 -0
  36. anncsu_sdk-0.0.1/src/anncsu/pa/errors/prognazareagetpathparamop.py +117 -0
  37. anncsu_sdk-0.0.1/src/anncsu/pa/errors/prognazareagetqueryparamop.py +117 -0
  38. anncsu_sdk-0.0.1/src/anncsu/pa/errors/prognazareapostop.py +117 -0
  39. anncsu_sdk-0.0.1/src/anncsu/pa/errors/responsevalidationerror.py +25 -0
  40. anncsu_sdk-0.0.1/src/anncsu/pa/errors/show_statusop.py +27 -0
  41. anncsu_sdk-0.0.1/src/anncsu/pa/httpclient.py +126 -0
  42. anncsu_sdk-0.0.1/src/anncsu/pa/jsonpost.py +1884 -0
  43. anncsu_sdk-0.0.1/src/anncsu/pa/models/__init__.py +487 -0
  44. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoaccessigetpathparamop.py +65 -0
  45. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoaccessigetqueryparamop.py +65 -0
  46. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoaccessipostop.py +59 -0
  47. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoaccessiproggetpathparamop.py +74 -0
  48. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoaccessiproggetqueryparamop.py +74 -0
  49. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoaccessiprogpostop.py +72 -0
  50. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoodonimigetpathparamop.py +61 -0
  51. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoodonimigetqueryparamop.py +61 -0
  52. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoodonimipostop.py +59 -0
  53. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoodonimiproggetpathparamop.py +64 -0
  54. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoodonimiproggetqueryparamop.py +64 -0
  55. anncsu_sdk-0.0.1/src/anncsu/pa/models/elencoodonimiprogpostop.py +62 -0
  56. anncsu_sdk-0.0.1/src/anncsu/pa/models/esisteaccessogetpathparamop.py +48 -0
  57. anncsu_sdk-0.0.1/src/anncsu/pa/models/esisteaccessogetqueryparamop.py +48 -0
  58. anncsu_sdk-0.0.1/src/anncsu/pa/models/esisteaccessopostop.py +42 -0
  59. anncsu_sdk-0.0.1/src/anncsu/pa/models/esisteodonimogetpathparamop.py +41 -0
  60. anncsu_sdk-0.0.1/src/anncsu/pa/models/esisteodonimogetqueryparamop.py +41 -0
  61. anncsu_sdk-0.0.1/src/anncsu/pa/models/esisteodonimopostop.py +39 -0
  62. anncsu_sdk-0.0.1/src/anncsu/pa/models/prognazaccgetpathparamop.py +85 -0
  63. anncsu_sdk-0.0.1/src/anncsu/pa/models/prognazaccgetqueryparamop.py +85 -0
  64. anncsu_sdk-0.0.1/src/anncsu/pa/models/prognazaccpostop.py +87 -0
  65. anncsu_sdk-0.0.1/src/anncsu/pa/models/prognazareagetpathparamop.py +57 -0
  66. anncsu_sdk-0.0.1/src/anncsu/pa/models/prognazareagetqueryparamop.py +57 -0
  67. anncsu_sdk-0.0.1/src/anncsu/pa/models/prognazareapostop.py +59 -0
  68. anncsu_sdk-0.0.1/src/anncsu/pa/models/show_statusop.py +18 -0
  69. anncsu_sdk-0.0.1/src/anncsu/pa/pathparam.py +1900 -0
  70. anncsu_sdk-0.0.1/src/anncsu/pa/py.typed +1 -0
  71. anncsu_sdk-0.0.1/src/anncsu/pa/queryparam.py +1912 -0
  72. anncsu_sdk-0.0.1/src/anncsu/pa/sdk.py +165 -0
  73. anncsu_sdk-0.0.1/src/anncsu/pa/sdkconfiguration.py +47 -0
  74. anncsu_sdk-0.0.1/src/anncsu/pa/status.py +174 -0
  75. anncsu_sdk-0.0.1/src/anncsu/pa/types/__init__.py +21 -0
  76. anncsu_sdk-0.0.1/src/anncsu/pa/types/basemodel.py +39 -0
  77. anncsu_sdk-0.0.1/src/anncsu/pa/utils/__init__.py +184 -0
  78. anncsu_sdk-0.0.1/src/anncsu/pa/utils/annotations.py +55 -0
  79. anncsu_sdk-0.0.1/src/anncsu/pa/utils/datetimes.py +23 -0
  80. anncsu_sdk-0.0.1/src/anncsu/pa/utils/enums.py +74 -0
  81. anncsu_sdk-0.0.1/src/anncsu/pa/utils/eventstreaming.py +238 -0
  82. anncsu_sdk-0.0.1/src/anncsu/pa/utils/forms.py +223 -0
  83. anncsu_sdk-0.0.1/src/anncsu/pa/utils/headers.py +136 -0
  84. anncsu_sdk-0.0.1/src/anncsu/pa/utils/logger.py +27 -0
  85. anncsu_sdk-0.0.1/src/anncsu/pa/utils/metadata.py +118 -0
  86. anncsu_sdk-0.0.1/src/anncsu/pa/utils/queryparams.py +205 -0
  87. anncsu_sdk-0.0.1/src/anncsu/pa/utils/requestbodies.py +66 -0
  88. anncsu_sdk-0.0.1/src/anncsu/pa/utils/retries.py +217 -0
  89. anncsu_sdk-0.0.1/src/anncsu/pa/utils/security.py +174 -0
  90. anncsu_sdk-0.0.1/src/anncsu/pa/utils/serializers.py +249 -0
  91. anncsu_sdk-0.0.1/src/anncsu/pa/utils/unmarshal_json_response.py +24 -0
  92. anncsu_sdk-0.0.1/src/anncsu/pa/utils/url.py +155 -0
  93. anncsu_sdk-0.0.1/src/anncsu/pa/utils/values.py +137 -0
@@ -0,0 +1,598 @@
1
+ Metadata-Version: 2.3
2
+ Name: anncsu-sdk
3
+ Version: 0.0.1
4
+ Summary: ANNCSU Software Development Kit for API consumption
5
+ Author: Francesco Bartoli
6
+ Author-email: Francesco Bartoli <francesco.bartoli@geobeyond.it>
7
+ Requires-Dist: httpcore>=1.0.9
8
+ Requires-Dist: httpx>=0.28.1
9
+ Requires-Dist: pydantic>=2.11.2
10
+ Requires-Python: >=3.12
11
+ Description-Content-Type: text/markdown
12
+
13
+ # anncsu-sdk
14
+ ANNCSU Software Development Kit for API consumption
15
+
16
+ Developer-friendly & type-safe Python SDK specifically catered to leverage *anncsu* API.
17
+
18
+ <div align="left">
19
+ <a href="https://www.speakeasy.com/?utm_source=anncsu&utm_campaign=python"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
20
+ <a href="https://opensource.org/licenses/MIT">
21
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
22
+ </a>
23
+ </div>
24
+
25
+
26
+ <br /><br />
27
+ > [!IMPORTANT]
28
+ > This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/geobeyond-zd1/anncsu). Delete this section before > publishing to a package manager.
29
+
30
+ <!-- Start Summary [summary] -->
31
+ ## Summary
32
+
33
+ ANNCSU REST API: API dei servizi REST di ANNCSU su PDND
34
+ <!-- End Summary [summary] -->
35
+
36
+ <!-- Start Table of Contents [toc] -->
37
+ ## Table of Contents
38
+ <!-- $toc-max-depth=2 -->
39
+ * [anncsu](#anncsu)
40
+ * [SDK Installation](#sdk-installation)
41
+ * [IDE Support](#ide-support)
42
+ * [SDK Example Usage](#sdk-example-usage)
43
+ * [Available Resources and Operations](#available-resources-and-operations)
44
+ * [Retries](#retries)
45
+ * [Error Handling](#error-handling)
46
+ * [Server Selection](#server-selection)
47
+ * [Custom HTTP Client](#custom-http-client)
48
+ * [Resource Management](#resource-management)
49
+ * [Debugging](#debugging)
50
+ * [Development](#development)
51
+ * [Maturity](#maturity)
52
+ * [Contributions](#contributions)
53
+
54
+ <!-- End Table of Contents [toc] -->
55
+
56
+ <!-- Start SDK Installation [installation] -->
57
+ ## SDK Installation
58
+
59
+ > [!TIP]
60
+ > To finish publishing your SDK to PyPI you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
61
+
62
+
63
+ > [!NOTE]
64
+ > **Python version upgrade policy**
65
+ >
66
+ > Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.
67
+
68
+ The SDK can be installed with either *pip* or *poetry* package managers.
69
+
70
+ ### PIP
71
+
72
+ *PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
73
+
74
+ ```bash
75
+ pip install git+<UNSET>.git
76
+ ```
77
+
78
+ ### Poetry
79
+
80
+ *Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
81
+
82
+ ```bash
83
+ poetry add git+<UNSET>.git
84
+ ```
85
+
86
+ ### Shell and script usage with `uv`
87
+
88
+ You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so:
89
+
90
+ ```shell
91
+ uvx --from anncsu python
92
+ ```
93
+
94
+ It's also possible to write a standalone Python script without needing to set up a whole project like so:
95
+
96
+ ```python
97
+ #!/usr/bin/env -S uv run --script
98
+ # /// script
99
+ # requires-python = ">=3.9"
100
+ # dependencies = [
101
+ # "anncsu",
102
+ # ]
103
+ # ///
104
+
105
+ from anncsu import Anncsu
106
+
107
+ sdk = Anncsu(
108
+ # SDK arguments
109
+ )
110
+
111
+ # Rest of script here...
112
+ ```
113
+
114
+ Once that is saved to a file, you can run it with `uv run script.py` where
115
+ `script.py` can be replaced with the actual file name.
116
+ <!-- End SDK Installation [installation] -->
117
+
118
+ <!-- Start IDE Support [idesupport] -->
119
+ ## IDE Support
120
+
121
+ ### PyCharm
122
+
123
+ Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin.
124
+
125
+ - [PyCharm Pydantic Plugin](https://docs.pydantic.dev/latest/integrations/pycharm/)
126
+ <!-- End IDE Support [idesupport] -->
127
+
128
+ <!-- Start SDK Example Usage [usage] -->
129
+ ## SDK Example Usage
130
+
131
+ ### Example
132
+
133
+ ```python
134
+ # Synchronous Example
135
+ from anncsu import Anncsu
136
+
137
+
138
+ with Anncsu() as a_client:
139
+
140
+ res = a_client.queryparam.esiste_odonimo_get_query_param(codcom="H501", denom="VklBIFJPTUE=")
141
+
142
+ # Handle response
143
+ print(res)
144
+ ```
145
+
146
+ </br>
147
+
148
+ The same SDK client can also be used to make asychronous requests by importing asyncio.
149
+ ```python
150
+ # Asynchronous Example
151
+ from anncsu import Anncsu
152
+ import asyncio
153
+
154
+ async def main():
155
+
156
+ async with Anncsu() as a_client:
157
+
158
+ res = await a_client.queryparam.esiste_odonimo_get_query_param_async(codcom="H501", denom="VklBIFJPTUE=")
159
+
160
+ # Handle response
161
+ print(res)
162
+
163
+ asyncio.run(main())
164
+ ```
165
+ <!-- End SDK Example Usage [usage] -->
166
+
167
+ <!-- Start Available Resources and Operations [operations] -->
168
+ ## Available Resources and Operations
169
+
170
+ <details open>
171
+ <summary>Available methods</summary>
172
+
173
+
174
+ ### [json_post](docs/sdks/jsonpost/README.md)
175
+
176
+ * [esiste_odonimo_post](docs/sdks/jsonpost/README.md#esiste_odonimo_post) - Ritorna un valore boolean dell'esistenza dell'odonimo in ANNCSU
177
+ * [esiste_accesso_post](docs/sdks/jsonpost/README.md#esiste_accesso_post) - Ritorna un valore boolean dell'esistenza dell'accesso in ANNCSU
178
+ * [elenco_odonimi_post](docs/sdks/jsonpost/README.md#elenco_odonimi_post) - Ritorna un elenco di odonimi presenti in ANNCSU
179
+ * [elenco_accessi_post](docs/sdks/jsonpost/README.md#elenco_accessi_post) - Ritorna un elenco di accessi presenti in ANNCSU
180
+ * [elencoodonimiprog_post](docs/sdks/jsonpost/README.md#elencoodonimiprog_post) - Ritorna un elenco di odonimi presenti in ANNCSU incluso il progressivo nazionale
181
+ * [elencoaccessiprog_post](docs/sdks/jsonpost/README.md#elencoaccessiprog_post) - Ritorna un elenco di accessi presenti in ANNCSU incluso il progressivo nazionale
182
+ * [prognazarea_post](docs/sdks/jsonpost/README.md#prognazarea_post) - Cerca in ANNCSU un odonimo per progressivo nazionale e ne ritorna i dati
183
+ * [prognazacc_post](docs/sdks/jsonpost/README.md#prognazacc_post) - Cerca in ANNCSU un accesso per progressivo nazionale accesso e ne ritorna i dati comprensivi dell'odonimo
184
+
185
+ ### [pathparam](docs/sdks/pathparam/README.md)
186
+
187
+ * [esiste_odonimo_get_path_param](docs/sdks/pathparam/README.md#esiste_odonimo_get_path_param) - Ritorna un valore boolean dell'esistenza dell'odonimo in ANNCSU
188
+ * [esiste_accesso_get_path_param](docs/sdks/pathparam/README.md#esiste_accesso_get_path_param) - Ritorna un valore boolean dell'esistenza dell'accesso in ANNCSU
189
+ * [elenco_odonimi_get_path_param](docs/sdks/pathparam/README.md#elenco_odonimi_get_path_param) - Ritorna un elenco di odonimi presenti in ANNCSU
190
+ * [elenco_accessi_get_path_param](docs/sdks/pathparam/README.md#elenco_accessi_get_path_param) - Ritorna un elenco di accessi presenti in ANNCSU
191
+ * [elencoodonimiprog_get_path_param](docs/sdks/pathparam/README.md#elencoodonimiprog_get_path_param) - Ritorna un elenco di odonimi presenti in ANNCSU incluso il progressivo nazionale
192
+ * [elencoaccessiprog_get_path_param](docs/sdks/pathparam/README.md#elencoaccessiprog_get_path_param) - Ritorna un elenco di accessi presenti in ANNCSU incluso il progressivo nazionale
193
+ * [prognazarea_get_path_param](docs/sdks/pathparam/README.md#prognazarea_get_path_param) - Cerca in ANNCSU un odonimo per progressivo nazionale e ne ritorna i dati
194
+ * [prognazacc_get_path_param](docs/sdks/pathparam/README.md#prognazacc_get_path_param) - Cerca in ANNCSU un accesso per progressivo nazionale accesso e ne ritorna i dati comprensivi dell'odonimo
195
+
196
+ ### [queryparam](docs/sdks/queryparam/README.md)
197
+
198
+ * [esiste_odonimo_get_query_param](docs/sdks/queryparam/README.md#esiste_odonimo_get_query_param) - Ritorna un valore boolean dell'esistenza dell'odonimo in ANNCSU
199
+ * [esiste_accesso_get_query_param](docs/sdks/queryparam/README.md#esiste_accesso_get_query_param) - Ritorna un valore boolean dell'esistenza dell'accesso in ANNCSU
200
+ * [elenco_odonimi_get_query_param](docs/sdks/queryparam/README.md#elenco_odonimi_get_query_param) - Ritorna un elenco di odonimi presenti in ANNCSU
201
+ * [elenco_accessi_get_query_param](docs/sdks/queryparam/README.md#elenco_accessi_get_query_param) - Ritorna un elenco di accessi presenti in ANNCSU
202
+ * [elencoodonimiprog_get_query_param](docs/sdks/queryparam/README.md#elencoodonimiprog_get_query_param) - Ritorna un elenco di odonimi presenti in ANNCSU incluso il progressivo nazionale
203
+ * [elencoaccessiprog_get_query_param](docs/sdks/queryparam/README.md#elencoaccessiprog_get_query_param) - Ritorna un elenco di accessi presenti in ANNCSU incluso il progressivo nazionale
204
+ * [prognazarea_get_query_param](docs/sdks/queryparam/README.md#prognazarea_get_query_param) - Cerca in ANNCSU un odonimo per progressivo nazionale e ne ritorna i dati
205
+ * [prognazacc_get_query_param](docs/sdks/queryparam/README.md#prognazacc_get_query_param) - Cerca in ANNCSU un accesso per progressivo nazionale accesso e ne ritorna i dati comprensivi dell'odonimo
206
+
207
+ ### [status](docs/sdks/status/README.md)
208
+
209
+ * [show_status](docs/sdks/status/README.md#show_status) - Ritorna lo stato dell'applicazione.
210
+
211
+ </details>
212
+ <!-- End Available Resources and Operations [operations] -->
213
+
214
+ <!-- Start Retries [retries] -->
215
+ ## Retries
216
+
217
+ Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
218
+
219
+ To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
220
+ ```python
221
+ from anncsu import Anncsu
222
+ from anncsu.utils import BackoffStrategy, RetryConfig
223
+
224
+
225
+ with Anncsu() as a_client:
226
+
227
+ res = a_client.queryparam.esiste_odonimo_get_query_param(codcom="H501", denom="VklBIFJPTUE=",
228
+ RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
229
+
230
+ # Handle response
231
+ print(res)
232
+
233
+ ```
234
+
235
+ If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
236
+ ```python
237
+ from anncsu import Anncsu
238
+ from anncsu.utils import BackoffStrategy, RetryConfig
239
+
240
+
241
+ with Anncsu(
242
+ retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
243
+ ) as a_client:
244
+
245
+ res = a_client.queryparam.esiste_odonimo_get_query_param(codcom="H501", denom="VklBIFJPTUE=")
246
+
247
+ # Handle response
248
+ print(res)
249
+
250
+ ```
251
+ <!-- End Retries [retries] -->
252
+
253
+ <!-- Start Error Handling [errors] -->
254
+ ## Error Handling
255
+
256
+ [`AnncsuError`](./src/anncsu/errors/anncsuerror.py) is the base class for all HTTP error responses. It has the following properties:
257
+
258
+ | Property | Type | Description |
259
+ | ------------------ | ---------------- | --------------------------------------------------------------------------------------- |
260
+ | `err.message` | `str` | Error message |
261
+ | `err.status_code` | `int` | HTTP response status code eg `404` |
262
+ | `err.headers` | `httpx.Headers` | HTTP response headers |
263
+ | `err.body` | `str` | HTTP body. Can be empty string if no body is returned. |
264
+ | `err.raw_response` | `httpx.Response` | Raw HTTP response |
265
+ | `err.data` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
266
+
267
+ ### Example
268
+ ```python
269
+ from anncsu import Anncsu, errors
270
+
271
+
272
+ with Anncsu() as a_client:
273
+ res = None
274
+ try:
275
+
276
+ res = a_client.queryparam.esiste_odonimo_get_query_param(codcom="H501", denom="VklBIFJPTUE=")
277
+
278
+ # Handle response
279
+ print(res)
280
+
281
+
282
+ except errors.AnncsuError as e:
283
+ # The base class for HTTP error responses
284
+ print(e.message)
285
+ print(e.status_code)
286
+ print(e.body)
287
+ print(e.headers)
288
+ print(e.raw_response)
289
+
290
+ # Depending on the method different errors may be thrown
291
+ if isinstance(e, errors.EsisteOdonimoGetQueryParamBadRequestError):
292
+ print(e.data.title) # Optional[str]
293
+ print(e.data.detail) # Optional[str]
294
+ ```
295
+
296
+ ### Error Classes
297
+ **Primary error:**
298
+ * [`AnncsuError`](./src/anncsu/errors/anncsuerror.py): The base class for HTTP error responses.
299
+
300
+ <details><summary>Less common errors (120)</summary>
301
+
302
+ <br />
303
+
304
+ **Network errors:**
305
+ * [`httpx.RequestError`](https://www.python-httpx.org/exceptions/#httpx.RequestError): Base class for request errors.
306
+ * [`httpx.ConnectError`](https://www.python-httpx.org/exceptions/#httpx.ConnectError): HTTP client was unable to make a request to a server.
307
+ * [`httpx.TimeoutException`](https://www.python-httpx.org/exceptions/#httpx.TimeoutException): HTTP request timed out.
308
+
309
+
310
+ **Inherit from [`AnncsuError`](./src/anncsu/errors/anncsuerror.py)**:
311
+ * [`EsisteOdonimoGetQueryParamBadRequestError`](./src/anncsu/errors/esisteodonimogetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
312
+ * [`EsisteAccessoGetQueryParamBadRequestError`](./src/anncsu/errors/esisteaccessogetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
313
+ * [`ElencoOdonimiGetQueryParamBadRequestError`](./src/anncsu/errors/elencoodonimigetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
314
+ * [`ElencoAccessiGetQueryParamBadRequestError`](./src/anncsu/errors/elencoaccessigetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
315
+ * [`ElencoodonimiprogGetQueryParamBadRequestError`](./src/anncsu/errors/elencoodonimiproggetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
316
+ * [`ElencoaccessiprogGetQueryParamBadRequestError`](./src/anncsu/errors/elencoaccessiproggetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
317
+ * [`PrognazareaGetQueryParamBadRequestError`](./src/anncsu/errors/prognazareagetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
318
+ * [`PrognazaccGetQueryParamBadRequestError`](./src/anncsu/errors/prognazaccgetqueryparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
319
+ * [`EsisteOdonimoPostBadRequestError`](./src/anncsu/errors/esisteodonimopostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
320
+ * [`EsisteAccessoPostBadRequestError`](./src/anncsu/errors/esisteaccessopostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
321
+ * [`ElencoOdonimiPostBadRequestError`](./src/anncsu/errors/elencoodonimipostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
322
+ * [`ElencoAccessiPostBadRequestError`](./src/anncsu/errors/elencoaccessipostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
323
+ * [`ElencoodonimiprogPostBadRequestError`](./src/anncsu/errors/elencoodonimiprogpostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
324
+ * [`ElencoaccessiprogPostBadRequestError`](./src/anncsu/errors/elencoaccessiprogpostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
325
+ * [`PrognazareaPostBadRequestError`](./src/anncsu/errors/prognazareapostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
326
+ * [`PrognazaccPostBadRequestError`](./src/anncsu/errors/prognazaccpostbadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
327
+ * [`EsisteOdonimoGetPathParamBadRequestError`](./src/anncsu/errors/esisteodonimogetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
328
+ * [`EsisteAccessoGetPathParamBadRequestError`](./src/anncsu/errors/esisteaccessogetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
329
+ * [`ElencoOdonimiGetPathParamBadRequestError`](./src/anncsu/errors/elencoodonimigetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
330
+ * [`ElencoAccessiGetPathParamBadRequestError`](./src/anncsu/errors/elencoaccessigetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
331
+ * [`ElencoodonimiprogGetPathParamBadRequestError`](./src/anncsu/errors/elencoodonimiproggetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
332
+ * [`ElencoaccessiprogGetPathParamBadRequestError`](./src/anncsu/errors/elencoaccessiproggetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
333
+ * [`PrognazareaGetPathParamBadRequestError`](./src/anncsu/errors/prognazareagetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
334
+ * [`PrognazaccGetPathParamBadRequestError`](./src/anncsu/errors/prognazaccgetpathparambadrequesterror.py): Bad Request. Status code `400`. Applicable to 1 of 25 methods.*
335
+ * [`ElencoOdonimiGetQueryParamNotFoundError`](./src/anncsu/errors/elencoodonimigetqueryparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
336
+ * [`ElencoAccessiGetQueryParamNotFoundError`](./src/anncsu/errors/elencoaccessigetqueryparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
337
+ * [`ElencoodonimiprogGetQueryParamNotFoundError`](./src/anncsu/errors/elencoodonimiproggetqueryparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
338
+ * [`ElencoaccessiprogGetQueryParamNotFoundError`](./src/anncsu/errors/elencoaccessiproggetqueryparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
339
+ * [`PrognazareaGetQueryParamNotFoundError`](./src/anncsu/errors/prognazareagetqueryparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
340
+ * [`PrognazaccGetQueryParamNotFoundError`](./src/anncsu/errors/prognazaccgetqueryparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
341
+ * [`ElencoOdonimiPostNotFoundError`](./src/anncsu/errors/elencoodonimipostnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
342
+ * [`ElencoAccessiPostNotFoundError`](./src/anncsu/errors/elencoaccessipostnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
343
+ * [`ElencoodonimiprogPostNotFoundError`](./src/anncsu/errors/elencoodonimiprogpostnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
344
+ * [`ElencoaccessiprogPostNotFoundError`](./src/anncsu/errors/elencoaccessiprogpostnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
345
+ * [`PrognazareaPostNotFoundError`](./src/anncsu/errors/prognazareapostnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
346
+ * [`PrognazaccPostNotFoundError`](./src/anncsu/errors/prognazaccpostnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
347
+ * [`ElencoOdonimiGetPathParamNotFoundError`](./src/anncsu/errors/elencoodonimigetpathparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
348
+ * [`ElencoAccessiGetPathParamNotFoundError`](./src/anncsu/errors/elencoaccessigetpathparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
349
+ * [`ElencoodonimiprogGetPathParamNotFoundError`](./src/anncsu/errors/elencoodonimiproggetpathparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
350
+ * [`ElencoaccessiprogGetPathParamNotFoundError`](./src/anncsu/errors/elencoaccessiproggetpathparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
351
+ * [`PrognazareaGetPathParamNotFoundError`](./src/anncsu/errors/prognazareagetpathparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
352
+ * [`PrognazaccGetPathParamNotFoundError`](./src/anncsu/errors/prognazaccgetpathparamnotfounderror.py): Not found. Status code `404`. Applicable to 1 of 25 methods.*
353
+ * [`EsisteOdonimoGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/esisteodonimogetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
354
+ * [`EsisteAccessoGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/esisteaccessogetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
355
+ * [`ElencoOdonimiGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/elencoodonimigetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
356
+ * [`ElencoAccessiGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/elencoaccessigetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
357
+ * [`ElencoodonimiprogGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/elencoodonimiproggetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
358
+ * [`ElencoaccessiprogGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/elencoaccessiproggetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
359
+ * [`PrognazareaGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/prognazareagetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
360
+ * [`PrognazaccGetQueryParamMethodNotAllowedError`](./src/anncsu/errors/prognazaccgetqueryparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
361
+ * [`EsisteOdonimoPostMethodNotAllowedError`](./src/anncsu/errors/esisteodonimopostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
362
+ * [`EsisteAccessoPostMethodNotAllowedError`](./src/anncsu/errors/esisteaccessopostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
363
+ * [`ElencoOdonimiPostMethodNotAllowedError`](./src/anncsu/errors/elencoodonimipostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
364
+ * [`ElencoAccessiPostMethodNotAllowedError`](./src/anncsu/errors/elencoaccessipostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
365
+ * [`ElencoodonimiprogPostMethodNotAllowedError`](./src/anncsu/errors/elencoodonimiprogpostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
366
+ * [`ElencoaccessiprogPostMethodNotAllowedError`](./src/anncsu/errors/elencoaccessiprogpostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
367
+ * [`PrognazareaPostMethodNotAllowedError`](./src/anncsu/errors/prognazareapostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
368
+ * [`PrognazaccPostMethodNotAllowedError`](./src/anncsu/errors/prognazaccpostmethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
369
+ * [`EsisteOdonimoGetPathParamMethodNotAllowedError`](./src/anncsu/errors/esisteodonimogetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
370
+ * [`EsisteAccessoGetPathParamMethodNotAllowedError`](./src/anncsu/errors/esisteaccessogetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
371
+ * [`ElencoOdonimiGetPathParamMethodNotAllowedError`](./src/anncsu/errors/elencoodonimigetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
372
+ * [`ElencoAccessiGetPathParamMethodNotAllowedError`](./src/anncsu/errors/elencoaccessigetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
373
+ * [`ElencoodonimiprogGetPathParamMethodNotAllowedError`](./src/anncsu/errors/elencoodonimiproggetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
374
+ * [`ElencoaccessiprogGetPathParamMethodNotAllowedError`](./src/anncsu/errors/elencoaccessiproggetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
375
+ * [`PrognazareaGetPathParamMethodNotAllowedError`](./src/anncsu/errors/prognazareagetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
376
+ * [`PrognazaccGetPathParamMethodNotAllowedError`](./src/anncsu/errors/prognazaccgetpathparammethodnotallowederror.py): Method Not Allowed. Status code `405`. Applicable to 1 of 25 methods.*
377
+ * [`EsisteOdonimoGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/esisteodonimogetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
378
+ * [`EsisteAccessoGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/esisteaccessogetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
379
+ * [`ElencoOdonimiGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/elencoodonimigetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
380
+ * [`ElencoAccessiGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/elencoaccessigetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
381
+ * [`ElencoodonimiprogGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/elencoodonimiproggetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
382
+ * [`ElencoaccessiprogGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/elencoaccessiproggetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
383
+ * [`PrognazareaGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/prognazareagetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
384
+ * [`PrognazaccGetQueryParamUnprocessableEntityError`](./src/anncsu/errors/prognazaccgetqueryparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
385
+ * [`EsisteOdonimoPostUnprocessableEntityError`](./src/anncsu/errors/esisteodonimopostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
386
+ * [`EsisteAccessoPostUnprocessableEntityError`](./src/anncsu/errors/esisteaccessopostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
387
+ * [`ElencoOdonimiPostUnprocessableEntityError`](./src/anncsu/errors/elencoodonimipostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
388
+ * [`ElencoAccessiPostUnprocessableEntityError`](./src/anncsu/errors/elencoaccessipostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
389
+ * [`ElencoodonimiprogPostUnprocessableEntityError`](./src/anncsu/errors/elencoodonimiprogpostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
390
+ * [`ElencoaccessiprogPostUnprocessableEntityError`](./src/anncsu/errors/elencoaccessiprogpostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
391
+ * [`PrognazareaPostUnprocessableEntityError`](./src/anncsu/errors/prognazareapostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
392
+ * [`PrognazaccPostUnprocessableEntityError`](./src/anncsu/errors/prognazaccpostunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
393
+ * [`EsisteOdonimoGetPathParamUnprocessableEntityError`](./src/anncsu/errors/esisteodonimogetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
394
+ * [`EsisteAccessoGetPathParamUnprocessableEntityError`](./src/anncsu/errors/esisteaccessogetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
395
+ * [`ElencoOdonimiGetPathParamUnprocessableEntityError`](./src/anncsu/errors/elencoodonimigetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
396
+ * [`ElencoAccessiGetPathParamUnprocessableEntityError`](./src/anncsu/errors/elencoaccessigetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
397
+ * [`ElencoodonimiprogGetPathParamUnprocessableEntityError`](./src/anncsu/errors/elencoodonimiproggetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
398
+ * [`ElencoaccessiprogGetPathParamUnprocessableEntityError`](./src/anncsu/errors/elencoaccessiproggetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
399
+ * [`PrognazareaGetPathParamUnprocessableEntityError`](./src/anncsu/errors/prognazareagetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
400
+ * [`PrognazaccGetPathParamUnprocessableEntityError`](./src/anncsu/errors/prognazaccgetpathparamunprocessableentityerror.py): Unprocessable Entity - error in json. Status code `422`. Applicable to 1 of 25 methods.*
401
+ * [`EsisteOdonimoGetQueryParamInternalServerError`](./src/anncsu/errors/esisteodonimogetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
402
+ * [`EsisteAccessoGetQueryParamInternalServerError`](./src/anncsu/errors/esisteaccessogetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
403
+ * [`ElencoOdonimiGetQueryParamInternalServerError`](./src/anncsu/errors/elencoodonimigetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
404
+ * [`ElencoAccessiGetQueryParamInternalServerError`](./src/anncsu/errors/elencoaccessigetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
405
+ * [`ElencoodonimiprogGetQueryParamInternalServerError`](./src/anncsu/errors/elencoodonimiproggetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
406
+ * [`ElencoaccessiprogGetQueryParamInternalServerError`](./src/anncsu/errors/elencoaccessiproggetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
407
+ * [`PrognazareaGetQueryParamInternalServerError`](./src/anncsu/errors/prognazareagetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
408
+ * [`PrognazaccGetQueryParamInternalServerError`](./src/anncsu/errors/prognazaccgetqueryparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
409
+ * [`EsisteOdonimoPostInternalServerError`](./src/anncsu/errors/esisteodonimopostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
410
+ * [`EsisteAccessoPostInternalServerError`](./src/anncsu/errors/esisteaccessopostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
411
+ * [`ElencoOdonimiPostInternalServerError`](./src/anncsu/errors/elencoodonimipostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
412
+ * [`ElencoAccessiPostInternalServerError`](./src/anncsu/errors/elencoaccessipostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
413
+ * [`ElencoodonimiprogPostInternalServerError`](./src/anncsu/errors/elencoodonimiprogpostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
414
+ * [`ElencoaccessiprogPostInternalServerError`](./src/anncsu/errors/elencoaccessiprogpostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
415
+ * [`PrognazareaPostInternalServerError`](./src/anncsu/errors/prognazareapostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
416
+ * [`PrognazaccPostInternalServerError`](./src/anncsu/errors/prognazaccpostinternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
417
+ * [`EsisteOdonimoGetPathParamInternalServerError`](./src/anncsu/errors/esisteodonimogetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
418
+ * [`EsisteAccessoGetPathParamInternalServerError`](./src/anncsu/errors/esisteaccessogetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
419
+ * [`ElencoOdonimiGetPathParamInternalServerError`](./src/anncsu/errors/elencoodonimigetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
420
+ * [`ElencoAccessiGetPathParamInternalServerError`](./src/anncsu/errors/elencoaccessigetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
421
+ * [`ElencoodonimiprogGetPathParamInternalServerError`](./src/anncsu/errors/elencoodonimiproggetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
422
+ * [`ElencoaccessiprogGetPathParamInternalServerError`](./src/anncsu/errors/elencoaccessiproggetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
423
+ * [`PrognazareaGetPathParamInternalServerError`](./src/anncsu/errors/prognazareagetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
424
+ * [`PrognazaccGetPathParamInternalServerError`](./src/anncsu/errors/prognazaccgetpathparaminternalservererror.py): Internal Server Error. Status code `500`. Applicable to 1 of 25 methods.*
425
+ * [`ServiceUnavailableError`](./src/anncsu/errors/serviceunavailableerror.py): Il server non è disponibile. Status code `503`. Applicable to 1 of 25 methods.*
426
+ * [`ResponseValidationError`](./src/anncsu/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
427
+
428
+ </details>
429
+
430
+ \* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
431
+ <!-- End Error Handling [errors] -->
432
+
433
+ <!-- Start Server Selection [server] -->
434
+ ## Server Selection
435
+
436
+ ### Override Server URL Per-Client
437
+
438
+ The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
439
+ ```python
440
+ from anncsu import Anncsu
441
+
442
+
443
+ with Anncsu(
444
+ server_url="https://modipa.agenziaentrate.gov.it/govway/rest/in/AgenziaEntrate-PDND/anncsu-consultazione/v1",
445
+ ) as a_client:
446
+
447
+ res = a_client.queryparam.esiste_odonimo_get_query_param(codcom="H501", denom="VklBIFJPTUE=")
448
+
449
+ # Handle response
450
+ print(res)
451
+
452
+ ```
453
+ <!-- End Server Selection [server] -->
454
+
455
+ <!-- Start Custom HTTP Client [http-client] -->
456
+ ## Custom HTTP Client
457
+
458
+ The Python SDK makes API calls using the [httpx](https://www.python-httpx.org/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with your own HTTP client instance.
459
+ Depending on whether you are using the sync or async version of the SDK, you can pass an instance of `HttpClient` or `AsyncHttpClient` respectively, which are Protocol's ensuring that the client has the necessary methods to make API calls.
460
+ This allows you to wrap the client with your own custom logic, such as adding custom headers, logging, or error handling, or you can just pass an instance of `httpx.Client` or `httpx.AsyncClient` directly.
461
+
462
+ For example, you could specify a header for every request that this sdk makes as follows:
463
+ ```python
464
+ from anncsu import Anncsu
465
+ import httpx
466
+
467
+ http_client = httpx.Client(headers={"x-custom-header": "someValue"})
468
+ s = Anncsu(client=http_client)
469
+ ```
470
+
471
+ or you could wrap the client with your own custom logic:
472
+ ```python
473
+ from anncsu import Anncsu
474
+ from anncsu.httpclient import AsyncHttpClient
475
+ import httpx
476
+
477
+ class CustomClient(AsyncHttpClient):
478
+ client: AsyncHttpClient
479
+
480
+ def __init__(self, client: AsyncHttpClient):
481
+ self.client = client
482
+
483
+ async def send(
484
+ self,
485
+ request: httpx.Request,
486
+ *,
487
+ stream: bool = False,
488
+ auth: Union[
489
+ httpx._types.AuthTypes, httpx._client.UseClientDefault, None
490
+ ] = httpx.USE_CLIENT_DEFAULT,
491
+ follow_redirects: Union[
492
+ bool, httpx._client.UseClientDefault
493
+ ] = httpx.USE_CLIENT_DEFAULT,
494
+ ) -> httpx.Response:
495
+ request.headers["Client-Level-Header"] = "added by client"
496
+
497
+ return await self.client.send(
498
+ request, stream=stream, auth=auth, follow_redirects=follow_redirects
499
+ )
500
+
501
+ def build_request(
502
+ self,
503
+ method: str,
504
+ url: httpx._types.URLTypes,
505
+ *,
506
+ content: Optional[httpx._types.RequestContent] = None,
507
+ data: Optional[httpx._types.RequestData] = None,
508
+ files: Optional[httpx._types.RequestFiles] = None,
509
+ json: Optional[Any] = None,
510
+ params: Optional[httpx._types.QueryParamTypes] = None,
511
+ headers: Optional[httpx._types.HeaderTypes] = None,
512
+ cookies: Optional[httpx._types.CookieTypes] = None,
513
+ timeout: Union[
514
+ httpx._types.TimeoutTypes, httpx._client.UseClientDefault
515
+ ] = httpx.USE_CLIENT_DEFAULT,
516
+ extensions: Optional[httpx._types.RequestExtensions] = None,
517
+ ) -> httpx.Request:
518
+ return self.client.build_request(
519
+ method,
520
+ url,
521
+ content=content,
522
+ data=data,
523
+ files=files,
524
+ json=json,
525
+ params=params,
526
+ headers=headers,
527
+ cookies=cookies,
528
+ timeout=timeout,
529
+ extensions=extensions,
530
+ )
531
+
532
+ s = Anncsu(async_client=CustomClient(httpx.AsyncClient()))
533
+ ```
534
+ <!-- End Custom HTTP Client [http-client] -->
535
+
536
+ <!-- Start Resource Management [resource-management] -->
537
+ ## Resource Management
538
+
539
+ The `Anncsu` class implements the context manager protocol and registers a finalizer function to close the underlying sync and async HTTPX clients it uses under the hood. This will close HTTP connections, release memory and free up other resources held by the SDK. In short-lived Python programs and notebooks that make a few SDK method calls, resource management may not be a concern. However, in longer-lived programs, it is beneficial to create a single SDK instance via a [context manager][context-manager] and reuse it across the application.
540
+
541
+ [context-manager]: https://docs.python.org/3/reference/datamodel.html#context-managers
542
+
543
+ ```python
544
+ from anncsu import Anncsu
545
+ def main():
546
+
547
+ with Anncsu() as a_client:
548
+ # Rest of application here...
549
+
550
+
551
+ # Or when using async:
552
+ async def amain():
553
+
554
+ async with Anncsu() as a_client:
555
+ # Rest of application here...
556
+ ```
557
+ <!-- End Resource Management [resource-management] -->
558
+
559
+ <!-- Start Debugging [debug] -->
560
+ ## Debugging
561
+
562
+ You can setup your SDK to emit debug logs for SDK requests and responses.
563
+
564
+ You can pass your own logger class directly into your SDK.
565
+ ```python
566
+ from anncsu import Anncsu
567
+ import logging
568
+
569
+ logging.basicConfig(level=logging.DEBUG)
570
+ s = Anncsu(debug_logger=logging.getLogger("anncsu"))
571
+ ```
572
+
573
+ You can also enable a default debug logger by setting an environment variable `ANNCSU_DEBUG` to true.
574
+ <!-- End Debugging [debug] -->
575
+
576
+ <!-- Placeholder for Future Speakeasy SDK Sections -->
577
+
578
+ # Development
579
+
580
+ ## Maturity
581
+
582
+ This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
583
+ to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
584
+ looking for the latest version.
585
+
586
+ ## Contributions
587
+
588
+ While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
589
+ We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
590
+
591
+ ### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=anncsu&utm_campaign=python)
592
+
593
+
594
+ ## Validate the specifications
595
+
596
+ ```shell
597
+ spectral lint oas/Specifica\ API\ -\ ANNCSU\ –\ Consultazione\ per\ le\ PA.yaml --ruleset oas/.spectral.yaml
598
+ ```