futurehouse-client 0.4.3.dev3__py3-none-any.whl → 0.4.3.dev4__py3-none-any.whl
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.
- futurehouse_client/clients/data_storage_methods.py +64 -0
- futurehouse_client/version.py +2 -2
- {futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/METADATA +1 -1
- {futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/RECORD +7 -7
- {futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/WHEEL +0 -0
- {futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/licenses/LICENSE +0 -0
- {futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/top_level.txt +0 -0
@@ -2552,6 +2552,70 @@ class DataStorageMethods: # pylint: disable=too-many-public-methods
|
|
2552
2552
|
except Exception as e:
|
2553
2553
|
raise DataStorageError(f"An unexpected error occurred: {e!r}") from e
|
2554
2554
|
|
2555
|
+
@retry(
|
2556
|
+
stop=stop_after_attempt(3),
|
2557
|
+
wait=wait_exponential(multiplier=1, max=10),
|
2558
|
+
retry=retry_if_connection_error,
|
2559
|
+
before_sleep=before_sleep_log(logger, logging.WARNING),
|
2560
|
+
)
|
2561
|
+
def get_data_storage_entry(self, data_storage_id: UUID) -> DataStorageResponse:
|
2562
|
+
"""Get a data storage entry with all details including storage locations and metadata.
|
2563
|
+
|
2564
|
+
Args:
|
2565
|
+
data_storage_id: ID of the data storage entry to retrieve
|
2566
|
+
|
2567
|
+
Returns:
|
2568
|
+
DataStorageResponse with entry details and storage locations
|
2569
|
+
|
2570
|
+
Raises:
|
2571
|
+
DataStorageRetrievalError: If there's an error retrieving the entry
|
2572
|
+
"""
|
2573
|
+
try:
|
2574
|
+
response = self.client.get(
|
2575
|
+
f"/v0.1/data-storage/data-entries/{data_storage_id}", timeout=100
|
2576
|
+
)
|
2577
|
+
response.raise_for_status()
|
2578
|
+
return DataStorageResponse.model_validate(response.json())
|
2579
|
+
except HTTPStatusError as e:
|
2580
|
+
self._handle_http_errors(e, "retrieving")
|
2581
|
+
except Exception as e:
|
2582
|
+
raise DataStorageRetrievalError(
|
2583
|
+
f"An unexpected error occurred: {e!r}"
|
2584
|
+
) from e
|
2585
|
+
|
2586
|
+
@retry(
|
2587
|
+
stop=stop_after_attempt(3),
|
2588
|
+
wait=wait_exponential(multiplier=1, max=10),
|
2589
|
+
retry=retry_if_connection_error,
|
2590
|
+
before_sleep=before_sleep_log(logger, logging.WARNING),
|
2591
|
+
)
|
2592
|
+
async def aget_data_storage_entry(
|
2593
|
+
self, data_storage_id: UUID
|
2594
|
+
) -> DataStorageResponse:
|
2595
|
+
"""Get a data storage entry with all details including storage locations and metadata.
|
2596
|
+
|
2597
|
+
Args:
|
2598
|
+
data_storage_id: ID of the data storage entry to retrieve
|
2599
|
+
|
2600
|
+
Returns:
|
2601
|
+
DataStorageResponse with entry details and storage locations
|
2602
|
+
|
2603
|
+
Raises:
|
2604
|
+
DataStorageRetrievalError: If there's an error retrieving the entry
|
2605
|
+
"""
|
2606
|
+
try:
|
2607
|
+
response = await self.async_client.get(
|
2608
|
+
f"/v0.1/data-storage/data-entries/{data_storage_id}", timeout=100
|
2609
|
+
)
|
2610
|
+
response.raise_for_status()
|
2611
|
+
return DataStorageResponse.model_validate(response.json())
|
2612
|
+
except HTTPStatusError as e:
|
2613
|
+
self._handle_http_errors(e, "retrieving")
|
2614
|
+
except Exception as e:
|
2615
|
+
raise DataStorageRetrievalError(
|
2616
|
+
f"An unexpected error occurred: {e!r}"
|
2617
|
+
) from e
|
2618
|
+
|
2555
2619
|
@retry(
|
2556
2620
|
stop=stop_after_attempt(3),
|
2557
2621
|
wait=wait_exponential(multiplier=1, max=10),
|
futurehouse_client/version.py
CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
28
28
|
commit_id: COMMIT_ID
|
29
29
|
__commit_id__: COMMIT_ID
|
30
30
|
|
31
|
-
__version__ = version = '0.4.3.
|
32
|
-
__version_tuple__ = version_tuple = (0, 4, 3, '
|
31
|
+
__version__ = version = '0.4.3.dev4'
|
32
|
+
__version_tuple__ = version_tuple = (0, 4, 3, 'dev4')
|
33
33
|
|
34
34
|
__commit_id__ = commit_id = None
|
@@ -1,8 +1,8 @@
|
|
1
1
|
futurehouse_client/__init__.py,sha256=PvFTkocA-hobsWoDEBEdrUgLIbuVbDs_0nvMdImJmHk,707
|
2
2
|
futurehouse_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
futurehouse_client/version.py,sha256=
|
3
|
+
futurehouse_client/version.py,sha256=kOgZVjU1tKUOHA6yPt_l-szLGN5R86g2ugQlc5gpR-c,717
|
4
4
|
futurehouse_client/clients/__init__.py,sha256=-HXNj-XJ3LRO5XM6MZ709iPs29YpApss0Q2YYg1qMZw,280
|
5
|
-
futurehouse_client/clients/data_storage_methods.py,sha256=
|
5
|
+
futurehouse_client/clients/data_storage_methods.py,sha256=csSMVtG2GdbTCO6UizaGyx7rwlaaBp8qVYq0BuSuHdE,99558
|
6
6
|
futurehouse_client/clients/job_client.py,sha256=b5gpzulZpxpv9R337r3UKItnMdtd6CGlI1sV3_VQJso,13985
|
7
7
|
futurehouse_client/clients/rest_client.py,sha256=Ng36P8obNW1WTRYWTqLQ0ka5tefT-r723_Kr0haT9aM,103225
|
8
8
|
futurehouse_client/models/__init__.py,sha256=0YlzKGymbY1g4cXxnUc0BUnthTkVBf12bCZlGUcMQqk,701
|
@@ -16,8 +16,8 @@ futurehouse_client/utils/general.py,sha256=PIkGLCSA3kUvc6mwR-prEB7YnMdKILOIm6cPo
|
|
16
16
|
futurehouse_client/utils/module_utils.py,sha256=aFyd-X-pDARXz9GWpn8SSViUVYdSbuy9vSkrzcVIaGI,4955
|
17
17
|
futurehouse_client/utils/monitoring.py,sha256=UjRlufe67kI3VxRHOd5fLtJmlCbVA2Wqwpd4uZhXkQM,8728
|
18
18
|
futurehouse_client/utils/world_model_tools.py,sha256=v2krZGrco0ur2a_pcRMtnQL05SxlIoBXuJ5R1JkQNws,2921
|
19
|
-
futurehouse_client-0.4.3.
|
20
|
-
futurehouse_client-0.4.3.
|
21
|
-
futurehouse_client-0.4.3.
|
22
|
-
futurehouse_client-0.4.3.
|
23
|
-
futurehouse_client-0.4.3.
|
19
|
+
futurehouse_client-0.4.3.dev4.dist-info/licenses/LICENSE,sha256=oQ9ZHjUi-_6GfP3gs14FlPb0OlGwE1QCCKFGnJ4LD2I,11341
|
20
|
+
futurehouse_client-0.4.3.dev4.dist-info/METADATA,sha256=JxnfoEkNB5un_UU0irHM48xQLQXjPBsxqa5OjRG0-Mk,27068
|
21
|
+
futurehouse_client-0.4.3.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
+
futurehouse_client-0.4.3.dev4.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
|
23
|
+
futurehouse_client-0.4.3.dev4.dist-info/RECORD,,
|
File without changes
|
{futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{futurehouse_client-0.4.3.dev3.dist-info → futurehouse_client-0.4.3.dev4.dist-info}/top_level.txt
RENAMED
File without changes
|