From 7ac2ac26d881096e91d2bcea4bd6297a8693911c Mon Sep 17 00:00:00 2001 From: Nathan Thorpe Date: Wed, 30 Sep 2026 08:26:23 -0700 Subject: [PATCH 1/3] update deprecated --- cirro/services/dashboard.py | 8 +------- cirro/services/sheet.py | 4 ++-- poetry.lock | 8 ++++---- pyproject.toml | 4 ++-- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/cirro/services/dashboard.py b/cirro/services/dashboard.py index 5f7fb17..8caffcc 100644 --- a/cirro/services/dashboard.py +++ b/cirro/services/dashboard.py @@ -78,13 +78,7 @@ def delete(self, project_id: str, dashboard_id: str) -> None: project_id (str): ID of the Project dashboard_id (str): ID of the Dashboard """ - # The generated route parses the empty 204 body as a Dashboard and raises, in - # sync_detailed too, so the request is sent here and only its status is read. - response = self._api_client.get_httpx_client().request( - auth=self._api_client.get_auth(), - **delete_dashboard._get_kwargs(project_id=project_id, dashboard_id=dashboard_id)) - if response.status_code >= 400: - errors.handle_error_response(response, True) + delete_dashboard.sync(project_id=project_id, dashboard_id=dashboard_id, client=self._api_client) def list_templates(self) -> List[Dashboard]: """ diff --git a/cirro/services/sheet.py b/cirro/services/sheet.py index 977f944..774f12c 100644 --- a/cirro/services/sheet.py +++ b/cirro/services/sheet.py @@ -1,7 +1,7 @@ from typing import List from cirro_api_client.v1.api.sheets import get_sheets, get_sheet, create_sheet, update_sheet, delete_sheet, \ - get_sheet_data, query_sheet_data, query_namespace_data, insert_sheet_data, update_sheet_data, delete_sheet_data, \ + get_sheet_data, query_sheet_data, query_data, insert_sheet_data, update_sheet_data, delete_sheet_data, \ refresh_view, trigger_ingest, get_jobs from cirro_api_client.v1.models import Sheet, SheetDetail, TableSheetInput, ViewSheetInput, CreateResponse, \ SheetUpdateResponse, SheetDataRequest, SheetQueryRequest, SheetQueryResponse, SheetDataUpdateResponse, \ @@ -157,7 +157,7 @@ def raw_query(self, limit=limit, page=page ) - return query_namespace_data.sync(project_id=project_id, body=request, client=self._api_client) + return query_data.sync(project_id=project_id, body=request, client=self._api_client) def insert_rows(self, project_id: str, sheet_id: str, rows: List[RowInsert]) -> SheetDataUpdateResponse: """ diff --git a/poetry.lock b/poetry.lock index ec89062..cb86e40 100644 --- a/poetry.lock +++ b/poetry.lock @@ -737,14 +737,14 @@ files = [ [[package]] name = "cirro-api-client" -version = "1.7.1" +version = "1.7.2" description = "A client library for accessing Cirro" optional = false python-versions = "<4.0,>=3.11" groups = ["main"] files = [ - {file = "cirro_api_client-1.7.1-py3-none-any.whl", hash = "sha256:799ba588be749d5f3c8cf0b2b731c58401ac31d5dd97692d63b57eb4331d295d"}, - {file = "cirro_api_client-1.7.1.tar.gz", hash = "sha256:c1f3c3f470a82c4eee4fdad184a96e1410fc5be13f072ced7c7530422538b6d9"}, + {file = "cirro_api_client-1.7.2-py3-none-any.whl", hash = "sha256:a87dd1fdc0bfe11b5214b0b9a11cc14c93a889a0b173cf10ee2d046296b5c275"}, + {file = "cirro_api_client-1.7.2.tar.gz", hash = "sha256:7633f86a4e22beeef49ac4aad67b65a328918726ddda40f9a296f0c6c3da2aca"}, ] [package.dependencies] @@ -4552,4 +4552,4 @@ wdl = ["miniwdl"] [metadata] lock-version = "2.1" python-versions = ">3.11.0,<4.0" -content-hash = "d2de991bcd6f3ee54533e7cf58f2565518cb1296995f3071350adbd089c333ea" +content-hash = "b228b256ec6ce562140c3b6da1bc1b4fbe9650c3042394898b7583bb97893357" diff --git a/pyproject.toml b/pyproject.toml index 8865a0d..c5d2f83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cirro" -version = "1.15.0" +version = "1.15.1" description = "CLI tool and SDK for interacting with the Cirro platform" authors = ["Cirro Bio "] license = "MIT" @@ -11,7 +11,7 @@ packages = [{include = "cirro"}] [tool.poetry.dependencies] python = ">3.11.0,<4.0" attrs = ">=21.3.0" -cirro_api_client = "~1.7.1" +cirro_api_client = "~1.7.2" click = "^8.5.0" boto3 = "~=1.43" questionary = "^2.0.1" From 9b23b26c3434211d0a203200da02806b976b651e Mon Sep 17 00:00:00 2001 From: Nathan Thorpe Date: Wed, 30 Sep 2026 08:31:54 -0700 Subject: [PATCH 2/3] remove unused --- cirro/services/dashboard.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cirro/services/dashboard.py b/cirro/services/dashboard.py index 8caffcc..8f5796e 100644 --- a/cirro/services/dashboard.py +++ b/cirro/services/dashboard.py @@ -1,6 +1,5 @@ from typing import List -from cirro_api_client.v1 import errors from cirro_api_client.v1.api.dashboards import get_dashboards, get_dashboard, create_dashboard, \ update_dashboard, delete_dashboard, get_dashboard_templates, get_dashboard_template from cirro_api_client.v1.models import Dashboard, DashboardInput, CreateResponse From 909a993692464afdc918c67cc5b33f853127e582 Mon Sep 17 00:00:00 2001 From: Nathan Thorpe Date: Wed, 30 Sep 2026 08:38:04 -0700 Subject: [PATCH 3/3] oops --- cirro/services/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cirro/services/dashboard.py b/cirro/services/dashboard.py index 8f5796e..9e9036b 100644 --- a/cirro/services/dashboard.py +++ b/cirro/services/dashboard.py @@ -77,7 +77,7 @@ def delete(self, project_id: str, dashboard_id: str) -> None: project_id (str): ID of the Project dashboard_id (str): ID of the Dashboard """ - delete_dashboard.sync(project_id=project_id, dashboard_id=dashboard_id, client=self._api_client) + delete_dashboard.sync_detailed(project_id=project_id, dashboard_id=dashboard_id, client=self._api_client) def list_templates(self) -> List[Dashboard]: """