From 01cd799332f2191eded78348121a622298367a3c Mon Sep 17 00:00:00 2001 From: kaikato Date: Thu, 17 Jul 2025 22:25:21 +0000 Subject: [PATCH] fix: clean up links --- CONTRIBUTING.md | 4 ++-- MIGRATING.md | 6 +++--- pyproject.toml | 6 +++--- src/lmnt/_files.py | 2 +- src/lmnt/resources/accounts.py | 8 ++++---- src/lmnt/resources/speech.py | 8 ++++---- src/lmnt/resources/voices.py | 8 ++++---- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d473a16..560e83f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```sh -$ pip install git+ssh://git@github.com/stainless-sdks/lmnt-com-python.git +$ pip install git@github.com:lmnt-com/lmnt-python.git ``` Alternatively, you can build from source and install the wheel file: @@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel ### Publish with a GitHub workflow -You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/lmnt-com-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. +You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/lmnt-com/lmnt-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/MIGRATING.md b/MIGRATING.md index 45e488e..7abacad 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -1,4 +1,4 @@ -# Migrating from lmnt-python to lmnt-com-python +# Migrating from v1 to v2 This guide helps you migrate from the legacy v1 SDK to the new v2 SDK. The new SDK provides more streaming functionality, a more modern, type-safe interface with better error handling, and improved performance. @@ -17,7 +17,7 @@ pip install lmnt ### Client Initialization ```python -# Old SDK (lmnt-python) +# Old SDK (v1) import asyncio from lmnt.api import Speech @@ -26,7 +26,7 @@ async def main(): # Use speech client pass -# New SDK (lmnt-com-python) +# New SDK (v2) from lmnt import Lmnt, AsyncLmnt # Synchronous client diff --git a/pyproject.toml b/pyproject.toml index b55f9ae..f5ae058 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,8 +36,8 @@ classifiers = [ ] [project.urls] -Homepage = "https://github.com/stainless-sdks/lmnt-com-python" -Repository = "https://github.com/stainless-sdks/lmnt-com-python" +Homepage = "https://github.com/lmnt-com/lmnt-python" +Repository = "https://github.com/lmnt-com/lmnt-python" [project.optional-dependencies] aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"] @@ -126,7 +126,7 @@ path = "README.md" [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] # replace relative links with absolute links pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' -replacement = '[\1](https://github.com/stainless-sdks/lmnt-com-python/tree/main/\g<2>)' +replacement = '[\1](https://github.com/lmnt-com/lmnt-python/tree/master/\g<2>)' [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/src/lmnt/_files.py b/src/lmnt/_files.py index 4c5e37e..8c87e9b 100644 --- a/src/lmnt/_files.py +++ b/src/lmnt/_files.py @@ -34,7 +34,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None: if not is_file_content(obj): prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`" raise RuntimeError( - f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/stainless-sdks/lmnt-com-python/tree/main#file-uploads" + f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/lmnt-com/lmnt-python/tree/master#file-uploads" ) from None diff --git a/src/lmnt/resources/accounts.py b/src/lmnt/resources/accounts.py index a0c840a..657ba95 100644 --- a/src/lmnt/resources/accounts.py +++ b/src/lmnt/resources/accounts.py @@ -26,7 +26,7 @@ def with_raw_response(self) -> AccountsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/lmnt-com/lmnt-python#accessing-raw-response-data-eg-headers """ return AccountsResourceWithRawResponse(self) @@ -35,7 +35,7 @@ def with_streaming_response(self) -> AccountsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#with_streaming_response + For more information, see https://www.github.com/lmnt-com/lmnt-python#with_streaming_response """ return AccountsResourceWithStreamingResponse(self) @@ -66,7 +66,7 @@ def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/lmnt-com/lmnt-python#accessing-raw-response-data-eg-headers """ return AsyncAccountsResourceWithRawResponse(self) @@ -75,7 +75,7 @@ def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#with_streaming_response + For more information, see https://www.github.com/lmnt-com/lmnt-python#with_streaming_response """ return AsyncAccountsResourceWithStreamingResponse(self) diff --git a/src/lmnt/resources/speech.py b/src/lmnt/resources/speech.py index 04f9506..64d6e5a 100644 --- a/src/lmnt/resources/speech.py +++ b/src/lmnt/resources/speech.py @@ -40,7 +40,7 @@ def with_raw_response(self) -> SpeechResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/lmnt-com/lmnt-python#accessing-raw-response-data-eg-headers """ return SpeechResourceWithRawResponse(self) @@ -49,7 +49,7 @@ def with_streaming_response(self) -> SpeechResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#with_streaming_response + For more information, see https://www.github.com/lmnt-com/lmnt-python#with_streaming_response """ return SpeechResourceWithStreamingResponse(self) @@ -414,7 +414,7 @@ def with_raw_response(self) -> AsyncSpeechResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/lmnt-com/lmnt-python#accessing-raw-response-data-eg-headers """ return AsyncSpeechResourceWithRawResponse(self) @@ -423,7 +423,7 @@ def with_streaming_response(self) -> AsyncSpeechResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#with_streaming_response + For more information, see https://www.github.com/lmnt-com/lmnt-python#with_streaming_response """ return AsyncSpeechResourceWithStreamingResponse(self) diff --git a/src/lmnt/resources/voices.py b/src/lmnt/resources/voices.py index 0ef0411..dcd55f3 100644 --- a/src/lmnt/resources/voices.py +++ b/src/lmnt/resources/voices.py @@ -33,7 +33,7 @@ def with_raw_response(self) -> VoicesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/lmnt-com/lmnt-python#accessing-raw-response-data-eg-headers """ return VoicesResourceWithRawResponse(self) @@ -42,7 +42,7 @@ def with_streaming_response(self) -> VoicesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#with_streaming_response + For more information, see https://www.github.com/lmnt-com/lmnt-python#with_streaming_response """ return VoicesResourceWithStreamingResponse(self) @@ -292,7 +292,7 @@ def with_raw_response(self) -> AsyncVoicesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/lmnt-com/lmnt-python#accessing-raw-response-data-eg-headers """ return AsyncVoicesResourceWithRawResponse(self) @@ -301,7 +301,7 @@ def with_streaming_response(self) -> AsyncVoicesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/lmnt-com-python#with_streaming_response + For more information, see https://www.github.com/lmnt-com/lmnt-python#with_streaming_response """ return AsyncVoicesResourceWithStreamingResponse(self)