Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
a8df163
Initial commit
stainless-sdks[bot] Oct 13, 2024
ea9d251
feat(api): api update
stainless-bot Oct 13, 2024
3020053
feat(api): api update
stainless-bot Oct 13, 2024
c79e481
feat(api): api update
stainless-bot Oct 13, 2024
33b60fb
feat(api): api update
stainless-bot Oct 16, 2024
eb969b4
feat(api): api update
stainless-bot Oct 17, 2024
45dd0c8
feat(api): api update
stainless-bot Oct 17, 2024
3cebe31
feat(api): api update
stainless-bot Nov 1, 2024
a000cdb
feat(api): manual updates
stainless-bot Nov 1, 2024
cf11479
feat(api): api update
stainless-bot Nov 4, 2024
f299d7e
feat(api): manual updates
stainless-bot Nov 4, 2024
352e613
chore: rebuild project due to codegen change
stainless-bot Nov 6, 2024
7b9b6d2
chore: rebuild project due to codegen change
stainless-bot Nov 12, 2024
50ed388
feat(api): api update
stainless-bot Nov 15, 2024
276697f
chore: rebuild project due to codegen change
stainless-bot Nov 18, 2024
fa5935b
chore: rebuild project due to codegen change
stainless-bot Nov 18, 2024
03cbea2
codegen metadata
stainless-bot Nov 20, 2024
fabe0ae
chore(internal): fix compat model_dump method when warnings are passed
stainless-bot Nov 23, 2024
7726d75
docs: add info log level to readme
stainless-bot Nov 23, 2024
80dbf03
chore: remove now unused `cached-property` dep
stainless-bot Nov 26, 2024
3fbec56
chore(internal): exclude mypy from running on tests
stainless-bot Nov 28, 2024
8d804cd
fix(client): compat with new httpx 0.28.0 release
stainless-bot Nov 28, 2024
0694d79
feat(api): api update
stainless-bot Dec 3, 2024
89681da
chore(internal): bump pyright
stainless-bot Dec 3, 2024
0f2da32
chore: make the `Omit` type public
stainless-bot Dec 4, 2024
b12076f
feat(api): api update
stainless-app[bot] Dec 5, 2024
afbd11d
feat(api): api update
stainless-app[bot] Dec 7, 2024
f12a797
chore(internal): bump pydantic dependency
stainless-app[bot] Dec 10, 2024
f598060
docs(readme): fix http client proxies example
stainless-app[bot] Dec 10, 2024
06c99f7
feat(api): api update
stainless-app[bot] Dec 10, 2024
4de0c00
feat(api): api update
stainless-app[bot] Dec 12, 2024
1cd6248
chore(internal): bump pyright
stainless-app[bot] Dec 13, 2024
35d3d2d
chore(internal): add support for TypeAliasType
stainless-app[bot] Dec 13, 2024
5e34e65
feat(api): api update
stainless-app[bot] Dec 13, 2024
3322411
chore(internal): codegen related update
stainless-app[bot] Dec 14, 2024
edb7f0d
chore(internal): codegen related update
stainless-app[bot] Dec 17, 2024
62ed775
chore(internal): codegen related update
stainless-app[bot] Dec 17, 2024
9198bfe
docs(readme): example snippet for client context manager
stainless-app[bot] Dec 17, 2024
4a6fa02
chore(internal): fix some typos
stainless-app[bot] Dec 18, 2024
a2d95d7
codegen metadata
stainless-app[bot] Dec 18, 2024
fc0ebaa
feat(api): api update
stainless-app[bot] Jan 2, 2025
5129330
chore(internal): codegen related update
stainless-app[bot] Jan 7, 2025
1f18f9a
chore(internal): bump httpx dependency
stainless-app[bot] Jan 8, 2025
12ad847
fix(client): only call .close() when needed
stainless-app[bot] Jan 8, 2025
345bb90
docs: fix typos
stainless-app[bot] Jan 9, 2025
b01c686
chore(internal): codegen related update
stainless-app[bot] Jan 9, 2025
7832bd8
chore(internal): codegen related update
stainless-app[bot] Jan 10, 2025
e830a9f
feat(api): api update
stainless-app[bot] Jan 15, 2025
882e3d2
chore(internal): codegen related update
stainless-app[bot] Jan 17, 2025
0c7d7e3
chore(internal): codegen related update
stainless-app[bot] Jan 22, 2025
e1041db
feat(api): api update
stainless-app[bot] Jan 22, 2025
bdeb788
chore(internal): codegen related update
stainless-app[bot] Jan 23, 2025
656845d
chore(internal): minor formatting changes
stainless-app[bot] Jan 24, 2025
44942a9
chore: update test examples
stainless-app[bot] Jan 25, 2025
502628b
chore(internal): change default timeout to an int
stainless-app[bot] Feb 4, 2025
2c19e40
chore(internal): bummp ruff dependency
stainless-app[bot] Feb 4, 2025
c17de44
feat(api): api update
stainless-app[bot] Feb 4, 2025
94ac4a3
feat(api): api update
stainless-app[bot] Feb 5, 2025
d70b331
feat(client): send `X-Stainless-Read-Timeout` header
stainless-app[bot] Feb 6, 2025
1a89735
chore(internal): fix type traversing dictionary params
stainless-app[bot] Feb 7, 2025
978943c
chore(internal): minor type handling changes
stainless-app[bot] Feb 7, 2025
9f90e06
chore(internal): update client tests
stainless-app[bot] Feb 13, 2025
0c14b2c
fix: asyncify on non-asyncio runtimes
stainless-app[bot] Feb 14, 2025
9bcfa0e
feat(client): allow passing `NotGiven` for body
stainless-app[bot] Feb 21, 2025
715627e
chore(internal): fix devcontainers setup
stainless-app[bot] Feb 22, 2025
ab2e094
chore(internal): properly set __pydantic_private__
stainless-app[bot] Feb 26, 2025
4a8ec35
docs: update URLs from stainlessapi.com to stainless.com
stainless-app[bot] Feb 28, 2025
8531cea
chore(docs): update client docstring
stainless-app[bot] Feb 28, 2025
6b4d48f
chore(internal): remove unused http client options forwarding
stainless-app[bot] Mar 4, 2025
8d3ce0b
feat(api): api update
stainless-app[bot] Apr 10, 2025
09f8345
chore(internal): codegen related update
stainless-app[bot] Apr 11, 2025
e9526e9
chore(internal): slight transform perf improvement
stainless-app[bot] Apr 11, 2025
2308950
chore(internal): expand CI branch coverage
stainless-app[bot] Apr 11, 2025
2352695
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 11, 2025
b4a3b87
fix(perf): skip traversing types for NotGiven values
stainless-app[bot] Apr 12, 2025
b2d6900
fix(perf): optimize some hot paths
stainless-app[bot] Apr 12, 2025
15fbe09
feat(api): api update
stainless-app[bot] Apr 14, 2025
c1998e8
Merge remote-tracking branch 'stainless/main' into base-with-other
axl1313 Apr 14, 2025
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 .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

USER vscode

RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
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

RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
}
}
}
},
"features": {
"ghcr.io/devcontainers/features/node:1": {}
}

// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
lint:
name: lint
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v4

Expand All @@ -22,18 +20,18 @@ jobs:
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.35.0'
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

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

- name: Run lints
run: ./scripts/lint

test:
name: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand All @@ -42,12 +40,11 @@ jobs:
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.35.0'
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test

4 changes: 3 additions & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 42
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cleanlab%2Fagility-60c8c820f2cbc6b5b0b129ccf707ec246921b9e93cfb18f4ed47a96cc97c47f8.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cleanlab%2Fagility-b890eea39144ced38d6196197401b71ac734bcd2343d046c04169bfab9d746f2.yml
openapi_spec_hash: 50035b732d759a3bc9a00402b5ccf5c4
config_hash: 6d2156cfe279456cf3c35ba5c66be1c1
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Reporting Security Issues

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.
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.

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

## Responsible Disclosure

Expand Down
3 changes: 0 additions & 3 deletions bin/publish-pypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
set -eux
mkdir -p dist
rye build --clean
# Patching importlib-metadata version until upstream library version is updated
# https://github.com/pypa/twine/issues/977#issuecomment-2189800841
"$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1'
rye publish --yes --token=$PYPI_TOKEN
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cache_fine_grained = True
# ```
# Changing this codegen to make mypy happy would increase complexity
# and would not be worth it.
disable_error_code = func-returns-value
disable_error_code = func-returns-value,overload-cannot-match

# https://github.com/python/mypy/issues/12162
[mypy.overrides]
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Homepage = "https://github.com/stainless-sdks/agility-python"
Repository = "https://github.com/stainless-sdks/agility-python"



[tool.rye]
managed = true
# version pins are in requirements-dev.lock
Expand Down Expand Up @@ -87,7 +86,7 @@ typecheck = { chain = [
"typecheck:mypy" = "mypy ."

[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

[tool.hatch.build]
Expand Down Expand Up @@ -129,6 +128,7 @@ testpaths = ["tests"]
addopts = "--tb=short"
xfail_strict = true
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
"error"
]
Expand All @@ -151,7 +151,6 @@ reportImplicitOverride = true
reportImportCycles = false
reportPrivateUsage = false


[tool.ruff]
line-length = 120
output-format = "grouped"
Expand All @@ -176,7 +175,7 @@ select = [
"T201",
"T203",
# misuse of typing.TYPE_CHECKING
"TCH004",
"TC004",
# import rules
"TID251",
]
Expand Down
7 changes: 4 additions & 3 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# all-features: true
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
annotated-types==0.6.0
Expand Down Expand Up @@ -48,7 +49,7 @@ markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
mypy==1.13.0
mypy==1.14.1
mypy-extensions==1.0.0
# via mypy
nest-asyncio==1.6.0
Expand All @@ -68,7 +69,7 @@ pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
pyright==1.1.390
pyright==1.1.392.post0
pytest==8.3.3
# via pytest-asyncio
pytest-asyncio==0.24.0
Expand All @@ -78,7 +79,7 @@ pytz==2023.3.post1
# via dirty-equals
respx==0.22.0
rich==13.7.1
ruff==0.6.9
ruff==0.9.4
setuptools==68.2.2
# via nodeenv
six==1.16.0
Expand Down
1 change: 1 addition & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# all-features: true
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
annotated-types==0.6.0
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies…"
brew bundle
Expand Down
1 change: 0 additions & 1 deletion scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rye run lint

echo "==> Making sure it imports"
rye run python -c 'import agility'

2 changes: 2 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ else
echo
fi

export DEFER_PYDANTIC_BUILD=false

echo "==> Running tests"
rye run pytest "$@"

Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/ruffen-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _md_match(match: Match[str]) -> str:
with _collect_error(match):
code = format_code_block(code)
code = textwrap.indent(code, match["indent"])
return f'{match["before"]}{code}{match["after"]}'
return f"{match['before']}{code}{match['after']}"

def _pycon_match(match: Match[str]) -> str:
code = ""
Expand Down Expand Up @@ -97,7 +97,7 @@ def finish_fragment() -> None:
def _md_pycon_match(match: Match[str]) -> str:
code = _pycon_match(match)
code = textwrap.indent(code, match["indent"])
return f'{match["before"]}{code}{match["after"]}'
return f"{match['before']}{code}{match['after']}"

src = MD_RE.sub(_md_match, src)
src = MD_PYCON_RE.sub(_md_pycon_match, src)
Expand Down
Loading