Skip to content

Commit 57f17b0

Browse files
authored
Merge pull request #2 from isaacus-dev/release-please--branches--main--changes--next
release: 0.1.0-alpha.1
2 parents 2863c6c + ebbff81 commit 57f17b0

21 files changed

+251
-363
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ USER vscode
66
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
77
ENV PATH=/home/vscode/.rye/shims:$PATH
88

9-
RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
9+
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc

.devcontainer/devcontainer.json

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
}
2525
}
2626
}
27+
},
28+
"features": {
29+
"ghcr.io/devcontainers/features/node:1": {}
2730
}
2831

2932
// Features to add to the dev container. More info: https://containers.dev/features.

.github/workflows/create-releases.yml

-38
This file was deleted.

.github/workflows/publish-pypi.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# workflow for re-running publishing to PyPI in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/isaacus-dev/isaacus-python/actions/workflows/publish-pypi.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/isaacus-dev/isaacus-python/actions/workflows/publish-pypi.yml
34
name: Publish PyPI
45
on:
56
workflow_dispatch:
67

8+
release:
9+
types: [published]
10+
711
jobs:
812
publish:
913
name: publish

.github/workflows/release-doctor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ jobs:
1818
run: |
1919
bash ./bin/check-release-environment
2020
env:
21-
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
2221
PYPI_TOKEN: ${{ secrets.ISAACUS_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.0.1-alpha.0"
2+
".": "0.1.0-alpha.1"
33
}

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-874c20d494cb37fc2f1c78b089cf16065bd2910c0fcb4dcc89cc55b73a3d6fc4.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-5f5feba7202b37bb046fcbe0389f011c14816d03a3d5c2a008d9736bff840f1a.yml

CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Changelog
2+
3+
## 0.1.0-alpha.1 (2025-03-04)
4+
5+
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/isaacus-dev/isaacus-python/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6+
7+
### Features
8+
9+
* added latest OpenAPI specification ([#1](https://github.com/isaacus-dev/isaacus-python/issues/1)) ([ee4cdd8](https://github.com/isaacus-dev/isaacus-python/commit/ee4cdd8df312a81d4a46da568ff2a37d55127f28))
10+
* added latest OpenAPI specification ([#3](https://github.com/isaacus-dev/isaacus-python/issues/3)) ([e6234c7](https://github.com/isaacus-dev/isaacus-python/commit/e6234c71a201beb74666d0ef7f7077a686f4a690))
11+
* **api:** added latest OpenAPI specification ([#13](https://github.com/isaacus-dev/isaacus-python/issues/13)) ([822a5b5](https://github.com/isaacus-dev/isaacus-python/commit/822a5b561b88de0a7aaca05f786bffaeab16371a))
12+
* **api:** added latest OpenAPI specification ([#4](https://github.com/isaacus-dev/isaacus-python/issues/4)) ([8841b6a](https://github.com/isaacus-dev/isaacus-python/commit/8841b6a28bde24db83c08a864ab3d8aef9007cfa))
13+
* **api:** added latest OpenAPI specification ([#5](https://github.com/isaacus-dev/isaacus-python/issues/5)) ([36f1cd8](https://github.com/isaacus-dev/isaacus-python/commit/36f1cd8f3ebb1abaedbe8b0a4e19c8747011f9f3))
14+
* **api:** added latest OpenAPI specification ([#8](https://github.com/isaacus-dev/isaacus-python/issues/8)) ([0ba3728](https://github.com/isaacus-dev/isaacus-python/commit/0ba3728aa0c7509e344f1c5029ecc54ade403266))
15+
* **api:** update via SDK Studio ([2863c6c](https://github.com/isaacus-dev/isaacus-python/commit/2863c6c6f72258b53649f63cc8cb2e4f480f4818))
16+
* **client:** allow passing `NotGiven` for body ([#6](https://github.com/isaacus-dev/isaacus-python/issues/6)) ([539267b](https://github.com/isaacus-dev/isaacus-python/commit/539267b95ab1a193db15ba46dd2fed6d67b994c9))
17+
18+
19+
### Bug Fixes
20+
21+
* asyncify on non-asyncio runtimes ([268752f](https://github.com/isaacus-dev/isaacus-python/commit/268752f5baa48fff9ebd30ed739cc5765f43dab1))
22+
* **client:** mark some request bodies as optional ([539267b](https://github.com/isaacus-dev/isaacus-python/commit/539267b95ab1a193db15ba46dd2fed6d67b994c9))
23+
24+
25+
### Chores
26+
27+
* **docs:** update client docstring ([#11](https://github.com/isaacus-dev/isaacus-python/issues/11)) ([bb860bc](https://github.com/isaacus-dev/isaacus-python/commit/bb860bc18a916cd707b709bff17e2510973623b5))
28+
* **internal:** fix devcontainers setup ([#7](https://github.com/isaacus-dev/isaacus-python/issues/7)) ([23046c4](https://github.com/isaacus-dev/isaacus-python/commit/23046c49e639ee760e9206e99c3e13baaf5d6b30))
29+
* **internal:** properly set __pydantic_private__ ([#9](https://github.com/isaacus-dev/isaacus-python/issues/9)) ([16c7d5e](https://github.com/isaacus-dev/isaacus-python/commit/16c7d5e011fbb479ff0ba5bc850fc76cabd682cd))
30+
* **internal:** remove unused http client options forwarding ([#12](https://github.com/isaacus-dev/isaacus-python/issues/12)) ([af1ee9e](https://github.com/isaacus-dev/isaacus-python/commit/af1ee9e77d51cbd053d3e48e9adf80f243fb19a5))
31+
* **internal:** update client tests ([ac65c8f](https://github.com/isaacus-dev/isaacus-python/commit/ac65c8f3b45159cd75f14466249e524679c1481d))
32+
* update SDK settings ([#14](https://github.com/isaacus-dev/isaacus-python/issues/14)) ([4d87849](https://github.com/isaacus-dev/isaacus-python/commit/4d878496b4ae774ec92e4bc08f26a708b698685d))
33+
34+
35+
### Documentation
36+
37+
* update URLs from stainlessapi.com to stainless.com ([#10](https://github.com/isaacus-dev/isaacus-python/issues/10)) ([7e625b2](https://github.com/isaacus-dev/isaacus-python/commit/7e625b262c4e480379ddbe5bd2ca983f83c90988))

README.md

+22-25
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Isaacus Python library provides convenient access to the Isaacus REST API fr
66
application. The library includes type definitions for all request params and response fields,
77
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
88

9-
It is generated with [Stainless](https://www.stainlessapi.com/).
9+
It is generated with [Stainless](https://www.stainless.com/).
1010

1111
## Documentation
1212

@@ -15,13 +15,10 @@ The REST API documentation can be found on [docs.isaacus.com](https://docs.isaac
1515
## Installation
1616

1717
```sh
18-
# install from the production repo
19-
pip install git+ssh://[email protected]/isaacus-dev/isaacus-python.git
18+
# install from PyPI
19+
pip install --pre isaacus
2020
```
2121

22-
> [!NOTE]
23-
> Once this package is [published to PyPI](https://app.stainlessapi.com/docs/guides/publish), this will become: `pip install --pre isaacus`
24-
2522
## Usage
2623

2724
The full API of this library can be found in [api.md](api.md).
@@ -31,21 +28,21 @@ import os
3128
from isaacus import Isaacus
3229

3330
client = Isaacus(
34-
bearer_token=os.environ.get("ISAACUS_API_KEY"), # This is the default and can be omitted
31+
api_key=os.environ.get("ISAACUS_API_KEY"), # This is the default and can be omitted
3532
)
3633

3734
universal_classification = client.classifications.universal.create(
38-
model="kanon-uniclassifier",
35+
model="kanon-universal-classifier",
3936
query="This is a confidentiality clause.",
40-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
37+
text="I agree not to tell anyone about the document.",
4138
)
4239
print(universal_classification.chunks)
4340
```
4441

45-
While you can provide a `bearer_token` keyword argument,
42+
While you can provide an `api_key` keyword argument,
4643
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
47-
to add `ISAACUS_API_KEY="My Bearer Token"` to your `.env` file
48-
so that your Bearer Token is not stored in source control.
44+
to add `ISAACUS_API_KEY="My API Key"` to your `.env` file
45+
so that your API Key is not stored in source control.
4946

5047
## Async usage
5148

@@ -57,15 +54,15 @@ import asyncio
5754
from isaacus import AsyncIsaacus
5855

5956
client = AsyncIsaacus(
60-
bearer_token=os.environ.get("ISAACUS_API_KEY"), # This is the default and can be omitted
57+
api_key=os.environ.get("ISAACUS_API_KEY"), # This is the default and can be omitted
6158
)
6259

6360

6461
async def main() -> None:
6562
universal_classification = await client.classifications.universal.create(
66-
model="kanon-uniclassifier",
63+
model="kanon-universal-classifier",
6764
query="This is a confidentiality clause.",
68-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
65+
text="I agree not to tell anyone about the document.",
6966
)
7067
print(universal_classification.chunks)
7168

@@ -101,9 +98,9 @@ client = Isaacus()
10198

10299
try:
103100
client.classifications.universal.create(
104-
model="kanon-uniclassifier",
101+
model="kanon-universal-classifier",
105102
query="This is a confidentiality clause.",
106-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
103+
text="I agree not to tell anyone about the document.",
107104
)
108105
except isaacus.APIConnectionError as e:
109106
print("The server could not be reached")
@@ -148,9 +145,9 @@ client = Isaacus(
148145

149146
# Or, configure per-request:
150147
client.with_options(max_retries=5).classifications.universal.create(
151-
model="kanon-uniclassifier",
148+
model="kanon-universal-classifier",
152149
query="This is a confidentiality clause.",
153-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
150+
text="I agree not to tell anyone about the document.",
154151
)
155152
```
156153

@@ -175,9 +172,9 @@ client = Isaacus(
175172

176173
# Override per-request:
177174
client.with_options(timeout=5.0).classifications.universal.create(
178-
model="kanon-uniclassifier",
175+
model="kanon-universal-classifier",
179176
query="This is a confidentiality clause.",
180-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
177+
text="I agree not to tell anyone about the document.",
181178
)
182179
```
183180

@@ -220,9 +217,9 @@ from isaacus import Isaacus
220217

221218
client = Isaacus()
222219
response = client.classifications.universal.with_raw_response.create(
223-
model="kanon-uniclassifier",
220+
model="kanon-universal-classifier",
224221
query="This is a confidentiality clause.",
225-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
222+
text="I agree not to tell anyone about the document.",
226223
)
227224
print(response.headers.get('X-My-Header'))
228225

@@ -242,9 +239,9 @@ To stream the response body, use `.with_streaming_response` instead, which requi
242239

243240
```python
244241
with client.classifications.universal.with_streaming_response.create(
245-
model="kanon-uniclassifier",
242+
model="kanon-universal-classifier",
246243
query="This is a confidentiality clause.",
247-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
244+
text="I agree not to tell anyone about the document.",
248245
) as response:
249246
print(response.headers.get("X-My-Header"))
250247

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

bin/check-release-environment

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
errors=()
44

5-
if [ -z "${STAINLESS_API_KEY}" ]; then
6-
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7-
fi
8-
95
if [ -z "${PYPI_TOKEN}" ]; then
106
errors+=("The ISAACUS_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
117
fi

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "isaacus"
3-
version = "0.0.1-alpha.0"
3+
version = "0.1.0-alpha.1"
44
description = "The official Python library for the isaacus API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)