diff --git a/README.md b/README.md index 6b65ce4..3e51f31 100755 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ pip install git+https://github.com/speakeasy-sdks/test-repo-test2.git ```python import test - s = test.Test() @@ -29,7 +28,7 @@ if res.status_code == 200: ## Available Resources and Operations -### [pets](docs/sdks/pets/README.md) +### [.pets](docs/sdks/pets/README.md) * [create_pets](docs/sdks/pets/README.md#create_pets) - Create a pet * [list_pets](docs/sdks/pets/README.md#list_pets) - List all pets @@ -60,8 +59,6 @@ Here's an example of one such pagination call: # Error Handling Handling errors in your SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type. - - @@ -79,13 +76,11 @@ You can override the default server globally by passing a server index to the `s For example: - ```python import test - s = test.Test( - server_idx=0 + server_idx=0, ) @@ -101,13 +96,11 @@ if res.status_code == 200: The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: - ```python import test - s = test.Test( - server_url="http://petstore.swagger.io/v1" + server_url="http://petstore.swagger.io/v1", ) @@ -137,8 +130,6 @@ http_client = requests.Session() http_client.headers.update({'x-custom-header': 'someValue'}) s = test.Test(client: http_client) ``` - - diff --git a/RELEASES.md b/RELEASES.md index 9749528..3e51071 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -174,4 +174,12 @@ Based on: - OpenAPI Doc 1.0.0 - Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v0.9.1] . \ No newline at end of file +- [python v0.9.1] . + +## 2023-11-07 01:15:30 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.114.1 (2.181.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.10.0] . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 13b5750..c47d167 100755 --- a/USAGE.md +++ b/USAGE.md @@ -4,7 +4,6 @@ ```python import test - s = test.Test() diff --git a/docs/sdks/pets/README.md b/docs/sdks/pets/README.md index 6a00ca3..6cfd398 100755 --- a/docs/sdks/pets/README.md +++ b/docs/sdks/pets/README.md @@ -1,5 +1,5 @@ # Pets -(*pets*) +(*.pets*) ### Available Operations @@ -16,7 +16,6 @@ Create a pet ```python import test - s = test.Test() diff --git a/files.gen b/files.gen index a96d4f4..15d2f9e 100755 --- a/files.gen +++ b/files.gen @@ -4,19 +4,19 @@ src/test/sdk.py pylintrc setup.py src/test/__init__.py -src/test/models/__init__.py -src/test/models/errors/sdkerror.py src/test/utils/__init__.py src/test/utils/retries.py src/test/utils/utils.py +src/test/models/errors/sdkerror.py src/test/models/operations/createpets.py src/test/models/operations/listpets.py src/test/models/operations/showpetbyid.py -src/test/models/operations/__init__.py src/test/models/shared/error.py src/test/models/shared/pet.py -src/test/models/shared/__init__.py +src/test/models/__init__.py src/test/models/errors/__init__.py +src/test/models/operations/__init__.py +src/test/models/shared/__init__.py USAGE.md docs/models/operations/createpetsresponse.md docs/models/operations/listpetsrequest.md diff --git a/gen.yaml b/gen.yaml index 846a87f..c474b37 100644 --- a/gen.yaml +++ b/gen.yaml @@ -2,27 +2,30 @@ configVersion: 1.0.0 management: docChecksum: 2516596125ef223fbbef6c434d22eaac docVersion: 1.0.0 - speakeasyVersion: 1.109.0 - generationVersion: 2.173.0 + speakeasyVersion: 1.114.1 + generationVersion: 2.181.1 generation: - comments: - disableComments: false - omitDescriptionIfSummaryPresent: false - baseServerURL: "" - repoURL: https://github.com/speakeasy-sdks/test-repo-test2.git + comments: {} sdkClassName: test - singleTagPerOp: false - tagNamespacingDisabled: false + repoURL: https://github.com/speakeasy-sdks/test-repo-test2.git features: python: - core: 3.3.1 + core: 4.1.0 globalServerURLs: 2.82.0 python: - version: 0.9.1 + version: 0.10.0 author: my-test clientServerStatusCodesAsErrors: true description: Python Client SDK Generated by Speakeasy flattenGlobalSecurity: true + imports: + option: openapi + paths: + callbacks: models/callbacks + errors: models/errors + operations: models/operations + shared: models/shared + webhooks: models/webhooks installationURL: https://github.com/speakeasy-sdks/test-repo-test2.git maxMethodParams: 0 packageName: test diff --git a/setup.py b/setup.py index bcaa23f..4581758 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="test", - version="0.9.1", + version="0.10.0", author="my-test", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/src/test/models/__init__.py b/src/test/models/__init__.py index 36628d6..722bb99 100755 --- a/src/test/models/__init__.py +++ b/src/test/models/__init__.py @@ -1,3 +1,4 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -# __init__.py + +# package diff --git a/src/test/models/errors/__init__.py b/src/test/models/errors/__init__.py index cfd8484..88d0916 100755 --- a/src/test/models/errors/__init__.py +++ b/src/test/models/errors/__init__.py @@ -1,4 +1,5 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -from .sdkerror import SDKError +from .sdkerror import * + __all__ = ["SDKError"] diff --git a/src/test/models/operations/createpets.py b/src/test/models/operations/createpets.py index 94c50ca..efdbb08 100755 --- a/src/test/models/operations/createpets.py +++ b/src/test/models/operations/createpets.py @@ -3,7 +3,7 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import error as shared_error +from ...models.shared import error as shared_error from typing import Optional diff --git a/src/test/models/operations/listpets.py b/src/test/models/operations/listpets.py index b7169d5..03bb63f 100755 --- a/src/test/models/operations/listpets.py +++ b/src/test/models/operations/listpets.py @@ -3,8 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import error as shared_error -from ..shared import pet as shared_pet +from ...models.shared import error as shared_error +from ...models.shared import pet as shared_pet from typing import Dict, List, Optional diff --git a/src/test/models/operations/showpetbyid.py b/src/test/models/operations/showpetbyid.py index ab95010..f1d02ca 100755 --- a/src/test/models/operations/showpetbyid.py +++ b/src/test/models/operations/showpetbyid.py @@ -3,8 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import error as shared_error -from ..shared import pet as shared_pet +from ...models.shared import error as shared_error +from ...models.shared import pet as shared_pet from typing import Optional diff --git a/src/test/sdkconfiguration.py b/src/test/sdkconfiguration.py index b9d522b..3175500 100755 --- a/src/test/sdkconfiguration.py +++ b/src/test/sdkconfiguration.py @@ -20,9 +20,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '0.9.1' - gen_version: str = '2.173.0' - user_agent: str = 'speakeasy-sdk/python 0.9.1 2.173.0 1.0.0 test' + sdk_version: str = '0.10.0' + gen_version: str = '2.181.1' + user_agent: str = 'speakeasy-sdk/python 0.10.0 2.181.1 1.0.0 test' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: