Skip to content
Open
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/aymara-sdk-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: |
Expand All @@ -44,7 +44,7 @@ jobs:
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/aymara-sdk-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Rye
run: |
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/aymara-sdk-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,7 +81,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/aymara-sdk-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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

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

- name: Install Rye
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 == 'aymara-ai/aymara-sdk-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 @@
{
".": "1.2.1"
".": "1.3.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 31
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/aymara%2Faymara-sdk-0cb64ef11adfe528cc90a67e64197eab629bf73fb581e7afd7b884e114219217.yml
openapi_spec_hash: 0717100a8b054007347209657b0e9a59
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/aymara%2Faymara-sdk-8fd97e27ffbd76766993860c0dc0fdca78306e9d8fdf5ba01c6542721cf35577.yml
openapi_spec_hash: 2ad7f387fe68851eaca42d23f37cf7dd
config_hash: 890fa7ef8d5b8a0287741a83ed69ca36
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 1.3.0 (2026-02-09)

Full Changelog: [v1.2.1...v1.3.0](https://github.com/aymara-ai/aymara-sdk-python/compare/v1.2.1...v1.3.0)

### Features

* **api:** api update ([2d32cae](https://github.com/aymara-ai/aymara-sdk-python/commit/2d32cae6bb544bb055eb34f36debbc994d774fb3))
* **api:** api update ([35c60e5](https://github.com/aymara-ai/aymara-sdk-python/commit/35c60e580328fc794dd60d16dd3a8fc2b376b39d))
* **client:** add custom JSON encoder for extended type support ([c6f4871](https://github.com/aymara-ai/aymara-sdk-python/commit/c6f487114cafde5c733e0896e85de7fe7a3be841))


### Bug Fixes

* **types:** allow pyright to infer TypedDict types within SequenceNotStr ([3c302b2](https://github.com/aymara-ai/aymara-sdk-python/commit/3c302b2a665b0b3afdad9b6a7ef1efd59ee5c03a))
* use async_to_httpx_files in patch method ([5a0914b](https://github.com/aymara-ai/aymara-sdk-python/commit/5a0914b737b8d86c6ca93e0a1212f5e0be49d557))


### Chores

* add missing docstrings ([69dedfa](https://github.com/aymara-ai/aymara-sdk-python/commit/69dedfa3958e39146b28a7277eec90a29c1e22fb))
* **deps:** mypy 1.18.1 has a regression, pin to 1.17 ([95a29b7](https://github.com/aymara-ai/aymara-sdk-python/commit/95a29b7bd6bb5e476017675ec6132cd503c651b5))
* **docs:** use environment variables for authentication in code snippets ([1781507](https://github.com/aymara-ai/aymara-sdk-python/commit/1781507d6f5da5943777d86a75ddfa2e5260a99a))
* **internal:** add `--fix` argument to lint script ([cff7b50](https://github.com/aymara-ai/aymara-sdk-python/commit/cff7b50849ac38e0fe46b0cb29bdb81363f88448))
* **internal:** add missing files argument to base client ([52bd065](https://github.com/aymara-ai/aymara-sdk-python/commit/52bd065b84fdcfc2b95f05d0efbca9defc96e6e5))
* **internal:** codegen related update ([0b87735](https://github.com/aymara-ai/aymara-sdk-python/commit/0b87735ae80dd068a502b5f1b76ad2d6a540b2dd))
* speedup initial import ([5f35540](https://github.com/aymara-ai/aymara-sdk-python/commit/5f355404ac5548d014145b16aa05ac990815f83c))
* update lockfile ([aeaae87](https://github.com/aymara-ai/aymara-sdk-python/commit/aeaae87e004d4971c0b03a7504bac9a1803b679e))

## 1.2.0 (2025-12-04)

Full Changelog: [v1.1.1...v1.2.0](https://github.com/aymara-ai/aymara-sdk-python/compare/v1.1.1...v1.2.0)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,15 @@ pip install aymara-ai-sdk[aiohttp]
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:

```python
import os
import asyncio
from aymara_ai import DefaultAioHttpClient
from aymara_ai import AsyncAymaraAI


async def main() -> None:
async with AsyncAymaraAI(
api_key="My API Key",
api_key=os.environ.get("AYMARA_AI_API_KEY"), # This is the default and can be omitted
http_client=DefaultAioHttpClient(),
) as client:
eval_run_result = await client.evals.runs.create(
Expand Down
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[project]
name = "aymara-ai-sdk"
version = "1.2.1"
version = "1.3.0"
description = "The official Python library for the aymara-ai API"
dynamic = ["readme"]
license = "Apache-2.0"
authors = [
{ name = "Aymara AI", email = "support@aymara.ai" },
]

dependencies = [
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"typing-extensions>=4.10, <5",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"typing-extensions>=4.10, <5",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",
"boto3>=1.37.37",
"matplotlib>=3.9.4",
"pandas>=2.2.3",
Expand All @@ -24,6 +25,7 @@ dependencies = [
"colorama>=0.4.6",
"tqdm>=4.67.1",
]

requires-python = ">= 3.9"
classifiers = [
"Typing :: Typed",
Expand Down Expand Up @@ -60,7 +62,7 @@ managed = true
# version pins are in requirements-dev.lock
dev-dependencies = [
"pyright==1.1.399",
"mypy",
"mypy==1.17",
"respx",
"pytest",
"pytest-asyncio",
Expand Down
19 changes: 11 additions & 8 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async-lru==2.0.5
# via jupyterlab
async-timeout==5.0.1
# via aiohttp
attrs==25.3.0
attrs==25.4.0
# via aiohttp
# via jsonschema
# via referencing
Expand Down Expand Up @@ -101,7 +101,7 @@ defusedxml==0.7.1
dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
distro==1.9.0
# via aymara-ai-sdk
# via openai
eliot==1.17.5
Expand All @@ -113,7 +113,7 @@ exceptiongroup==1.2.2
# via anyio
# via ipython
# via pytest
execnet==2.1.1
execnet==2.1.2
# via pytest-xdist
executing==2.2.0
# via stack-data
Expand Down Expand Up @@ -164,7 +164,9 @@ httpx==0.28.1
# via respx
httpx-aiohttp==0.1.9
# via aymara-ai-sdk
idna==3.4
humanize==4.13.0
# via nox
idna==3.11
# via anyio
# via httpx
# via jsonschema
Expand Down Expand Up @@ -291,8 +293,8 @@ ml-dtypes==0.2.0
multidict==6.7.0
# via aiohttp
# via yarl
mypy==1.14.1
mypy-extensions==1.0.0
mypy==1.17.0
mypy-extensions==1.1.0
# via mypy
nbclient==0.10.2
# via nbconvert
Expand Down Expand Up @@ -357,7 +359,7 @@ pillow==11.2.1
platformdirs==3.11.0
# via jupyter-core
# via virtualenv
pluggy==1.5.0
pluggy==1.6.0
# via pytest
prometheus-client==0.21.1
# via jupyter-server
Expand Down Expand Up @@ -508,6 +510,7 @@ tinycss2==1.4.0
tomli==2.0.2
# via jupyterlab
# via mypy
# via nox
# via pytest
toolz==1.1.0
# via eliot-tree
Expand Down Expand Up @@ -594,7 +597,7 @@ wrapt==1.14.2
# via tensorflow
yarl==1.22.0
# via aiohttp
zipp==3.17.0
zipp==3.23.0
# via importlib-metadata
# via importlib-resources
zope-interface==8.0.1
Expand Down
4 changes: 2 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async-lru==2.0.5
# via jupyterlab
async-timeout==5.0.1
# via aiohttp
attrs==25.3.0
attrs==25.4.0
# via aiohttp
# via jsonschema
# via referencing
Expand Down Expand Up @@ -152,7 +152,7 @@ httpx==0.28.1
# via openai
httpx-aiohttp==0.1.9
# via aymara-ai-sdk
idna==3.4
idna==3.11
# via anyio
# via httpx
# via jsonschema
Expand Down
9 changes: 7 additions & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ set -e

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

echo "==> Running lints"
rye run lint
if [ "$1" = "--fix" ]; then
echo "==> Running lints with --fix"
rye run fix:ruff
else
echo "==> Running lints"
rye run lint
fi

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