Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
498643c
chore: update SDK settings
stainless-app[bot] Dec 8, 2025
1176765
fix(types): allow pyright to infer TypedDict types within SequenceNotStr
stainless-app[bot] Dec 9, 2025
ed8538a
chore: add missing docstrings
stainless-app[bot] Dec 9, 2025
8289fd5
feat(api): api update
stainless-app[bot] Dec 15, 2025
e45cbc5
chore(internal): add missing files argument to base client
stainless-app[bot] Dec 16, 2025
8ac179e
feat(api): api update
stainless-app[bot] Dec 16, 2025
f662b55
feat(api): api update
stainless-app[bot] Dec 16, 2025
8185ce9
chore: speedup initial import
stainless-app[bot] Dec 17, 2025
910f118
refactor(internal): switch from rye to uv
stainless-app[bot] Dec 17, 2025
77d15e3
fix: use async_to_httpx_files in patch method
stainless-app[bot] Dec 18, 2025
e3eab3d
codegen metadata
stainless-app[bot] Dec 18, 2025
051d313
codegen metadata
stainless-app[bot] Dec 19, 2025
2da8b35
codegen metadata
stainless-app[bot] Dec 19, 2025
d402a1a
chore(internal): add `--fix` argument to lint script
stainless-app[bot] Dec 19, 2025
b835b9a
codegen metadata
stainless-app[bot] Dec 19, 2025
919d3f5
codegen metadata
stainless-app[bot] Dec 20, 2025
8a4e908
codegen metadata
stainless-app[bot] Dec 21, 2025
1868524
codegen metadata
stainless-app[bot] Dec 21, 2025
06a0f2a
feat(api): api update
stainless-app[bot] Dec 22, 2025
3e0a2bf
codegen metadata
stainless-app[bot] Dec 22, 2025
2ae7bb6
codegen metadata
stainless-app[bot] Dec 23, 2025
81bb276
codegen metadata
stainless-app[bot] Dec 30, 2025
8b4b811
codegen metadata
stainless-app[bot] Dec 30, 2025
b628005
codegen metadata
stainless-app[bot] Dec 30, 2025
4477cc4
feat(api): api update
stainless-app[bot] Dec 30, 2025
072926b
feat(api): api update
stainless-app[bot] Jan 4, 2026
fdbdbd6
codegen metadata
stainless-app[bot] Jan 4, 2026
c39c859
feat(api): api update
stainless-app[bot] Jan 4, 2026
0655a13
codegen metadata
stainless-app[bot] Jan 4, 2026
2338e55
codegen metadata
stainless-app[bot] Jan 4, 2026
eff5344
feat(api): api update
stainless-app[bot] Jan 4, 2026
b4fd0e1
feat(api): api update
stainless-app[bot] Jan 5, 2026
df9724f
codegen metadata
stainless-app[bot] Jan 6, 2026
260f48a
codegen metadata
stainless-app[bot] Jan 6, 2026
85f19bb
codegen metadata
stainless-app[bot] Jan 7, 2026
7847f31
codegen metadata
stainless-app[bot] Jan 7, 2026
dd5eedf
codegen metadata
stainless-app[bot] Jan 9, 2026
642e26e
codegen metadata
stainless-app[bot] Jan 9, 2026
b8012d4
codegen metadata
stainless-app[bot] Jan 9, 2026
266e6e0
feat(api): api update
stainless-app[bot] Jan 10, 2026
28b42c2
codegen metadata
stainless-app[bot] Jan 12, 2026
b56886e
feat(api): api update
stainless-app[bot] Jan 12, 2026
237a3cc
feat(api): api update
stainless-app[bot] Jan 12, 2026
fea56de
feat(api): api update
stainless-app[bot] Jan 12, 2026
36c37d4
codegen metadata
stainless-app[bot] Jan 13, 2026
ce36233
codegen metadata
stainless-app[bot] Jan 14, 2026
7e76b57
feat(client): add support for binary request streaming
stainless-app[bot] Jan 14, 2026
483fb99
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 17, 2026
6f7ac9f
feat(api): api update
stainless-app[bot] Jan 19, 2026
b6cda06
codegen metadata
stainless-app[bot] Jan 19, 2026
4506670
codegen metadata
stainless-app[bot] Jan 20, 2026
cb57987
feat(api): api update
stainless-app[bot] Jan 22, 2026
8057dc0
chore(ci): upgrade `actions/github-script`
stainless-app[bot] Jan 24, 2026
ed63a6a
release: 0.2.0
stainless-app[bot] Jan 24, 2026
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
3 changes: 1 addition & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

USER vscode

RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
ENV PATH=/home/vscode/.rye/shims:$PATH
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"context": ".."
},

"postStartCommand": "rye sync --all-features",
"postStartCommand": "uv sync --all-extras",

"customizations": {
"vscode": {
Expand All @@ -20,7 +20,7 @@
"python.defaultInterpreterPath": ".venv/bin/python",
"python.typeChecking": "basic",
"terminal.integrated.env.linux": {
"PATH": "/home/vscode/.rye/shims:${env:PATH}"
"PATH": "${env:PATH}"
}
}
}
Expand Down
47 changes: 19 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/router-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: '0.9.13'

- name: Install dependencies
run: rye sync --all-features
run: uv sync --all-extras

- name: Run lints
run: ./scripts/lint
Expand All @@ -44,26 +41,23 @@ jobs:
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/router-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: '0.9.13'

- name: Install dependencies
run: rye sync --all-features
run: uv sync --all-extras

- name: Run build
run: rye build
run: uv build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/router-python'
id: github-oidc
uses: actions/github-script@v6
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

Expand All @@ -81,15 +75,12 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/router-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: '0.9.13'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: '0.9.13'

- name: Publish to PyPI
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'CaseMark/casedev-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Check release environment
run: |
Expand Down
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.1.0"
".": "0.2.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 84
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/casemark%2Frouter-ad4fa79d96c26eaa734cb904d736c9ec67525d846a5bb1c50553f6dd6f4facf4.yml
openapi_spec_hash: d773b18610a4d7c2696b32802e2b0e52
config_hash: 68a6f314cc841cd4a532d3a25cfc2158
configured_endpoints: 47
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/casemark%2Frouter-236ff06d35bcc19c31c56eba71291c248465c2df1807945c1e6bcbd6a51b0499.yml
openapi_spec_hash: 4a72a6cd9d52542bfed54639ff8b1002
config_hash: c41ff7a2f505881d7696da999cacb322
2 changes: 1 addition & 1 deletion Brewfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
brew "rye"
brew "uv"

45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# Changelog

## 0.2.0 (2026-01-24)

Full Changelog: [v0.1.0...v0.2.0](https://github.com/CaseMark/casedev-python/compare/v0.1.0...v0.2.0)

### Features

* **api:** api update ([cb57987](https://github.com/CaseMark/casedev-python/commit/cb57987717857d312dd3a6c733eb3d64b40d874a))
* **api:** api update ([6f7ac9f](https://github.com/CaseMark/casedev-python/commit/6f7ac9f96595e35b20e6b7f33af36532a163a9a8))
* **api:** api update ([fea56de](https://github.com/CaseMark/casedev-python/commit/fea56ded1aaf613e112aca7b6a2d6ec0fe2275f3))
* **api:** api update ([237a3cc](https://github.com/CaseMark/casedev-python/commit/237a3cc7fe524e9becf35efb45edbd4e4676db1e))
* **api:** api update ([b56886e](https://github.com/CaseMark/casedev-python/commit/b56886ec5a36b297b6421e9bfa58589471efc0f3))
* **api:** api update ([266e6e0](https://github.com/CaseMark/casedev-python/commit/266e6e03886b8a962e1d233cefb1a4e799689077))
* **api:** api update ([b4fd0e1](https://github.com/CaseMark/casedev-python/commit/b4fd0e192591735cd313c2f8a2ebd4bb585f9a22))
* **api:** api update ([eff5344](https://github.com/CaseMark/casedev-python/commit/eff53445012586d2e33b0617108d15671a6557de))
* **api:** api update ([c39c859](https://github.com/CaseMark/casedev-python/commit/c39c859876d97500712f1dd6f071cf440b61077b))
* **api:** api update ([072926b](https://github.com/CaseMark/casedev-python/commit/072926ba2fc867216cd8a87dad7f4cb5ace4d851))
* **api:** api update ([4477cc4](https://github.com/CaseMark/casedev-python/commit/4477cc432fd5f46f4a4e9776b915bfa9e458fab4))
* **api:** api update ([06a0f2a](https://github.com/CaseMark/casedev-python/commit/06a0f2a30aecf7913bf0b34367348c83c6483d72))
* **api:** api update ([f662b55](https://github.com/CaseMark/casedev-python/commit/f662b5554f1df2769e0909083fa8f56ad47f113b))
* **api:** api update ([8ac179e](https://github.com/CaseMark/casedev-python/commit/8ac179eda3b6e3e94439777d9528e2fd32e4d84b))
* **api:** api update ([8289fd5](https://github.com/CaseMark/casedev-python/commit/8289fd58159c05d5a565de08f3dd08814df0890b))
* **client:** add support for binary request streaming ([7e76b57](https://github.com/CaseMark/casedev-python/commit/7e76b572106469ad4f4b910e0b45cce5ee68fcae))


### Bug Fixes

* **types:** allow pyright to infer TypedDict types within SequenceNotStr ([1176765](https://github.com/CaseMark/casedev-python/commit/117676502d91fa5f20073851bf074f508ade4e40))
* use async_to_httpx_files in patch method ([77d15e3](https://github.com/CaseMark/casedev-python/commit/77d15e35c394f535ecbe98d2f5b7c2cd4f151489))


### Chores

* add missing docstrings ([ed8538a](https://github.com/CaseMark/casedev-python/commit/ed8538a2830c45222529a3571053a5b3cbca184c))
* **ci:** upgrade `actions/github-script` ([8057dc0](https://github.com/CaseMark/casedev-python/commit/8057dc0a5ef3a91441aac335711c2934323aa87c))
* **internal:** add `--fix` argument to lint script ([d402a1a](https://github.com/CaseMark/casedev-python/commit/d402a1a46693b9c721b7e573ee1ec54584afca37))
* **internal:** add missing files argument to base client ([e45cbc5](https://github.com/CaseMark/casedev-python/commit/e45cbc54372e2d93a6b6ec58e8e546ed6bfad117))
* **internal:** update `actions/checkout` version ([483fb99](https://github.com/CaseMark/casedev-python/commit/483fb99d0c65ce7eba40870dddfa84c7fb86966d))
* speedup initial import ([8185ce9](https://github.com/CaseMark/casedev-python/commit/8185ce9973ce7076ae88aa2dcb7868450f9ea1b5))
* update SDK settings ([498643c](https://github.com/CaseMark/casedev-python/commit/498643c394fa4d9473e76475f025e3a9ab2562d8))


### Refactors

* **internal:** switch from rye to uv ([910f118](https://github.com/CaseMark/casedev-python/commit/910f11868c852a8d33422301ec80036081dcaf5d))

## 0.1.0 (2025-12-08)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/CaseMark/casedev-python/compare/v0.0.1...v0.1.0)
Expand Down
22 changes: 11 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
## Setting up the environment

### With Rye
### With `uv`

We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
We use [uv](https://docs.astral.sh/uv/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:

```sh
$ ./scripts/bootstrap
```

Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
Or [install uv manually](https://docs.astral.sh/uv/getting-started/installation/) and run:

```sh
$ rye sync --all-features
$ uv sync --all-extras
```

You can then run scripts using `rye run python script.py` or by activating the virtual environment:
You can then run scripts using `uv run python script.py` or by manually activating the virtual environment:

```sh
# Activate the virtual environment - https://docs.python.org/3/library/venv.html#how-venvs-work
# manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
$ source .venv/bin/activate

# now you can omit the `rye run` prefix
# now you can omit the `uv run` prefix
$ python script.py
```

### Without Rye
### Without `uv`

Alternatively if you don't want to install `Rye`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
Alternatively if you don't want to install `uv`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:

```sh
$ pip install -r requirements-dev.lock
Expand All @@ -45,7 +45,7 @@ All files in the `examples/` directory are not modified by the generator and can
```py
# add an example to examples/<your-example>.py

#!/usr/bin/env -S rye run python
#!/usr/bin/env -S uv run python
```

Expand All @@ -72,7 +72,7 @@ Building this package will create two files in the `dist/` directory, a `.tar.gz
To create a distributable version of the library, all you have to do is run this command:

```sh
$ rye build
$ uv build
# or
$ python -m build
```
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Casedev
Copyright 2026 Casedev

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ The REST API documentation can be found on [docs.case.dev](https://docs.case.dev
## Installation

```sh
# install from the production repo
pip install git+ssh://git@github.com/CaseMark/casedev-python.git
# install from PyPI
pip install casedev
```

> [!NOTE]
> Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install casedev`

## Usage

The full API of this library can be found in [api.md](api.md).
Expand Down Expand Up @@ -93,8 +90,8 @@ By default, the async client uses `httpx` for HTTP requests. However, for improv
You can enable this by installing `aiohttp`:

```sh
# install from the production repo
pip install 'casedev[aiohttp] @ git+ssh://git@github.com/CaseMark/casedev-python.git'
# install from PyPI
pip install casedev[aiohttp]
```

Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
Expand Down Expand Up @@ -143,12 +140,12 @@ from casedev import Casedev

client = Casedev()

response = client.compute.v1.deploy(
entrypoint_name="entrypointName",
type="task",
config={},
response = client.format.v1.create_document(
content="content",
output_format="pdf",
options={},
)
print(response.config)
print(response.options)
```

## Handling errors
Expand Down
Loading