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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.0.0"
".": "3.0.1-rc1"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 30
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai/writer-275de8f7afa2d37404ebebc082dda35e70ab94437de270b5bc6e2fdc94c9fdae.yml
openapi_spec_hash: 4d4a9ba232d19a6180e6d4a7d5566103
config_hash: 8701b1a467238f1afdeceeb7feb1adc6
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai/writer-c998c7cab6c43a698deb813179849e0379db494eef2a34f751616486d6bb0e25.yml
openapi_spec_hash: aba09dae66d0e96b08ea2ac4e9113f09
config_hash: 85d9c08b6b71fad459240bc6f401eac7
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 3.0.1-rc1 (2026-07-13)

Full Changelog: [v3.0.0...v3.0.1-rc1](https://github.com/writer/writer-python/compare/v3.0.0...v3.0.1-rc1)

### Chores

* **deps:** bump idna in the uv group across 1 directory ([#259](https://github.com/writer/writer-python/issues/259)) ([a01835e](https://github.com/writer/writer-python/commit/a01835e46b00ae3c13497bc816fa59dba5079ea2))


### Documentation

* **api:** updates to API spec ([3215a51](https://github.com/writer/writer-python/commit/3215a513ababca91f8ba90df70bd4e2f991f5d60))

## 3.0.0 (2026-06-02)

Full Changelog: [v3.0.0-rc1...v3.0.0](https://github.com/writer/writer-python/compare/v3.0.0-rc1...v3.0.0)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To install the package from PyPI, use `pip`:

```sh
# install from PyPI
pip install writer-sdk
pip install --pre writer-sdk
```

## Prequisites
Expand Down Expand Up @@ -125,7 +125,7 @@ You can enable this by installing `aiohttp`:

```sh
# install from PyPI
pip install writer-sdk[aiohttp]
pip install --pre writer-sdk[aiohttp]
```

Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
Expand Down
12 changes: 0 additions & 12 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,6 @@ Methods:
- <code title="post /v1/tools/pdf-parser/{file_id}">client.tools.<a href="./src/writerai/resources/tools.py">parse_pdf</a>(file_id, \*\*<a href="src/writerai/types/tool_parse_pdf_params.py">params</a>) -> <a href="./src/writerai/types/tool_parse_pdf_response.py">ToolParsePdfResponse</a></code>
- <code title="post /v1/tools/web-search">client.tools.<a href="./src/writerai/resources/tools.py">web_search</a>(\*\*<a href="src/writerai/types/tool_web_search_params.py">params</a>) -> <a href="./src/writerai/types/tool_web_search_response.py">ToolWebSearchResponse</a></code>

# Translation

Types:

```python
from writerai.types import TranslationRequest, TranslationResponse
```

Methods:

- <code title="post /v1/translation">client.translation.<a href="./src/writerai/resources/translation.py">translate</a>(\*\*<a href="src/writerai/types/translation_translate_params.py">params</a>) -> <a href="./src/writerai/types/translation_response.py">TranslationResponse</a></code>

# Vision

Types:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "writer-sdk"
version = "3.0.0"
version = "3.0.1-rc1"
description = "The official Python library for the writer API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
39 changes: 1 addition & 38 deletions src/writerai/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@
)

if TYPE_CHECKING:
from .resources import chat, files, tools, graphs, models, vision, completions, translation, applications
from .resources import chat, files, tools, graphs, models, vision, completions, applications
from .resources.chat import ChatResource, AsyncChatResource
from .resources.files import FilesResource, AsyncFilesResource
from .resources.tools import ToolsResource, AsyncToolsResource
from .resources.graphs import GraphsResource, AsyncGraphsResource
from .resources.models import ModelsResource, AsyncModelsResource
from .resources.vision import VisionResource, AsyncVisionResource
from .resources.completions import CompletionsResource, AsyncCompletionsResource
from .resources.translation import TranslationResource, AsyncTranslationResource
from .resources.applications.applications import ApplicationsResource, AsyncApplicationsResource

__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Writer", "AsyncWriter", "Client", "AsyncClient"]
Expand Down Expand Up @@ -158,12 +157,6 @@ def tools(self) -> ToolsResource:

return ToolsResource(self)

@cached_property
def translation(self) -> TranslationResource:
from .resources.translation import TranslationResource

return TranslationResource(self)

@cached_property
def vision(self) -> VisionResource:
from .resources.vision import VisionResource
Expand Down Expand Up @@ -391,12 +384,6 @@ def tools(self) -> AsyncToolsResource:

return AsyncToolsResource(self)

@cached_property
def translation(self) -> AsyncTranslationResource:
from .resources.translation import AsyncTranslationResource

return AsyncTranslationResource(self)

@cached_property
def vision(self) -> AsyncVisionResource:
from .resources.vision import AsyncVisionResource
Expand Down Expand Up @@ -564,12 +551,6 @@ def tools(self) -> tools.ToolsResourceWithRawResponse:

return ToolsResourceWithRawResponse(self._client.tools)

@cached_property
def translation(self) -> translation.TranslationResourceWithRawResponse:
from .resources.translation import TranslationResourceWithRawResponse

return TranslationResourceWithRawResponse(self._client.translation)

@cached_property
def vision(self) -> vision.VisionResourceWithRawResponse:
from .resources.vision import VisionResourceWithRawResponse
Expand Down Expand Up @@ -625,12 +606,6 @@ def tools(self) -> tools.AsyncToolsResourceWithRawResponse:

return AsyncToolsResourceWithRawResponse(self._client.tools)

@cached_property
def translation(self) -> translation.AsyncTranslationResourceWithRawResponse:
from .resources.translation import AsyncTranslationResourceWithRawResponse

return AsyncTranslationResourceWithRawResponse(self._client.translation)

@cached_property
def vision(self) -> vision.AsyncVisionResourceWithRawResponse:
from .resources.vision import AsyncVisionResourceWithRawResponse
Expand Down Expand Up @@ -686,12 +661,6 @@ def tools(self) -> tools.ToolsResourceWithStreamingResponse:

return ToolsResourceWithStreamingResponse(self._client.tools)

@cached_property
def translation(self) -> translation.TranslationResourceWithStreamingResponse:
from .resources.translation import TranslationResourceWithStreamingResponse

return TranslationResourceWithStreamingResponse(self._client.translation)

@cached_property
def vision(self) -> vision.VisionResourceWithStreamingResponse:
from .resources.vision import VisionResourceWithStreamingResponse
Expand Down Expand Up @@ -747,12 +716,6 @@ def tools(self) -> tools.AsyncToolsResourceWithStreamingResponse:

return AsyncToolsResourceWithStreamingResponse(self._client.tools)

@cached_property
def translation(self) -> translation.AsyncTranslationResourceWithStreamingResponse:
from .resources.translation import AsyncTranslationResourceWithStreamingResponse

return AsyncTranslationResourceWithStreamingResponse(self._client.translation)

@cached_property
def vision(self) -> vision.AsyncVisionResourceWithStreamingResponse:
from .resources.vision import AsyncVisionResourceWithStreamingResponse
Expand Down
2 changes: 1 addition & 1 deletion src/writerai/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "writerai"
__version__ = "3.0.0" # x-release-please-version
__version__ = "3.0.1-rc1" # x-release-please-version
14 changes: 0 additions & 14 deletions src/writerai/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@
CompletionsResourceWithStreamingResponse,
AsyncCompletionsResourceWithStreamingResponse,
)
from .translation import (
TranslationResource,
AsyncTranslationResource,
TranslationResourceWithRawResponse,
AsyncTranslationResourceWithRawResponse,
TranslationResourceWithStreamingResponse,
AsyncTranslationResourceWithStreamingResponse,
)
from .applications import (
ApplicationsResource,
AsyncApplicationsResource,
Expand Down Expand Up @@ -116,12 +108,6 @@
"AsyncToolsResourceWithRawResponse",
"ToolsResourceWithStreamingResponse",
"AsyncToolsResourceWithStreamingResponse",
"TranslationResource",
"AsyncTranslationResource",
"TranslationResourceWithRawResponse",
"AsyncTranslationResourceWithRawResponse",
"TranslationResourceWithStreamingResponse",
"AsyncTranslationResourceWithStreamingResponse",
"VisionResource",
"AsyncVisionResource",
"VisionResourceWithRawResponse",
Expand Down
Loading