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 @@
{
".": "0.3.0"
".": "0.3.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1
configured_endpoints: 2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-861e8a85f0fb73cf4b7fc6c2b27722072ff33109459e90c17be24af15dfcbd0c.yml
openapi_spec_hash: 644a0383600633ee604bb1e5b9ca025d
config_hash: 8a781867f31df68b9c6fba04c165c647
config_hash: 2bc262108dc3b065c16da5bb85c1e282
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.3.1 (2025-04-01)

Full Changelog: [v0.3.0...v0.3.1](https://github.com/isaacus-dev/isaacus-python/compare/v0.3.0...v0.3.1)

### Bug Fixes

* **stainless:** added missing reranking endpoint to SDK API ([#50](https://github.com/isaacus-dev/isaacus-python/issues/50)) ([65bcc7c](https://github.com/isaacus-dev/isaacus-python/commit/65bcc7c274dc5609c1537e417c75e6b9942ac8fc))

## 0.3.0 (2025-04-01)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.2.0...v0.3.0)
Expand Down
12 changes: 12 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,15 @@ from isaacus.types.classifications import UniversalClassification
Methods:

- <code title="post /classifications/universal">client.classifications.universal.<a href="./src/isaacus/resources/classifications/universal.py">create</a>(\*\*<a href="src/isaacus/types/classifications/universal_create_params.py">params</a>) -> <a href="./src/isaacus/types/classifications/universal_classification.py">UniversalClassification</a></code>

# Rerankings

Types:

```python
from isaacus.types import Reranking
```

Methods:

- <code title="post /rerankings">client.rerankings.<a href="./src/isaacus/resources/rerankings.py">create</a>(\*\*<a href="src/isaacus/types/reranking_create_params.py">params</a>) -> <a href="./src/isaacus/types/reranking.py">Reranking</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "isaacus"
version = "0.3.0"
version = "0.3.1"
description = "The official Python library for the isaacus API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
9 changes: 9 additions & 0 deletions src/isaacus/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
get_async_library,
)
from ._version import __version__
from .resources import rerankings
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
from ._exceptions import IsaacusError, APIStatusError
from ._base_client import (
Expand All @@ -38,6 +39,7 @@

class Isaacus(SyncAPIClient):
classifications: classifications.ClassificationsResource
rerankings: rerankings.RerankingsResource
with_raw_response: IsaacusWithRawResponse
with_streaming_response: IsaacusWithStreamedResponse

Expand Down Expand Up @@ -96,6 +98,7 @@ def __init__(
)

self.classifications = classifications.ClassificationsResource(self)
self.rerankings = rerankings.RerankingsResource(self)
self.with_raw_response = IsaacusWithRawResponse(self)
self.with_streaming_response = IsaacusWithStreamedResponse(self)

Expand Down Expand Up @@ -206,6 +209,7 @@ def _make_status_error(

class AsyncIsaacus(AsyncAPIClient):
classifications: classifications.AsyncClassificationsResource
rerankings: rerankings.AsyncRerankingsResource
with_raw_response: AsyncIsaacusWithRawResponse
with_streaming_response: AsyncIsaacusWithStreamedResponse

Expand Down Expand Up @@ -264,6 +268,7 @@ def __init__(
)

self.classifications = classifications.AsyncClassificationsResource(self)
self.rerankings = rerankings.AsyncRerankingsResource(self)
self.with_raw_response = AsyncIsaacusWithRawResponse(self)
self.with_streaming_response = AsyncIsaacusWithStreamedResponse(self)

Expand Down Expand Up @@ -375,21 +380,25 @@ def _make_status_error(
class IsaacusWithRawResponse:
def __init__(self, client: Isaacus) -> None:
self.classifications = classifications.ClassificationsResourceWithRawResponse(client.classifications)
self.rerankings = rerankings.RerankingsResourceWithRawResponse(client.rerankings)


class AsyncIsaacusWithRawResponse:
def __init__(self, client: AsyncIsaacus) -> None:
self.classifications = classifications.AsyncClassificationsResourceWithRawResponse(client.classifications)
self.rerankings = rerankings.AsyncRerankingsResourceWithRawResponse(client.rerankings)


class IsaacusWithStreamedResponse:
def __init__(self, client: Isaacus) -> None:
self.classifications = classifications.ClassificationsResourceWithStreamingResponse(client.classifications)
self.rerankings = rerankings.RerankingsResourceWithStreamingResponse(client.rerankings)


class AsyncIsaacusWithStreamedResponse:
def __init__(self, client: AsyncIsaacus) -> None:
self.classifications = classifications.AsyncClassificationsResourceWithStreamingResponse(client.classifications)
self.rerankings = rerankings.AsyncRerankingsResourceWithStreamingResponse(client.rerankings)


Client = Isaacus
Expand Down
2 changes: 1 addition & 1 deletion src/isaacus/_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__ = "isaacus"
__version__ = "0.3.0" # x-release-please-version
__version__ = "0.3.1" # x-release-please-version
14 changes: 14 additions & 0 deletions src/isaacus/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .rerankings import (
RerankingsResource,
AsyncRerankingsResource,
RerankingsResourceWithRawResponse,
AsyncRerankingsResourceWithRawResponse,
RerankingsResourceWithStreamingResponse,
AsyncRerankingsResourceWithStreamingResponse,
)
from .classifications import (
ClassificationsResource,
AsyncClassificationsResource,
Expand All @@ -16,4 +24,10 @@
"AsyncClassificationsResourceWithRawResponse",
"ClassificationsResourceWithStreamingResponse",
"AsyncClassificationsResourceWithStreamingResponse",
"RerankingsResource",
"AsyncRerankingsResource",
"RerankingsResourceWithRawResponse",
"AsyncRerankingsResourceWithRawResponse",
"RerankingsResourceWithStreamingResponse",
"AsyncRerankingsResourceWithStreamingResponse",
]
Loading