cliV1 0.1.4__tar.gz → 0.1.6__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.

Potentially problematic release.


This version of cliV1 might be problematic. Click here for more details.

Files changed (136) hide show
  1. {cliv1-0.1.4 → cliv1-0.1.6}/LICENSE +6 -13
  2. cliv1-0.1.6/PKG-INFO +162 -0
  3. cliv1-0.1.6/README.md +133 -0
  4. cliv1-0.1.6/pyproject.toml +95 -0
  5. cliv1-0.1.6/swagger_petstore_open_api_3_0/__init__.py +15 -0
  6. cliv1-0.1.6/swagger_petstore_open_api_3_0/apis/__init__.py +5 -0
  7. cliv1-0.1.6/swagger_petstore_open_api_3_0/apis/pet_api.py +881 -0
  8. cliv1-0.1.6/swagger_petstore_open_api_3_0/apis/store.py +411 -0
  9. cliv1-0.1.6/swagger_petstore_open_api_3_0/apis/user_api.py +792 -0
  10. cliv1-0.1.6/swagger_petstore_open_api_3_0/async_client.py +79 -0
  11. cliv1-0.1.6/swagger_petstore_open_api_3_0/auth.py +17 -0
  12. cliv1-0.1.6/swagger_petstore_open_api_3_0/base_client.py +18 -0
  13. cliv1-0.1.6/swagger_petstore_open_api_3_0/client.py +77 -0
  14. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/__init__.py +345 -0
  15. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/_internal/__init__.py +7 -0
  16. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/_internal/content_disposition.py +154 -0
  17. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/_internal/flattening.py +139 -0
  18. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/_internal/headers.py +144 -0
  19. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/_internal/urls.py +166 -0
  20. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/_internal/wire.py +173 -0
  21. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/adapters.py +177 -0
  22. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/__init__.py +70 -0
  23. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/composition.py +175 -0
  24. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/models.py +217 -0
  25. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/protocols.py +103 -0
  26. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/__init__.py +94 -0
  27. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/api_key_auth.py +53 -0
  28. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/basic_auth.py +73 -0
  29. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/bearer_auth.py +21 -0
  30. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_authorization_code.py +393 -0
  31. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_client_credentials.py +127 -0
  32. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_password.py +142 -0
  33. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_schemes.py +300 -0
  34. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/base_raw_response.py +49 -0
  35. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/bodies.py +563 -0
  36. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/converters/__init__.py +68 -0
  37. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/converters/date_time.py +237 -0
  38. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/converters/encoded_bytes.py +273 -0
  39. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/converters/open_enum.py +35 -0
  40. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/decoding.py +263 -0
  41. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/discriminators.py +128 -0
  42. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/exceptions.py +41 -0
  43. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/file_responses.py +324 -0
  44. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/files.py +173 -0
  45. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/httpx_transport.py +766 -0
  46. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/models.py +143 -0
  47. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/optionality.py +130 -0
  48. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/params.py +161 -0
  49. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/raw_client.py +388 -0
  50. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/request_options.py +94 -0
  51. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/results.py +110 -0
  52. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/runtime_env.py +43 -0
  53. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/servers.py +33 -0
  54. cliv1-0.1.6/swagger_petstore_open_api_3_0/core/transport.py +248 -0
  55. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/__init__.py +48 -0
  56. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/add_pet_error.py +21 -0
  57. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/delete_order_error.py +21 -0
  58. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/delete_pet_error.py +21 -0
  59. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/delete_user_error.py +21 -0
  60. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/find_pets_by_status_error.py +21 -0
  61. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/find_pets_by_tags_error.py +21 -0
  62. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/get_order_by_id_error.py +21 -0
  63. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/get_pet_by_id_error.py +21 -0
  64. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/get_user_by_name_error.py +21 -0
  65. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/login_user_error.py +21 -0
  66. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/place_order_error.py +21 -0
  67. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/update_pet_error.py +21 -0
  68. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/update_pet_with_form_error.py +21 -0
  69. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/update_user_error.py +21 -0
  70. cliv1-0.1.6/swagger_petstore_open_api_3_0/errors/upload_file_error.py +21 -0
  71. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/__init__.py +23 -0
  72. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/api_response.py +18 -0
  73. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/category.py +15 -0
  74. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/enums/__init__.py +4 -0
  75. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/enums/order_status.py +17 -0
  76. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/enums/pet_status.py +17 -0
  77. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/order.py +27 -0
  78. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/pet.py +28 -0
  79. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/tag_model.py +15 -0
  80. cliv1-0.1.6/swagger_petstore_open_api_3_0/models/user.py +29 -0
  81. cliv1-0.1.6/swagger_petstore_open_api_3_0/py.typed +0 -0
  82. cliv1-0.1.6/swagger_petstore_open_api_3_0/server/__init__.py +21 -0
  83. cliv1-0.1.6/swagger_petstore_open_api_3_0/server/server.py +17 -0
  84. cliv1-0.1.6/swagger_petstore_open_api_3_0/server/server_config.py +52 -0
  85. cliv1-0.1.4/MANIFEST.in +0 -2
  86. cliv1-0.1.4/PKG-INFO +0 -166
  87. cliv1-0.1.4/README.md +0 -150
  88. cliv1-0.1.4/cliV1.egg-info/PKG-INFO +0 -166
  89. cliv1-0.1.4/cliV1.egg-info/SOURCES.txt +0 -52
  90. cliv1-0.1.4/cliV1.egg-info/dependency_links.txt +0 -1
  91. cliv1-0.1.4/cliV1.egg-info/requires.txt +0 -7
  92. cliv1-0.1.4/cliV1.egg-info/top_level.txt +0 -3
  93. cliv1-0.1.4/pyproject.toml +0 -24
  94. cliv1-0.1.4/setup.cfg +0 -8
  95. cliv1-0.1.4/swaggerpetstoreopenapi30/__init__.py +0 -13
  96. cliv1-0.1.4/swaggerpetstoreopenapi30/api_helper.py +0 -19
  97. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/__init__.py +0 -8
  98. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/base_api.py +0 -72
  99. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/pet_api.py +0 -453
  100. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/store_api.py +0 -213
  101. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/user_api.py +0 -378
  102. cliv1-0.1.4/swaggerpetstoreopenapi30/configuration.py +0 -269
  103. cliv1-0.1.4/swaggerpetstoreopenapi30/exceptions/__init__.py +0 -6
  104. cliv1-0.1.4/swaggerpetstoreopenapi30/exceptions/api_exception.py +0 -36
  105. cliv1-0.1.4/swaggerpetstoreopenapi30/exceptions/oauth_provider_exception.py +0 -75
  106. cliv1-0.1.4/swaggerpetstoreopenapi30/http/__init__.py +0 -11
  107. cliv1-0.1.4/swaggerpetstoreopenapi30/http/api_response.py +0 -67
  108. cliv1-0.1.4/swaggerpetstoreopenapi30/http/auth/__init__.py +0 -6
  109. cliv1-0.1.4/swaggerpetstoreopenapi30/http/auth/api_key.py +0 -100
  110. cliv1-0.1.4/swaggerpetstoreopenapi30/http/auth/petstore_auth.py +0 -247
  111. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_call_back.py +0 -20
  112. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_client_provider.py +0 -23
  113. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_method_enum.py +0 -25
  114. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_request.py +0 -55
  115. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_response.py +0 -45
  116. cliv1-0.1.4/swaggerpetstoreopenapi30/http/proxy_settings.py +0 -50
  117. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/__init__.py +0 -6
  118. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/configuration/__init__.py +0 -5
  119. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/configuration/api_logging_configuration.py +0 -398
  120. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/sdk_logger.py +0 -28
  121. cliv1-0.1.4/swaggerpetstoreopenapi30/models/__init__.py +0 -15
  122. cliv1-0.1.4/swaggerpetstoreopenapi30/models/api_response.py +0 -185
  123. cliv1-0.1.4/swaggerpetstoreopenapi30/models/category.py +0 -159
  124. cliv1-0.1.4/swaggerpetstoreopenapi30/models/oauth_provider_error.py +0 -67
  125. cliv1-0.1.4/swaggerpetstoreopenapi30/models/oauth_scope_petstore_auth.py +0 -45
  126. cliv1-0.1.4/swaggerpetstoreopenapi30/models/oauth_token.py +0 -157
  127. cliv1-0.1.4/swaggerpetstoreopenapi30/models/order.py +0 -265
  128. cliv1-0.1.4/swaggerpetstoreopenapi30/models/order_status.py +0 -48
  129. cliv1-0.1.4/swaggerpetstoreopenapi30/models/pet.py +0 -258
  130. cliv1-0.1.4/swaggerpetstoreopenapi30/models/pet_status.py +0 -48
  131. cliv1-0.1.4/swaggerpetstoreopenapi30/models/tag.py +0 -159
  132. cliv1-0.1.4/swaggerpetstoreopenapi30/models/user.py +0 -315
  133. cliv1-0.1.4/swaggerpetstoreopenapi30/swaggerpetstoreopenapi_30_client.py +0 -104
  134. cliv1-0.1.4/swaggerpetstoreopenapi30/utilities/__init__.py +0 -7
  135. cliv1-0.1.4/swaggerpetstoreopenapi30/utilities/file_wrapper.py +0 -45
  136. cliv1-0.1.4/swaggerpetstoreopenapi30/utilities/xml_utilities.py +0 -12
@@ -1,9 +1,6 @@
1
- License:
2
- ========
3
- The MIT License (MIT)
4
- http://opensource.org/licenses/MIT
1
+ MIT License
5
2
 
6
- Copyright (c) 2014 - 2026 APIMATIC Limited
3
+ Copyright (c) 2026 APIMatic
7
4
 
8
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,17 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
9
  copies of the Software, and to permit persons to whom the Software is
13
10
  furnished to do so, subject to the following conditions:
14
11
 
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
17
14
 
18
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
-
26
- Trade Mark:
27
- ==========
28
- APIMATIC is a trade mark for APIMATIC Limited
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
cliv1-0.1.6/PKG-INFO ADDED
@@ -0,0 +1,162 @@
1
+ Metadata-Version: 2.4
2
+ Name: cliV1
3
+ Version: 0.1.6
4
+ Summary: The official Python library for the Swagger Petstore - OpenAPI 3.0 API
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Keywords: sdk,api-client,openapi,rest,http,apimatic
8
+ Author: apiteam@swagger.io
9
+ Maintainer: APIMatic
10
+ Maintainer-email: support@apimatic.io
11
+ Requires-Python: >=3.10
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Typing :: Typed
20
+ Classifier: Operating System :: OS Independent
21
+ Classifier: Topic :: Internet :: WWW/HTTP
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Dist: httpx (>=0.28.1,<1.0.0)
24
+ Requires-Dist: pydantic[email] (>=2.11.0,<3.0.0)
25
+ Requires-Dist: typing-extensions (>=4.13.0,<5.0.0)
26
+ Project-URL: Documentation, https://swagger.io
27
+ Description-Content-Type: text/markdown
28
+
29
+ # Swagger Petstore - OpenAPI 3.0 SDK
30
+
31
+ [![Built with APIMatic][apimatic-badge]][apimatic-url] [![License: MIT][license-badge]][license-url] [![Python 3.10+][python-badge]][python-url]
32
+
33
+ The Swagger Petstore - OpenAPI 3.0 SDK for Python provides access to the [Swagger Petstore - OpenAPI 3.0 REST APIs](https://swagger.io) from Python applications.
34
+
35
+ > [!TIP]
36
+ > **Looking for a specific signature, model, enum, or error type?** This SDK ships a generated
37
+ > **[SDK map](sdk-map.md)** -- a lookup index of the SDK's entire Python surface. Consult it before
38
+ > scanning the source tree; details under [SDK map](#sdk-map).
39
+
40
+ This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
41
+ Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
42
+ You can now help us improve the API whether it's by making changes to the definition itself or to the code.
43
+ That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
44
+
45
+ Some useful links:
46
+ - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
47
+ - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
48
+
49
+ ---
50
+
51
+ ## Installation
52
+
53
+ Install the Python SDK from PyPI, with whichever package manager your project uses:
54
+
55
+ ```bash
56
+ pip install cliV1
57
+ ```
58
+
59
+ ```bash
60
+ uv add cliV1
61
+ ```
62
+
63
+ ```bash
64
+ poetry add cliV1
65
+ ```
66
+
67
+ ---
68
+
69
+ ## Quick Start
70
+
71
+ ### Synchronous client
72
+
73
+ Construct `SwaggerPetstoreOpenApi30Client` with keyword arguments, and call `close()` when you are done. Every argument is optional; the full list is in the [SDK map](sdk-map.md).
74
+
75
+ ```python
76
+ from swagger_petstore_open_api_3_0 import SwaggerPetstoreOpenApi30Client
77
+
78
+ client = SwaggerPetstoreOpenApi30Client(petstore_auth="YOUR_API_KEY", api_key="YOUR_API_KEY")
79
+
80
+ # TODO: call endpoints here -- see api-reference.md
81
+
82
+ client.close()
83
+ ```
84
+
85
+ Alternatively, scope it -- `with SwaggerPetstoreOpenApi30Client(...) as client:` closes the pool on exit; see [Best Practices](#best-practices).
86
+
87
+ `Client` is exported as an alias of `SwaggerPetstoreOpenApi30Client`, so `from swagger_petstore_open_api_3_0 import Client` also works.
88
+
89
+ The SDK accepts every model-typed input in two interchangeable spellings, both type-checked: the typed model, or a plain dict with the same keys -- the `OrDict` and `Model | ModelDict` unions in the [SDK map](sdk-map.md). Pick whichever suits the call site: the dict form needs no import, while the model form adds a keyword-checked constructor and editor completion.
90
+
91
+ ### Asynchronous client
92
+
93
+ `AsyncSwaggerPetstoreOpenApi30Client` mirrors `SwaggerPetstoreOpenApi30Client` with **identical method names**, and every endpoint method is a coroutine. It takes the same arguments, with some differences -- for example, the transport argument is `custom_async_http_client`.
94
+
95
+ ```python
96
+ from asyncio import run
97
+
98
+ from swagger_petstore_open_api_3_0 import AsyncSwaggerPetstoreOpenApi30Client
99
+
100
+
101
+ async def main() -> None:
102
+ client = AsyncSwaggerPetstoreOpenApi30Client(petstore_auth="YOUR_API_KEY", api_key="YOUR_API_KEY")
103
+ # TODO: call endpoints here, awaiting each -- see api-reference.md
104
+ await client.aclose()
105
+
106
+
107
+ run(main())
108
+ ```
109
+
110
+ Alternatively, scope it -- `async with AsyncSwaggerPetstoreOpenApi30Client(...) as client:` closes the pool on exit. Only the async spelling is `aclose`, matching httpx; see [Best Practices](#best-practices).
111
+
112
+ `AsyncClient` is the exported alias. Each client accepts **only** its own transport argument; passing the other's is a `TypeError` at runtime and an error under mypy.
113
+
114
+ ---
115
+
116
+ ## Usage
117
+
118
+ Two generated references cover the SDK; each answers a different question:
119
+
120
+ | Reference | For |
121
+ | --- | --- |
122
+ | **[API Reference](api-reference.md)** | Usage guidance for a single **parsed** operation: `client.<group>.<operation>(...)` returns the typed payload and raises `ApiError` on any non-2xx, with `.error` the typed error body, or `RawError` for a status the operation does not document. |
123
+ | **[Raw API Reference](raw-api-reference.md)** | The same for the **raw** variant: `client.<group>.with_raw_response.<operation>(...)` returns `ApiResult[T, E]` and never raises for an API error. |
124
+
125
+ Both API references carry every one of the 19 operations, with a sync and an async sample and a parameter table each.
126
+
127
+ ## SDK map
128
+
129
+ This SDK ships a generated **SDK map** -- [`sdk-map.md`](sdk-map.md) -- a deterministic, lookup-oriented table of contents of the SDK's Python surface, generated by APIMatic alongside this SDK.
130
+
131
+ Consult the map before scanning or grepping the source: it answers call-level contract questions by lookup, and for anything it does not carry -- model shapes, enum values, an endpoint's route or behavioural prose -- it names the one source file to read. How to read the map itself, including the SDK-wide defaults its rows rely on, is stated at the top of [`sdk-map.md`](sdk-map.md).
132
+
133
+ ## Best Practices
134
+
135
+ > [!TIP]
136
+ > Use a **single `SwaggerPetstoreOpenApi30Client` instance** for the lifetime of your application and reuse it across
137
+ > all requests. Each instance owns its own connection pool, so an instance per request forfeits
138
+ > connection reuse and leaks pools that are never closed.
139
+
140
+ Match the disposal to the client's lifetime: an application-lifetime client is closed once at shutdown with `close()` / `aclose()`; where the lifetime fits a block, `with SwaggerPetstoreOpenApi30Client() as client:` / `async with AsyncSwaggerPetstoreOpenApi30Client() as client:` releases it automatically. Both are idempotent, but a closed client is not reusable: the next call raises. The client closes **whatever transport it holds**, including one you supplied via `custom_http_client` / `custom_async_http_client`; if you intend to reuse your own transport across clients, don't hand its lifetime to a `with` block.
141
+
142
+ ## License
143
+
144
+ This SDK is distributed under the [MIT License][license-url].
145
+
146
+ ---
147
+
148
+ ## Support
149
+
150
+ Refer to the [API reference](api-reference.md) for detailed information on available operations with code samples.
151
+
152
+ For further assistance, please contact support at apiteam@swagger.io.
153
+
154
+ ---
155
+
156
+ [license-url]: LICENSE
157
+ [license-badge]: https://img.shields.io/badge/License-MIT-blue.svg
158
+ [apimatic-url]: https://www.apimatic.io
159
+ [apimatic-badge]: https://www.apimatic.io/hubfs/Built-with-APIMatic-badge.svg
160
+ [python-url]: https://www.python.org/downloads/
161
+ [python-badge]: https://img.shields.io/badge/python-3.10%2B-blue.svg
162
+
cliv1-0.1.6/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # Swagger Petstore - OpenAPI 3.0 SDK
2
+
3
+ [![Built with APIMatic][apimatic-badge]][apimatic-url] [![License: MIT][license-badge]][license-url] [![Python 3.10+][python-badge]][python-url]
4
+
5
+ The Swagger Petstore - OpenAPI 3.0 SDK for Python provides access to the [Swagger Petstore - OpenAPI 3.0 REST APIs](https://swagger.io) from Python applications.
6
+
7
+ > [!TIP]
8
+ > **Looking for a specific signature, model, enum, or error type?** This SDK ships a generated
9
+ > **[SDK map](sdk-map.md)** -- a lookup index of the SDK's entire Python surface. Consult it before
10
+ > scanning the source tree; details under [SDK map](#sdk-map).
11
+
12
+ This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
13
+ Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
14
+ You can now help us improve the API whether it's by making changes to the definition itself or to the code.
15
+ That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
16
+
17
+ Some useful links:
18
+ - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
19
+ - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
20
+
21
+ ---
22
+
23
+ ## Installation
24
+
25
+ Install the Python SDK from PyPI, with whichever package manager your project uses:
26
+
27
+ ```bash
28
+ pip install cliV1
29
+ ```
30
+
31
+ ```bash
32
+ uv add cliV1
33
+ ```
34
+
35
+ ```bash
36
+ poetry add cliV1
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Quick Start
42
+
43
+ ### Synchronous client
44
+
45
+ Construct `SwaggerPetstoreOpenApi30Client` with keyword arguments, and call `close()` when you are done. Every argument is optional; the full list is in the [SDK map](sdk-map.md).
46
+
47
+ ```python
48
+ from swagger_petstore_open_api_3_0 import SwaggerPetstoreOpenApi30Client
49
+
50
+ client = SwaggerPetstoreOpenApi30Client(petstore_auth="YOUR_API_KEY", api_key="YOUR_API_KEY")
51
+
52
+ # TODO: call endpoints here -- see api-reference.md
53
+
54
+ client.close()
55
+ ```
56
+
57
+ Alternatively, scope it -- `with SwaggerPetstoreOpenApi30Client(...) as client:` closes the pool on exit; see [Best Practices](#best-practices).
58
+
59
+ `Client` is exported as an alias of `SwaggerPetstoreOpenApi30Client`, so `from swagger_petstore_open_api_3_0 import Client` also works.
60
+
61
+ The SDK accepts every model-typed input in two interchangeable spellings, both type-checked: the typed model, or a plain dict with the same keys -- the `OrDict` and `Model | ModelDict` unions in the [SDK map](sdk-map.md). Pick whichever suits the call site: the dict form needs no import, while the model form adds a keyword-checked constructor and editor completion.
62
+
63
+ ### Asynchronous client
64
+
65
+ `AsyncSwaggerPetstoreOpenApi30Client` mirrors `SwaggerPetstoreOpenApi30Client` with **identical method names**, and every endpoint method is a coroutine. It takes the same arguments, with some differences -- for example, the transport argument is `custom_async_http_client`.
66
+
67
+ ```python
68
+ from asyncio import run
69
+
70
+ from swagger_petstore_open_api_3_0 import AsyncSwaggerPetstoreOpenApi30Client
71
+
72
+
73
+ async def main() -> None:
74
+ client = AsyncSwaggerPetstoreOpenApi30Client(petstore_auth="YOUR_API_KEY", api_key="YOUR_API_KEY")
75
+ # TODO: call endpoints here, awaiting each -- see api-reference.md
76
+ await client.aclose()
77
+
78
+
79
+ run(main())
80
+ ```
81
+
82
+ Alternatively, scope it -- `async with AsyncSwaggerPetstoreOpenApi30Client(...) as client:` closes the pool on exit. Only the async spelling is `aclose`, matching httpx; see [Best Practices](#best-practices).
83
+
84
+ `AsyncClient` is the exported alias. Each client accepts **only** its own transport argument; passing the other's is a `TypeError` at runtime and an error under mypy.
85
+
86
+ ---
87
+
88
+ ## Usage
89
+
90
+ Two generated references cover the SDK; each answers a different question:
91
+
92
+ | Reference | For |
93
+ | --- | --- |
94
+ | **[API Reference](api-reference.md)** | Usage guidance for a single **parsed** operation: `client.<group>.<operation>(...)` returns the typed payload and raises `ApiError` on any non-2xx, with `.error` the typed error body, or `RawError` for a status the operation does not document. |
95
+ | **[Raw API Reference](raw-api-reference.md)** | The same for the **raw** variant: `client.<group>.with_raw_response.<operation>(...)` returns `ApiResult[T, E]` and never raises for an API error. |
96
+
97
+ Both API references carry every one of the 19 operations, with a sync and an async sample and a parameter table each.
98
+
99
+ ## SDK map
100
+
101
+ This SDK ships a generated **SDK map** -- [`sdk-map.md`](sdk-map.md) -- a deterministic, lookup-oriented table of contents of the SDK's Python surface, generated by APIMatic alongside this SDK.
102
+
103
+ Consult the map before scanning or grepping the source: it answers call-level contract questions by lookup, and for anything it does not carry -- model shapes, enum values, an endpoint's route or behavioural prose -- it names the one source file to read. How to read the map itself, including the SDK-wide defaults its rows rely on, is stated at the top of [`sdk-map.md`](sdk-map.md).
104
+
105
+ ## Best Practices
106
+
107
+ > [!TIP]
108
+ > Use a **single `SwaggerPetstoreOpenApi30Client` instance** for the lifetime of your application and reuse it across
109
+ > all requests. Each instance owns its own connection pool, so an instance per request forfeits
110
+ > connection reuse and leaks pools that are never closed.
111
+
112
+ Match the disposal to the client's lifetime: an application-lifetime client is closed once at shutdown with `close()` / `aclose()`; where the lifetime fits a block, `with SwaggerPetstoreOpenApi30Client() as client:` / `async with AsyncSwaggerPetstoreOpenApi30Client() as client:` releases it automatically. Both are idempotent, but a closed client is not reusable: the next call raises. The client closes **whatever transport it holds**, including one you supplied via `custom_http_client` / `custom_async_http_client`; if you intend to reuse your own transport across clients, don't hand its lifetime to a `with` block.
113
+
114
+ ## License
115
+
116
+ This SDK is distributed under the [MIT License][license-url].
117
+
118
+ ---
119
+
120
+ ## Support
121
+
122
+ Refer to the [API reference](api-reference.md) for detailed information on available operations with code samples.
123
+
124
+ For further assistance, please contact support at apiteam@swagger.io.
125
+
126
+ ---
127
+
128
+ [license-url]: LICENSE
129
+ [license-badge]: https://img.shields.io/badge/License-MIT-blue.svg
130
+ [apimatic-url]: https://www.apimatic.io
131
+ [apimatic-badge]: https://www.apimatic.io/hubfs/Built-with-APIMatic-badge.svg
132
+ [python-url]: https://www.python.org/downloads/
133
+ [python-badge]: https://img.shields.io/badge/python-3.10%2B-blue.svg
@@ -0,0 +1,95 @@
1
+ [project]
2
+ name = "cliV1"
3
+ version = "0.1.6"
4
+ description = "The official Python library for the Swagger Petstore - OpenAPI 3.0 API"
5
+ authors = [
6
+ { email = "apiteam@swagger.io" },
7
+ ]
8
+ maintainers = [
9
+ { name = "APIMatic", email = "support@apimatic.io" },
10
+ ]
11
+ keywords = ["sdk", "api-client", "openapi", "rest", "http", "apimatic"]
12
+ license = "MIT" # SPDX expression (PEP 639); poetry-core bundles the root LICENSE
13
+ readme = "README.md"
14
+ requires-python = ">=3.10"
15
+ dependencies = [
16
+ "httpx (>=0.28.1,<1.0.0)",
17
+ # 2.11 added the alias-control `model_config` keys core/models.py names --
18
+ # validate_by_name, validate_by_alias and serialize_by_alias. No 2.12-only pydantic API
19
+ # is used anywhere.
20
+ "pydantic[email] (>=2.11.0,<3.0.0)",
21
+ # NotRequired / TypedDict backport for the 3.10 floor (both live in `typing` from 3.11),
22
+ # used by the model input companions; and TypeForm (PEP 747, added in 4.13.0), which
23
+ # core/ uses to type the runtime type expressions its factories accept. PEP 747 is Final
24
+ # and TypeForm reaches `typing` in 3.15, so both move when the floor does.
25
+ "typing-extensions (>=4.13.0,<5.0.0)",
26
+ ]
27
+
28
+ classifiers = [
29
+ "Intended Audience :: Developers",
30
+ "Programming Language :: Python :: 3",
31
+ "Programming Language :: Python :: 3.10",
32
+ "Programming Language :: Python :: 3.11",
33
+ "Programming Language :: Python :: 3.12",
34
+ "Programming Language :: Python :: 3.13",
35
+ "Programming Language :: Python :: 3.14",
36
+ "Typing :: Typed",
37
+ "Operating System :: OS Independent",
38
+ "Topic :: Internet :: WWW/HTTP",
39
+ "Topic :: Software Development :: Libraries :: Python Modules",
40
+ ]
41
+
42
+ # Must stay below every bare [project] key -- a sub-table header captures whatever follows it.
43
+ [project.urls]
44
+ Documentation = "https://swagger.io"
45
+
46
+ [dependency-groups]
47
+ dev = [
48
+ # 2.2 is where PEP 747 TypeForm became default-on; below it, core/'s signatures need an
49
+ # --enable-incomplete-feature flag.
50
+ "mypy (>=2.2.0,<3.0.0)",
51
+ "ruff (>=0.14.14,<0.15.0)",
52
+ ]
53
+
54
+
55
+ [build-system]
56
+ # 2.2.0 is the first release that understands PEP 639 -- below it the backend emits the
57
+ # deprecated `License:` field, re-adds the license classifier and drops `:: 3.14`.
58
+ requires = ["poetry-core>=2.2.0,<3.0.0"]
59
+ build-backend = "poetry.core.masonry.api"
60
+
61
+
62
+ [tool.poetry]
63
+ packages = [{ include = "swagger_petstore_open_api_3_0" }]
64
+
65
+
66
+ [tool.ruff]
67
+ # target-version is inferred from requires-python -- the floor is single-sourced there
68
+ line-length = 120
69
+
70
+ [tool.ruff.lint]
71
+ select = ["E", "W", "F", "I", "UP", "B", "RUF"]
72
+ # Deliberately excluded:
73
+ # TC - would move pydantic-validated imports under TYPE_CHECKING, breaking the
74
+ # runtime annotation resolution that pydantic depends on
75
+ # Q - the CI-gated formatter normalizes quotes everywhere it runs
76
+ ignore = [
77
+ # Typographic punctuation flagged as confusable. Every docstring here is the spec
78
+ # author's own description, copied verbatim -- normalizing their apostrophes and
79
+ # dashes would silently alter the API's documentation.
80
+ "RUF001", "RUF002", "RUF003",
81
+ ]
82
+
83
+ [tool.ruff.lint.per-file-ignores]
84
+ "**/__init__.py" = ["RUF022"] # curated, grouped __all__
85
+
86
+ [tool.mypy]
87
+ python_version = "3.10" # the supported floor, not whichever interpreter is local
88
+ files = ["swagger_petstore_open_api_3_0"]
89
+ strict = true
90
+ warn_unreachable = true
91
+ enable_error_code = ["redundant-expr", "truthy-bool", "ignore-without-code", "possibly-undefined"]
92
+ # already inside `strict` at mypy 2.3, pinned deliberately: `strict`'s flag set is versioned
93
+ # and the dev floor spans >=2.2.0,<3.0.0
94
+ warn_return_any = true
95
+ pretty = true
@@ -0,0 +1,15 @@
1
+ from . import models
2
+ from .async_client import AsyncClient, AsyncSwaggerPetstoreOpenApi30Client
3
+ from .client import Client, SwaggerPetstoreOpenApi30Client
4
+ from .server import ServerConfig, ServerConfigDict, ServerConfigOrDict
5
+
6
+ __all__ = [
7
+ "models",
8
+ "AsyncClient",
9
+ "AsyncSwaggerPetstoreOpenApi30Client",
10
+ "Client",
11
+ "ServerConfig",
12
+ "ServerConfigDict",
13
+ "ServerConfigOrDict",
14
+ "SwaggerPetstoreOpenApi30Client",
15
+ ]
@@ -0,0 +1,5 @@
1
+ from .pet_api import AsyncPetApi, PetApi
2
+ from .store import AsyncStore, Store
3
+ from .user_api import AsyncUserApi, UserApi
4
+
5
+ __all__ = ["AsyncPetApi", "AsyncStore", "AsyncUserApi", "PetApi", "Store", "UserApi"]