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.2.0-alpha.55"
".": "0.2.0-alpha.56"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 15
configured_endpoints: 16
openapi_spec_hash: 7dd38774b534c352620bca63efa85b19
config_hash: 21fb9730d1cdc9e3fd38724c4774b894
config_hash: 0383360784fc87d799bad2be203142b5
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ 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.2.0-alpha.56 (2025-04-21)

Full Changelog: [v0.2.0-alpha.55...v0.2.0-alpha.56](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.55...v0.2.0-alpha.56)

### Features

* **api:** add test creation endpoint ([f9c02bf](https://github.com/openlayer-ai/openlayer-python/commit/f9c02bfd25604f82b0663acdd9ef3a7a57270c59))

## 0.2.0-alpha.55 (2025-04-19)

Full Changelog: [v0.2.0-alpha.54...v0.2.0-alpha.55](https://github.com/openlayer-ai/openlayer-python/compare/v0.2.0-alpha.54...v0.2.0-alpha.55)
Expand Down
12 changes: 12 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ Methods:
- <code title="post /projects/{projectId}/inference-pipelines">client.projects.inference_pipelines.<a href="./src/openlayer/resources/projects/inference_pipelines.py">create</a>(project_id, \*\*<a href="src/openlayer/types/projects/inference_pipeline_create_params.py">params</a>) -> <a href="./src/openlayer/types/projects/inference_pipeline_create_response.py">InferencePipelineCreateResponse</a></code>
- <code title="get /projects/{projectId}/inference-pipelines">client.projects.inference_pipelines.<a href="./src/openlayer/resources/projects/inference_pipelines.py">list</a>(project_id, \*\*<a href="src/openlayer/types/projects/inference_pipeline_list_params.py">params</a>) -> <a href="./src/openlayer/types/projects/inference_pipeline_list_response.py">InferencePipelineListResponse</a></code>

## Tests

Types:

```python
from openlayer.types.projects import TestCreateResponse
```

Methods:

- <code title="post /projects/{projectId}/tests">client.projects.tests.<a href="./src/openlayer/resources/projects/tests.py">create</a>(project_id, \*\*<a href="src/openlayer/types/projects/test_create_params.py">params</a>) -> <a href="./src/openlayer/types/projects/test_create_response.py">TestCreateResponse</a></code>

# Commits

Types:
Expand Down
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.2.0-alpha.55"
version = "0.2.0-alpha.56"
description = "The official Python library for the openlayer API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/openlayer/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "openlayer"
__version__ = "0.2.0-alpha.55" # x-release-please-version
__version__ = "0.2.0-alpha.56" # x-release-please-version
14 changes: 14 additions & 0 deletions src/openlayer/resources/projects/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .tests import (
TestsResource,
AsyncTestsResource,
TestsResourceWithRawResponse,
AsyncTestsResourceWithRawResponse,
TestsResourceWithStreamingResponse,
AsyncTestsResourceWithStreamingResponse,
)
from .commits import (
CommitsResource,
AsyncCommitsResource,
Expand Down Expand Up @@ -38,6 +46,12 @@
"AsyncInferencePipelinesResourceWithRawResponse",
"InferencePipelinesResourceWithStreamingResponse",
"AsyncInferencePipelinesResourceWithStreamingResponse",
"TestsResource",
"AsyncTestsResource",
"TestsResourceWithRawResponse",
"AsyncTestsResourceWithRawResponse",
"TestsResourceWithStreamingResponse",
"AsyncTestsResourceWithStreamingResponse",
"ProjectsResource",
"AsyncProjectsResource",
"ProjectsResourceWithRawResponse",
Expand Down
32 changes: 32 additions & 0 deletions src/openlayer/resources/projects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

import httpx

from .tests import (
TestsResource,
AsyncTestsResource,
TestsResourceWithRawResponse,
AsyncTestsResourceWithRawResponse,
TestsResourceWithStreamingResponse,
AsyncTestsResourceWithStreamingResponse,
)
from ...types import project_list_params, project_create_params
from .commits import (
CommitsResource,
Expand Down Expand Up @@ -53,6 +61,10 @@ def commits(self) -> CommitsResource:
def inference_pipelines(self) -> InferencePipelinesResource:
return InferencePipelinesResource(self._client)

@cached_property
def tests(self) -> TestsResource:
return TestsResource(self._client)

@cached_property
def with_raw_response(self) -> ProjectsResourceWithRawResponse:
"""
Expand Down Expand Up @@ -184,6 +196,10 @@ def commits(self) -> AsyncCommitsResource:
def inference_pipelines(self) -> AsyncInferencePipelinesResource:
return AsyncInferencePipelinesResource(self._client)

@cached_property
def tests(self) -> AsyncTestsResource:
return AsyncTestsResource(self._client)

@cached_property
def with_raw_response(self) -> AsyncProjectsResourceWithRawResponse:
"""
Expand Down Expand Up @@ -325,6 +341,10 @@ def commits(self) -> CommitsResourceWithRawResponse:
def inference_pipelines(self) -> InferencePipelinesResourceWithRawResponse:
return InferencePipelinesResourceWithRawResponse(self._projects.inference_pipelines)

@cached_property
def tests(self) -> TestsResourceWithRawResponse:
return TestsResourceWithRawResponse(self._projects.tests)


class AsyncProjectsResourceWithRawResponse:
def __init__(self, projects: AsyncProjectsResource) -> None:
Expand All @@ -345,6 +365,10 @@ def commits(self) -> AsyncCommitsResourceWithRawResponse:
def inference_pipelines(self) -> AsyncInferencePipelinesResourceWithRawResponse:
return AsyncInferencePipelinesResourceWithRawResponse(self._projects.inference_pipelines)

@cached_property
def tests(self) -> AsyncTestsResourceWithRawResponse:
return AsyncTestsResourceWithRawResponse(self._projects.tests)


class ProjectsResourceWithStreamingResponse:
def __init__(self, projects: ProjectsResource) -> None:
Expand All @@ -365,6 +389,10 @@ def commits(self) -> CommitsResourceWithStreamingResponse:
def inference_pipelines(self) -> InferencePipelinesResourceWithStreamingResponse:
return InferencePipelinesResourceWithStreamingResponse(self._projects.inference_pipelines)

@cached_property
def tests(self) -> TestsResourceWithStreamingResponse:
return TestsResourceWithStreamingResponse(self._projects.tests)


class AsyncProjectsResourceWithStreamingResponse:
def __init__(self, projects: AsyncProjectsResource) -> None:
Expand All @@ -384,3 +412,7 @@ def commits(self) -> AsyncCommitsResourceWithStreamingResponse:
@cached_property
def inference_pipelines(self) -> AsyncInferencePipelinesResourceWithStreamingResponse:
return AsyncInferencePipelinesResourceWithStreamingResponse(self._projects.inference_pipelines)

@cached_property
def tests(self) -> AsyncTestsResourceWithStreamingResponse:
return AsyncTestsResourceWithStreamingResponse(self._projects.tests)
Loading