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.12.4"
".": "0.12.5"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 18
openapi_spec_hash: 539798fac79a1eeebf9ac4faa0492455
config_hash: 6dcf08c4324405f152d1da9fc11ab04a
configured_endpoints: 19
openapi_spec_hash: 68055a774f3305fb11efa5b5b5881446
config_hash: 00442fdab71911b02ab1e10f9ec05b79
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.12.5 (2026-01-07)

Full Changelog: [v0.11.3...v0.12.5](https://github.com/openlayer-ai/openlayer-python/compare/v0.11.3...v0.12.5)

### Features

* **api:** add test evaluation method ([f3fce3e](https://github.com/openlayer-ai/openlayer-python/commit/f3fce3e0b36bc0c63c4614e1126d3db945098286))


### Bug Fixes

* **types:** allow pyright to infer TypedDict types within SequenceNotStr ([4a7dfcf](https://github.com/openlayer-ai/openlayer-python/commit/4a7dfcf63820c98b0eecb5a54bbed5d90f228367))
* use async_to_httpx_files in patch method ([4e797de](https://github.com/openlayer-ai/openlayer-python/commit/4e797de882db7c737cd67f1ffa95875207df63f4))


### Chores

* add missing docstrings ([255589a](https://github.com/openlayer-ai/openlayer-python/commit/255589a3756a12b85ab48d9994a548f0159422a3))
* **internal:** add `--fix` argument to lint script ([bd35326](https://github.com/openlayer-ai/openlayer-python/commit/bd35326366a5e6945c4d6f81014f7bf8cb1f11e2))
* **internal:** add missing files argument to base client ([fbda07e](https://github.com/openlayer-ai/openlayer-python/commit/fbda07ebcaa37c5b071c069c24189a5660b8ed87))
* **internal:** codegen related update ([1808e75](https://github.com/openlayer-ai/openlayer-python/commit/1808e75c54b21b2ca8c77b420942e05f9ecee8a9))
* **internal:** version bump ([36be7a3](https://github.com/openlayer-ai/openlayer-python/commit/36be7a3bce6c84b63de36a778a771a81c0e3adec))
* **internal:** version bump ([753d12c](https://github.com/openlayer-ai/openlayer-python/commit/753d12ca2e0ed12b8619acc84fdea0c8e0dd26bc))
* speedup initial import ([d64be67](https://github.com/openlayer-ai/openlayer-python/commit/d64be67892c8d32476c12a7a4f7777ab3f8ae0ae))

## 0.12.4 (2026-01-07)

Full Changelog: [v0.12.3...v0.12.4](https://github.com/openlayer-ai/openlayer-python/compare/v0.12.3...v0.12.4)
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 Openlayer
Copyright 2026 Openlayer

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 12 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,15 @@ from openlayer.types.storage import PresignedURLCreateResponse
Methods:

- <code title="post /storage/presigned-url">client.storage.presigned_url.<a href="./src/openlayer/resources/storage/presigned_url.py">create</a>(\*\*<a href="src/openlayer/types/storage/presigned_url_create_params.py">params</a>) -> <a href="./src/openlayer/types/storage/presigned_url_create_response.py">PresignedURLCreateResponse</a></code>

# Tests

Types:

```python
from openlayer.types import TestEvaluateResponse
```

Methods:

- <code title="post /tests/{testId}/evaluate">client.tests.<a href="./src/openlayer/resources/tests.py">evaluate</a>(test_id, \*\*<a href="src/openlayer/types/test_evaluate_params.py">params</a>) -> <a href="./src/openlayer/types/test_evaluate_response.py">TestEvaluateResponse</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 = "openlayer"
version = "0.12.4"
version = "0.12.5"
description = "The official Python library for the openlayer API"
dynamic = ["readme"]
license = "Apache-2.0"
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 openlayer'
10 changes: 8 additions & 2 deletions src/openlayer/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,12 @@ def patch(
*,
cast_to: Type[ResponseT],
body: Body | None = None,
files: RequestFiles | None = None,
options: RequestOptions = {},
) -> ResponseT:
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
)
return self.request(cast_to, opts)

def put(
Expand Down Expand Up @@ -1767,9 +1770,12 @@ async def patch(
*,
cast_to: Type[ResponseT],
body: Body | None = None,
files: RequestFiles | None = None,
options: RequestOptions = {},
) -> ResponseT:
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
)
return await self.request(cast_to, opts)

async def put(
Expand Down
Loading