Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions MIGRATING.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -17,7 +17,7 @@ pip install lmnt
### Client Initialization

```python
# Old SDK (lmnt-python)
# Old SDK (v1)
import asyncio
from lmnt.api import Speech

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/lmnt/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
8 changes: 4 additions & 4 deletions src/lmnt/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down Expand Up @@ -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)

Expand All @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions src/lmnt/resources/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down Expand Up @@ -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)

Expand All @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions src/lmnt/resources/voices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down Expand Up @@ -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)

Expand All @@ -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)

Expand Down