syvain-metrics-api-client 0.0.332__tar.gz → 0.0.334__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/PKG-INFO +1 -2
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/README.md +0 -1
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/pyproject.toml +1 -1
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/pyproject.toml.orig +1 -1
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/src/syvain_metrics_api_client/client.py +2 -16
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/src/syvain_metrics_api_client/__init__.py +0 -0
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/src/syvain_metrics_api_client/auth.py +0 -0
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/src/syvain_metrics_api_client/py.typed +0 -0
- {syvain_metrics_api_client-0.0.332 → syvain_metrics_api_client-0.0.334}/src/syvain_metrics_api_client/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: syvain-metrics-api-client
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.334
|
|
4
4
|
Summary: Typed Python client for the Syvain Metrics REST API
|
|
5
5
|
Requires-Dist: niquests>=3.16.0
|
|
6
6
|
Requires-Dist: pydantic>=2.13.3
|
|
@@ -34,7 +34,6 @@ from syvain_metrics_api_client import SyvainMetricsApiClient
|
|
|
34
34
|
|
|
35
35
|
with SyvainMetricsApiClient("local", timeout=60.0) as client:
|
|
36
36
|
experiments = client.list_experiments(
|
|
37
|
-
status="done",
|
|
38
37
|
slug="mamba-run-001",
|
|
39
38
|
limit=1,
|
|
40
39
|
).experiments
|
|
@@ -795,38 +795,24 @@ class SyvainMetricsApiClient:
|
|
|
795
795
|
def list_experiments(
|
|
796
796
|
self,
|
|
797
797
|
*,
|
|
798
|
-
status: str | None = None,
|
|
799
798
|
slug: str | None = None,
|
|
800
799
|
search: str | None = None,
|
|
801
|
-
from_ms: int | None = None,
|
|
802
|
-
to_ms: int | None = None,
|
|
803
800
|
limit: int | None = None,
|
|
804
801
|
) -> ExperimentsResponse:
|
|
805
|
-
"""Return
|
|
802
|
+
"""Return a bounded page ordered by most recent directory update.
|
|
806
803
|
|
|
807
804
|
Args:
|
|
808
|
-
status: Optional experiment status filter.
|
|
809
805
|
slug: Optional exact slug filter.
|
|
810
|
-
search: Optional
|
|
811
|
-
from_ms: Optional lower timestamp bound in Unix milliseconds.
|
|
812
|
-
to_ms: Optional upper timestamp bound in Unix milliseconds.
|
|
806
|
+
search: Optional case-insensitive substring in the slug.
|
|
813
807
|
limit: Optional maximum number of returned experiments.
|
|
814
|
-
|
|
815
|
-
Raises:
|
|
816
|
-
ValueError: If a timestamp bound is not a safe non-negative integer.
|
|
817
808
|
"""
|
|
818
|
-
from_ms = _validate_timestamp_query_bound(from_ms, field="from_ms")
|
|
819
|
-
to_ms = _validate_timestamp_query_bound(to_ms, field="to_ms")
|
|
820
809
|
return self._request_model(
|
|
821
810
|
"GET",
|
|
822
811
|
"/api/v1/experiments",
|
|
823
812
|
ExperimentsResponse,
|
|
824
813
|
query={
|
|
825
|
-
"status": status,
|
|
826
814
|
"slug": slug,
|
|
827
815
|
"search": search,
|
|
828
|
-
"from": from_ms,
|
|
829
|
-
"to": to_ms,
|
|
830
816
|
"limit": limit,
|
|
831
817
|
},
|
|
832
818
|
context="list_experiments",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|