cliV1 0.1.1__tar.gz → 0.1.4__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 (135) hide show
  1. {cliv1-0.1.1 → cliv1-0.1.4}/LICENSE +13 -6
  2. cliv1-0.1.4/MANIFEST.in +2 -0
  3. cliv1-0.1.4/PKG-INFO +166 -0
  4. cliv1-0.1.4/README.md +150 -0
  5. cliv1-0.1.4/cliV1.egg-info/PKG-INFO +166 -0
  6. cliv1-0.1.4/cliV1.egg-info/SOURCES.txt +52 -0
  7. cliv1-0.1.4/cliV1.egg-info/dependency_links.txt +1 -0
  8. cliv1-0.1.4/cliV1.egg-info/requires.txt +7 -0
  9. cliv1-0.1.4/cliV1.egg-info/top_level.txt +3 -0
  10. cliv1-0.1.4/pyproject.toml +24 -0
  11. cliv1-0.1.4/setup.cfg +8 -0
  12. cliv1-0.1.4/swaggerpetstoreopenapi30/__init__.py +13 -0
  13. cliv1-0.1.4/swaggerpetstoreopenapi30/api_helper.py +19 -0
  14. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/__init__.py +8 -0
  15. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/base_api.py +72 -0
  16. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/pet_api.py +453 -0
  17. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/store_api.py +213 -0
  18. cliv1-0.1.4/swaggerpetstoreopenapi30/apis/user_api.py +378 -0
  19. cliv1-0.1.4/swaggerpetstoreopenapi30/configuration.py +269 -0
  20. cliv1-0.1.4/swaggerpetstoreopenapi30/exceptions/__init__.py +6 -0
  21. cliv1-0.1.4/swaggerpetstoreopenapi30/exceptions/api_exception.py +36 -0
  22. cliv1-0.1.4/swaggerpetstoreopenapi30/exceptions/oauth_provider_exception.py +75 -0
  23. cliv1-0.1.4/swaggerpetstoreopenapi30/http/__init__.py +11 -0
  24. cliv1-0.1.4/swaggerpetstoreopenapi30/http/api_response.py +67 -0
  25. cliv1-0.1.4/swaggerpetstoreopenapi30/http/auth/__init__.py +6 -0
  26. cliv1-0.1.4/swaggerpetstoreopenapi30/http/auth/api_key.py +100 -0
  27. cliv1-0.1.4/swaggerpetstoreopenapi30/http/auth/petstore_auth.py +247 -0
  28. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_call_back.py +20 -0
  29. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_client_provider.py +23 -0
  30. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_method_enum.py +25 -0
  31. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_request.py +55 -0
  32. cliv1-0.1.4/swaggerpetstoreopenapi30/http/http_response.py +45 -0
  33. cliv1-0.1.4/swaggerpetstoreopenapi30/http/proxy_settings.py +50 -0
  34. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/__init__.py +6 -0
  35. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/configuration/__init__.py +5 -0
  36. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/configuration/api_logging_configuration.py +398 -0
  37. cliv1-0.1.4/swaggerpetstoreopenapi30/logging/sdk_logger.py +28 -0
  38. cliv1-0.1.4/swaggerpetstoreopenapi30/models/__init__.py +15 -0
  39. cliv1-0.1.4/swaggerpetstoreopenapi30/models/api_response.py +185 -0
  40. cliv1-0.1.4/swaggerpetstoreopenapi30/models/category.py +159 -0
  41. cliv1-0.1.4/swaggerpetstoreopenapi30/models/oauth_provider_error.py +67 -0
  42. cliv1-0.1.4/swaggerpetstoreopenapi30/models/oauth_scope_petstore_auth.py +45 -0
  43. cliv1-0.1.4/swaggerpetstoreopenapi30/models/oauth_token.py +157 -0
  44. cliv1-0.1.4/swaggerpetstoreopenapi30/models/order.py +265 -0
  45. cliv1-0.1.4/swaggerpetstoreopenapi30/models/order_status.py +48 -0
  46. cliv1-0.1.4/swaggerpetstoreopenapi30/models/pet.py +258 -0
  47. cliv1-0.1.4/swaggerpetstoreopenapi30/models/pet_status.py +48 -0
  48. cliv1-0.1.4/swaggerpetstoreopenapi30/models/tag.py +159 -0
  49. cliv1-0.1.4/swaggerpetstoreopenapi30/models/user.py +315 -0
  50. cliv1-0.1.4/swaggerpetstoreopenapi30/swaggerpetstoreopenapi_30_client.py +104 -0
  51. cliv1-0.1.4/swaggerpetstoreopenapi30/utilities/__init__.py +7 -0
  52. cliv1-0.1.4/swaggerpetstoreopenapi30/utilities/file_wrapper.py +45 -0
  53. cliv1-0.1.4/swaggerpetstoreopenapi30/utilities/xml_utilities.py +12 -0
  54. cliv1-0.1.1/PKG-INFO +0 -156
  55. cliv1-0.1.1/README.md +0 -126
  56. cliv1-0.1.1/pyproject.toml +0 -95
  57. cliv1-0.1.1/swagger_petstore_open_api_3_0/__init__.py +0 -15
  58. cliv1-0.1.1/swagger_petstore_open_api_3_0/apis/__init__.py +0 -5
  59. cliv1-0.1.1/swagger_petstore_open_api_3_0/apis/pet_api.py +0 -881
  60. cliv1-0.1.1/swagger_petstore_open_api_3_0/apis/store.py +0 -411
  61. cliv1-0.1.1/swagger_petstore_open_api_3_0/apis/user_api.py +0 -792
  62. cliv1-0.1.1/swagger_petstore_open_api_3_0/async_client.py +0 -79
  63. cliv1-0.1.1/swagger_petstore_open_api_3_0/auth.py +0 -17
  64. cliv1-0.1.1/swagger_petstore_open_api_3_0/base_client.py +0 -18
  65. cliv1-0.1.1/swagger_petstore_open_api_3_0/client.py +0 -77
  66. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/__init__.py +0 -342
  67. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/_internal/__init__.py +0 -7
  68. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/_internal/content_disposition.py +0 -154
  69. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/_internal/flattening.py +0 -139
  70. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/_internal/headers.py +0 -144
  71. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/_internal/urls.py +0 -166
  72. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/_internal/wire.py +0 -173
  73. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/adapters.py +0 -177
  74. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/__init__.py +0 -70
  75. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/composition.py +0 -175
  76. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/models.py +0 -217
  77. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/protocols.py +0 -103
  78. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/__init__.py +0 -94
  79. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/api_key_auth.py +0 -53
  80. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/basic_auth.py +0 -73
  81. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/bearer_auth.py +0 -21
  82. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_authorization_code.py +0 -393
  83. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_client_credentials.py +0 -127
  84. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_password.py +0 -142
  85. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_schemes.py +0 -300
  86. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/base_raw_response.py +0 -49
  87. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/bodies.py +0 -563
  88. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/converters/__init__.py +0 -68
  89. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/converters/date_time.py +0 -237
  90. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/converters/encoded_bytes.py +0 -271
  91. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/converters/open_enum.py +0 -35
  92. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/decoding.py +0 -263
  93. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/exceptions.py +0 -41
  94. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/file_responses.py +0 -324
  95. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/files.py +0 -173
  96. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/httpx_transport.py +0 -766
  97. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/models.py +0 -143
  98. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/optionality.py +0 -130
  99. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/params.py +0 -161
  100. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/raw_client.py +0 -388
  101. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/request_options.py +0 -94
  102. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/results.py +0 -110
  103. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/runtime_env.py +0 -43
  104. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/servers.py +0 -33
  105. cliv1-0.1.1/swagger_petstore_open_api_3_0/core/transport.py +0 -248
  106. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/__init__.py +0 -48
  107. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/add_pet_error.py +0 -21
  108. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/delete_order_error.py +0 -21
  109. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/delete_pet_error.py +0 -21
  110. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/delete_user_error.py +0 -21
  111. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/find_pets_by_status_error.py +0 -21
  112. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/find_pets_by_tags_error.py +0 -21
  113. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/get_order_by_id_error.py +0 -21
  114. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/get_pet_by_id_error.py +0 -21
  115. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/get_user_by_name_error.py +0 -21
  116. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/login_user_error.py +0 -21
  117. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/place_order_error.py +0 -21
  118. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/update_pet_error.py +0 -21
  119. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/update_pet_with_form_error.py +0 -21
  120. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/update_user_error.py +0 -21
  121. cliv1-0.1.1/swagger_petstore_open_api_3_0/errors/upload_file_error.py +0 -21
  122. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/__init__.py +0 -23
  123. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/api_response.py +0 -18
  124. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/category.py +0 -15
  125. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/enums/__init__.py +0 -4
  126. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/enums/order_status.py +0 -17
  127. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/enums/pet_status.py +0 -17
  128. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/order.py +0 -27
  129. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/pet.py +0 -28
  130. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/tag.py +0 -15
  131. cliv1-0.1.1/swagger_petstore_open_api_3_0/models/user.py +0 -29
  132. cliv1-0.1.1/swagger_petstore_open_api_3_0/py.typed +0 -0
  133. cliv1-0.1.1/swagger_petstore_open_api_3_0/server/__init__.py +0 -21
  134. cliv1-0.1.1/swagger_petstore_open_api_3_0/server/server.py +0 -17
  135. cliv1-0.1.1/swagger_petstore_open_api_3_0/server/server_config.py +0 -52
@@ -1,6 +1,9 @@
1
- MIT License
1
+ License:
2
+ ========
3
+ The MIT License (MIT)
4
+ http://opensource.org/licenses/MIT
2
5
 
3
- Copyright (c) 2026 APIMatic
6
+ Copyright (c) 2014 - 2026 APIMATIC Limited
4
7
 
5
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
9
  of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +12,17 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
12
  copies of the Software, and to permit persons to whom the Software is
10
13
  furnished to do so, subject to the following conditions:
11
14
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
14
17
 
15
18
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
19
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
20
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
21
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
22
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
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
@@ -0,0 +1,2 @@
1
+ include LICENSE
2
+ include README.md
cliv1-0.1.4/PKG-INFO ADDED
@@ -0,0 +1,166 @@
1
+ Metadata-Version: 2.4
2
+ Name: cliV1
3
+ Version: 0.1.4
4
+ Summary: The official Python library for the Swagger Petstore - OpenAPI 3.0 API
5
+ Author-email: CLI devs <support@cli.org>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
10
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
11
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
12
+ Requires-Dist: python-dotenv<2.0,>=0.21
13
+ Provides-Extra: testutils
14
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
15
+ Dynamic: license-file
16
+
17
+
18
+ # Getting Started with Swagger Petstore - OpenAPI 3.0
19
+
20
+ ## Introduction
21
+
22
+ This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
23
+ Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
24
+ You can now help us improve the API whether it's by making changes to the definition itself or to the code.
25
+ That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
26
+
27
+ Some useful links:
28
+
29
+ - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
30
+ - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
31
+
32
+ Find out more about Swagger: [https://swagger.io](https://swagger.io)
33
+
34
+ ## Install the Package
35
+
36
+ The package is compatible with Python versions `3.7+`.
37
+ Install the package from PyPi using the following pip command:
38
+
39
+ ```bash
40
+ pip install cliV1==0.1.4
41
+ ```
42
+
43
+ You can also view the package at:
44
+ https://pypi.python.org/pypi/cliV1/0.1.4
45
+
46
+ ## Initialize the API Client
47
+
48
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
49
+
50
+ The following parameters are configurable for the API Client:
51
+
52
+ | Parameter | Type | Description |
53
+ | --- | --- | --- |
54
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
55
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
56
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
57
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
58
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
59
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
60
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
61
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
62
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT", "GET", "PUT"]** |
63
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
64
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
65
+ | petstore_auth_credentials | [`PetstoreAuthCredentials`](doc/auth/oauth-2-implicit-grant.md) | The credential object for OAuth 2 Implicit Grant |
66
+ | api_key_credentials | [`ApiKeyCredentials`](doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
67
+
68
+ The API client can be initialized as follows:
69
+
70
+ ### Code-Based Client Initialization
71
+
72
+ ```python
73
+ import logging
74
+
75
+ from swaggerpetstoreopenapi30.configuration import Environment
76
+ from swaggerpetstoreopenapi30.http.auth.api_key import ApiKeyCredentials
77
+ from swaggerpetstoreopenapi30.http.auth.petstore_auth import PetstoreAuthCredentials
78
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import LoggingConfiguration
79
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
80
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
81
+ from swaggerpetstoreopenapi30.models.oauth_scope_petstore_auth import OauthScopePetstoreAuth
82
+ from swaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_client import Swaggerpetstoreopenapi30Client
83
+
84
+ client = Swaggerpetstoreopenapi30Client(
85
+ petstore_auth_credentials=PetstoreAuthCredentials(
86
+ oauth_client_id='OAuthClientId',
87
+ oauth_redirect_uri='OAuthRedirectUri',
88
+ oauth_scopes=[
89
+ OauthScopePetstoreAuth.WRITEPETS,
90
+ OauthScopePetstoreAuth.READPETS
91
+ ]
92
+ ),
93
+ api_key_credentials=ApiKeyCredentials(
94
+ api_key='api_key'
95
+ ),
96
+ environment=Environment.PRODUCTION,
97
+ logging_configuration=LoggingConfiguration(
98
+ log_level=logging.INFO,
99
+ request_logging_config=RequestLoggingConfiguration(
100
+ log_body=True
101
+ ),
102
+ response_logging_config=ResponseLoggingConfiguration(
103
+ log_headers=True
104
+ )
105
+ )
106
+ )
107
+ ```
108
+
109
+ ### Environment-Based Client Initialization
110
+
111
+ ```python
112
+ from swaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_client import Swaggerpetstoreopenapi30Client
113
+
114
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
115
+ client = Swaggerpetstoreopenapi30Client.from_environment(dotenv_path='/path/to/.env')
116
+ ```
117
+
118
+ See the [Environment-Based Client Initialization](doc/environment-based-client-initialization.md) section for details.
119
+
120
+ ## Environments
121
+
122
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
123
+
124
+ ### Fields
125
+
126
+ | Name | Description |
127
+ | --- | --- |
128
+ | PRODUCTION | **Default** |
129
+
130
+ ## Authorization
131
+
132
+ This API uses the following authentication schemes.
133
+
134
+ * [`petstore_auth (OAuth 2 Implicit Grant)`](doc/auth/oauth-2-implicit-grant.md)
135
+ * [`api_key (Custom Header Signature)`](doc/auth/custom-header-signature.md)
136
+
137
+ ## List of APIs
138
+
139
+ * [Pet](doc/controllers/pet.md)
140
+ * [Store](doc/controllers/store.md)
141
+ * [User](doc/controllers/user.md)
142
+
143
+ ## SDK Infrastructure
144
+
145
+ ### Configuration
146
+
147
+ * [ProxySettings](doc/proxy-settings.md)
148
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
149
+ * [AbstractLogger](doc/abstract-logger.md)
150
+ * [LoggingConfiguration](doc/logging-configuration.md)
151
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
152
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
153
+
154
+ ### HTTP
155
+
156
+ * [HttpResponse](doc/http-response.md)
157
+ * [HttpRequest](doc/http-request.md)
158
+
159
+ ### Utilities
160
+
161
+ * [ApiResponse](doc/api-response.md)
162
+ * [ApiHelper](doc/api-helper.md)
163
+ * [HttpDateTime](doc/http-date-time.md)
164
+ * [RFC3339DateTime](doc/rfc3339-date-time.md)
165
+ * [UnixDateTime](doc/unix-date-time.md)
166
+
cliv1-0.1.4/README.md ADDED
@@ -0,0 +1,150 @@
1
+
2
+ # Getting Started with Swagger Petstore - OpenAPI 3.0
3
+
4
+ ## Introduction
5
+
6
+ This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
7
+ Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
8
+ You can now help us improve the API whether it's by making changes to the definition itself or to the code.
9
+ That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
10
+
11
+ Some useful links:
12
+
13
+ - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
14
+ - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
15
+
16
+ Find out more about Swagger: [https://swagger.io](https://swagger.io)
17
+
18
+ ## Install the Package
19
+
20
+ The package is compatible with Python versions `3.7+`.
21
+ Install the package from PyPi using the following pip command:
22
+
23
+ ```bash
24
+ pip install cliV1==0.1.4
25
+ ```
26
+
27
+ You can also view the package at:
28
+ https://pypi.python.org/pypi/cliV1/0.1.4
29
+
30
+ ## Initialize the API Client
31
+
32
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
33
+
34
+ The following parameters are configurable for the API Client:
35
+
36
+ | Parameter | Type | Description |
37
+ | --- | --- | --- |
38
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
39
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
40
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
41
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
42
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
43
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
44
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
45
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
46
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT", "GET", "PUT"]** |
47
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
48
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
49
+ | petstore_auth_credentials | [`PetstoreAuthCredentials`](doc/auth/oauth-2-implicit-grant.md) | The credential object for OAuth 2 Implicit Grant |
50
+ | api_key_credentials | [`ApiKeyCredentials`](doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
51
+
52
+ The API client can be initialized as follows:
53
+
54
+ ### Code-Based Client Initialization
55
+
56
+ ```python
57
+ import logging
58
+
59
+ from swaggerpetstoreopenapi30.configuration import Environment
60
+ from swaggerpetstoreopenapi30.http.auth.api_key import ApiKeyCredentials
61
+ from swaggerpetstoreopenapi30.http.auth.petstore_auth import PetstoreAuthCredentials
62
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import LoggingConfiguration
63
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
64
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
65
+ from swaggerpetstoreopenapi30.models.oauth_scope_petstore_auth import OauthScopePetstoreAuth
66
+ from swaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_client import Swaggerpetstoreopenapi30Client
67
+
68
+ client = Swaggerpetstoreopenapi30Client(
69
+ petstore_auth_credentials=PetstoreAuthCredentials(
70
+ oauth_client_id='OAuthClientId',
71
+ oauth_redirect_uri='OAuthRedirectUri',
72
+ oauth_scopes=[
73
+ OauthScopePetstoreAuth.WRITEPETS,
74
+ OauthScopePetstoreAuth.READPETS
75
+ ]
76
+ ),
77
+ api_key_credentials=ApiKeyCredentials(
78
+ api_key='api_key'
79
+ ),
80
+ environment=Environment.PRODUCTION,
81
+ logging_configuration=LoggingConfiguration(
82
+ log_level=logging.INFO,
83
+ request_logging_config=RequestLoggingConfiguration(
84
+ log_body=True
85
+ ),
86
+ response_logging_config=ResponseLoggingConfiguration(
87
+ log_headers=True
88
+ )
89
+ )
90
+ )
91
+ ```
92
+
93
+ ### Environment-Based Client Initialization
94
+
95
+ ```python
96
+ from swaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_client import Swaggerpetstoreopenapi30Client
97
+
98
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
99
+ client = Swaggerpetstoreopenapi30Client.from_environment(dotenv_path='/path/to/.env')
100
+ ```
101
+
102
+ See the [Environment-Based Client Initialization](doc/environment-based-client-initialization.md) section for details.
103
+
104
+ ## Environments
105
+
106
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
107
+
108
+ ### Fields
109
+
110
+ | Name | Description |
111
+ | --- | --- |
112
+ | PRODUCTION | **Default** |
113
+
114
+ ## Authorization
115
+
116
+ This API uses the following authentication schemes.
117
+
118
+ * [`petstore_auth (OAuth 2 Implicit Grant)`](doc/auth/oauth-2-implicit-grant.md)
119
+ * [`api_key (Custom Header Signature)`](doc/auth/custom-header-signature.md)
120
+
121
+ ## List of APIs
122
+
123
+ * [Pet](doc/controllers/pet.md)
124
+ * [Store](doc/controllers/store.md)
125
+ * [User](doc/controllers/user.md)
126
+
127
+ ## SDK Infrastructure
128
+
129
+ ### Configuration
130
+
131
+ * [ProxySettings](doc/proxy-settings.md)
132
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
133
+ * [AbstractLogger](doc/abstract-logger.md)
134
+ * [LoggingConfiguration](doc/logging-configuration.md)
135
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
136
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
137
+
138
+ ### HTTP
139
+
140
+ * [HttpResponse](doc/http-response.md)
141
+ * [HttpRequest](doc/http-request.md)
142
+
143
+ ### Utilities
144
+
145
+ * [ApiResponse](doc/api-response.md)
146
+ * [ApiHelper](doc/api-helper.md)
147
+ * [HttpDateTime](doc/http-date-time.md)
148
+ * [RFC3339DateTime](doc/rfc3339-date-time.md)
149
+ * [UnixDateTime](doc/unix-date-time.md)
150
+
@@ -0,0 +1,166 @@
1
+ Metadata-Version: 2.4
2
+ Name: cliV1
3
+ Version: 0.1.4
4
+ Summary: The official Python library for the Swagger Petstore - OpenAPI 3.0 API
5
+ Author-email: CLI devs <support@cli.org>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
10
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
11
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
12
+ Requires-Dist: python-dotenv<2.0,>=0.21
13
+ Provides-Extra: testutils
14
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
15
+ Dynamic: license-file
16
+
17
+
18
+ # Getting Started with Swagger Petstore - OpenAPI 3.0
19
+
20
+ ## Introduction
21
+
22
+ This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
23
+ Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
24
+ You can now help us improve the API whether it's by making changes to the definition itself or to the code.
25
+ That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
26
+
27
+ Some useful links:
28
+
29
+ - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
30
+ - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
31
+
32
+ Find out more about Swagger: [https://swagger.io](https://swagger.io)
33
+
34
+ ## Install the Package
35
+
36
+ The package is compatible with Python versions `3.7+`.
37
+ Install the package from PyPi using the following pip command:
38
+
39
+ ```bash
40
+ pip install cliV1==0.1.4
41
+ ```
42
+
43
+ You can also view the package at:
44
+ https://pypi.python.org/pypi/cliV1/0.1.4
45
+
46
+ ## Initialize the API Client
47
+
48
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
49
+
50
+ The following parameters are configurable for the API Client:
51
+
52
+ | Parameter | Type | Description |
53
+ | --- | --- | --- |
54
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
55
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
56
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
57
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
58
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
59
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
60
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
61
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
62
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT", "GET", "PUT"]** |
63
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
64
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
65
+ | petstore_auth_credentials | [`PetstoreAuthCredentials`](doc/auth/oauth-2-implicit-grant.md) | The credential object for OAuth 2 Implicit Grant |
66
+ | api_key_credentials | [`ApiKeyCredentials`](doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
67
+
68
+ The API client can be initialized as follows:
69
+
70
+ ### Code-Based Client Initialization
71
+
72
+ ```python
73
+ import logging
74
+
75
+ from swaggerpetstoreopenapi30.configuration import Environment
76
+ from swaggerpetstoreopenapi30.http.auth.api_key import ApiKeyCredentials
77
+ from swaggerpetstoreopenapi30.http.auth.petstore_auth import PetstoreAuthCredentials
78
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import LoggingConfiguration
79
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
80
+ from swaggerpetstoreopenapi30.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
81
+ from swaggerpetstoreopenapi30.models.oauth_scope_petstore_auth import OauthScopePetstoreAuth
82
+ from swaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_client import Swaggerpetstoreopenapi30Client
83
+
84
+ client = Swaggerpetstoreopenapi30Client(
85
+ petstore_auth_credentials=PetstoreAuthCredentials(
86
+ oauth_client_id='OAuthClientId',
87
+ oauth_redirect_uri='OAuthRedirectUri',
88
+ oauth_scopes=[
89
+ OauthScopePetstoreAuth.WRITEPETS,
90
+ OauthScopePetstoreAuth.READPETS
91
+ ]
92
+ ),
93
+ api_key_credentials=ApiKeyCredentials(
94
+ api_key='api_key'
95
+ ),
96
+ environment=Environment.PRODUCTION,
97
+ logging_configuration=LoggingConfiguration(
98
+ log_level=logging.INFO,
99
+ request_logging_config=RequestLoggingConfiguration(
100
+ log_body=True
101
+ ),
102
+ response_logging_config=ResponseLoggingConfiguration(
103
+ log_headers=True
104
+ )
105
+ )
106
+ )
107
+ ```
108
+
109
+ ### Environment-Based Client Initialization
110
+
111
+ ```python
112
+ from swaggerpetstoreopenapi30.swaggerpetstoreopenapi_30_client import Swaggerpetstoreopenapi30Client
113
+
114
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
115
+ client = Swaggerpetstoreopenapi30Client.from_environment(dotenv_path='/path/to/.env')
116
+ ```
117
+
118
+ See the [Environment-Based Client Initialization](doc/environment-based-client-initialization.md) section for details.
119
+
120
+ ## Environments
121
+
122
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
123
+
124
+ ### Fields
125
+
126
+ | Name | Description |
127
+ | --- | --- |
128
+ | PRODUCTION | **Default** |
129
+
130
+ ## Authorization
131
+
132
+ This API uses the following authentication schemes.
133
+
134
+ * [`petstore_auth (OAuth 2 Implicit Grant)`](doc/auth/oauth-2-implicit-grant.md)
135
+ * [`api_key (Custom Header Signature)`](doc/auth/custom-header-signature.md)
136
+
137
+ ## List of APIs
138
+
139
+ * [Pet](doc/controllers/pet.md)
140
+ * [Store](doc/controllers/store.md)
141
+ * [User](doc/controllers/user.md)
142
+
143
+ ## SDK Infrastructure
144
+
145
+ ### Configuration
146
+
147
+ * [ProxySettings](doc/proxy-settings.md)
148
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
149
+ * [AbstractLogger](doc/abstract-logger.md)
150
+ * [LoggingConfiguration](doc/logging-configuration.md)
151
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
152
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
153
+
154
+ ### HTTP
155
+
156
+ * [HttpResponse](doc/http-response.md)
157
+ * [HttpRequest](doc/http-request.md)
158
+
159
+ ### Utilities
160
+
161
+ * [ApiResponse](doc/api-response.md)
162
+ * [ApiHelper](doc/api-helper.md)
163
+ * [HttpDateTime](doc/http-date-time.md)
164
+ * [RFC3339DateTime](doc/rfc3339-date-time.md)
165
+ * [UnixDateTime](doc/unix-date-time.md)
166
+
@@ -0,0 +1,52 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.cfg
6
+ cliV1.egg-info/PKG-INFO
7
+ cliV1.egg-info/SOURCES.txt
8
+ cliV1.egg-info/dependency_links.txt
9
+ cliV1.egg-info/requires.txt
10
+ cliV1.egg-info/top_level.txt
11
+ swaggerpetstoreopenapi30/__init__.py
12
+ swaggerpetstoreopenapi30/api_helper.py
13
+ swaggerpetstoreopenapi30/configuration.py
14
+ swaggerpetstoreopenapi30/swaggerpetstoreopenapi_30_client.py
15
+ swaggerpetstoreopenapi30/apis/__init__.py
16
+ swaggerpetstoreopenapi30/apis/base_api.py
17
+ swaggerpetstoreopenapi30/apis/pet_api.py
18
+ swaggerpetstoreopenapi30/apis/store_api.py
19
+ swaggerpetstoreopenapi30/apis/user_api.py
20
+ swaggerpetstoreopenapi30/exceptions/__init__.py
21
+ swaggerpetstoreopenapi30/exceptions/api_exception.py
22
+ swaggerpetstoreopenapi30/exceptions/oauth_provider_exception.py
23
+ swaggerpetstoreopenapi30/http/__init__.py
24
+ swaggerpetstoreopenapi30/http/api_response.py
25
+ swaggerpetstoreopenapi30/http/http_call_back.py
26
+ swaggerpetstoreopenapi30/http/http_client_provider.py
27
+ swaggerpetstoreopenapi30/http/http_method_enum.py
28
+ swaggerpetstoreopenapi30/http/http_request.py
29
+ swaggerpetstoreopenapi30/http/http_response.py
30
+ swaggerpetstoreopenapi30/http/proxy_settings.py
31
+ swaggerpetstoreopenapi30/http/auth/__init__.py
32
+ swaggerpetstoreopenapi30/http/auth/api_key.py
33
+ swaggerpetstoreopenapi30/http/auth/petstore_auth.py
34
+ swaggerpetstoreopenapi30/logging/__init__.py
35
+ swaggerpetstoreopenapi30/logging/sdk_logger.py
36
+ swaggerpetstoreopenapi30/logging/configuration/__init__.py
37
+ swaggerpetstoreopenapi30/logging/configuration/api_logging_configuration.py
38
+ swaggerpetstoreopenapi30/models/__init__.py
39
+ swaggerpetstoreopenapi30/models/api_response.py
40
+ swaggerpetstoreopenapi30/models/category.py
41
+ swaggerpetstoreopenapi30/models/oauth_provider_error.py
42
+ swaggerpetstoreopenapi30/models/oauth_scope_petstore_auth.py
43
+ swaggerpetstoreopenapi30/models/oauth_token.py
44
+ swaggerpetstoreopenapi30/models/order.py
45
+ swaggerpetstoreopenapi30/models/order_status.py
46
+ swaggerpetstoreopenapi30/models/pet.py
47
+ swaggerpetstoreopenapi30/models/pet_status.py
48
+ swaggerpetstoreopenapi30/models/tag.py
49
+ swaggerpetstoreopenapi30/models/user.py
50
+ swaggerpetstoreopenapi30/utilities/__init__.py
51
+ swaggerpetstoreopenapi30/utilities/file_wrapper.py
52
+ swaggerpetstoreopenapi30/utilities/xml_utilities.py
@@ -0,0 +1,7 @@
1
+ apimatic-core>=0.2.24,~=0.2.0
2
+ apimatic-core-interfaces>=0.1.8,~=0.1.0
3
+ apimatic-requests-client-adapter>=0.1.10,~=0.1.0
4
+ python-dotenv<2.0,>=0.21
5
+
6
+ [testutils]
7
+ pytest>=7.2.2
@@ -0,0 +1,3 @@
1
+ dist
2
+ doc
3
+ swaggerpetstoreopenapi30
@@ -0,0 +1,24 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+ [project]
5
+ name = "cliV1"
6
+ description = "The official Python library for the Swagger Petstore - OpenAPI 3.0 API"
7
+ version = "0.1.4"
8
+ readme = "README.md"
9
+ keywords = []
10
+ dependencies = ["apimatic-core~=0.2.0, >= 0.2.24", "apimatic-core-interfaces~=0.1.0, >= 0.1.8", "apimatic-requests-client-adapter~=0.1.0, >= 0.1.10", "python-dotenv>=0.21, <2.0"]
11
+ classifiers = []
12
+ requires-python = ">=3.7"
13
+ [[project.authors]]
14
+ name = "CLI devs"
15
+ email = "support@cli.org"
16
+
17
+ [project.urls]
18
+ [project.optional-dependencies]
19
+ testutils = ["pytest>=7.2.2"]
20
+ [tool]
21
+ [tool.setuptools]
22
+ [tool.setuptools.packages]
23
+ [tool.setuptools.packages.find]
24
+ exclude = ["tests", "tests.*"]
cliv1-0.1.4/setup.cfg ADDED
@@ -0,0 +1,8 @@
1
+ [meta-data]
2
+ license_files =
3
+ LICENSE
4
+
5
+ [egg_info]
6
+ tag_build =
7
+ tag_date = 0
8
+
@@ -0,0 +1,13 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "api_helper",
5
+ "apis",
6
+ "configuration",
7
+ "exceptions",
8
+ "http",
9
+ "logging",
10
+ "models",
11
+ "swaggerpetstoreopenapi_30_client",
12
+ "utilities",
13
+ ]
@@ -0,0 +1,19 @@
1
+ """
2
+ swaggerpetstoreopenapi30
3
+
4
+ This file was automatically generated by APIMATIC v3.0 (
5
+ https://www.apimatic.io ).
6
+ """
7
+
8
+ from apimatic_core.utilities.api_helper import ApiHelper as CoreApiHelper
9
+
10
+
11
+ class APIHelper(CoreApiHelper):
12
+ """
13
+ A Helper Class for various functions associated with API Calls.
14
+
15
+ This class contains static methods for operations that need to be
16
+ performed during API requests. All of the methods inside this class are
17
+ static methods, there is no need to ever initialise an instance of this
18
+ class.
19
+ """
@@ -0,0 +1,8 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "base_api",
5
+ "pet_api",
6
+ "store_api",
7
+ "user_api",
8
+ ]