futurehouse-client 0.4.3.dev3__tar.gz → 0.4.3.dev4__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.
Files changed (38) hide show
  1. {futurehouse_client-0.4.3.dev3/futurehouse_client.egg-info → futurehouse_client-0.4.3.dev4}/PKG-INFO +1 -1
  2. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/clients/data_storage_methods.py +64 -0
  3. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/version.py +3 -3
  4. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4/futurehouse_client.egg-info}/PKG-INFO +1 -1
  5. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/LICENSE +0 -0
  6. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/README.md +0 -0
  7. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/data_storage.md +0 -0
  8. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/docs/__init__.py +0 -0
  9. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/docs/client_notebook.ipynb +0 -0
  10. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/__init__.py +0 -0
  11. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/clients/__init__.py +0 -0
  12. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/clients/job_client.py +0 -0
  13. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/clients/rest_client.py +0 -0
  14. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/models/__init__.py +0 -0
  15. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/models/app.py +0 -0
  16. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/models/client.py +0 -0
  17. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/models/data_storage_methods.py +0 -0
  18. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/models/rest.py +0 -0
  19. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/py.typed +0 -0
  20. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/utils/__init__.py +0 -0
  21. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/utils/auth.py +0 -0
  22. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/utils/general.py +0 -0
  23. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/utils/module_utils.py +0 -0
  24. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/utils/monitoring.py +0 -0
  25. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client/utils/world_model_tools.py +0 -0
  26. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client.egg-info/SOURCES.txt +0 -0
  27. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client.egg-info/dependency_links.txt +0 -0
  28. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client.egg-info/requires.txt +0 -0
  29. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/futurehouse_client.egg-info/top_level.txt +0 -0
  30. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/pyproject.toml +0 -0
  31. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/setup.cfg +0 -0
  32. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_client.py +0 -0
  33. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_data/test_file.txt +0 -0
  34. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_data/test_information.txt +0 -0
  35. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_data/test_manifest.yaml +0 -0
  36. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_data_storage_e2e.py +0 -0
  37. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_data_storage_methods.py +0 -0
  38. {futurehouse_client-0.4.3.dev3 → futurehouse_client-0.4.3.dev4}/tests/test_rest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: futurehouse-client
3
- Version: 0.4.3.dev3
3
+ Version: 0.4.3.dev4
4
4
  Summary: A client for interacting with endpoints of the FutureHouse service.
5
5
  Author-email: FutureHouse technical staff <hello@futurehouse.org>
6
6
  License: Apache License
@@ -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),
@@ -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.dev3'
32
- __version_tuple__ = version_tuple = (0, 4, 3, 'dev3')
31
+ __version__ = version = '0.4.3.dev4'
32
+ __version_tuple__ = version_tuple = (0, 4, 3, 'dev4')
33
33
 
34
- __commit_id__ = commit_id = 'g71abd5bee'
34
+ __commit_id__ = commit_id = 'g897126b18'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: futurehouse-client
3
- Version: 0.4.3.dev3
3
+ Version: 0.4.3.dev4
4
4
  Summary: A client for interacting with endpoints of the FutureHouse service.
5
5
  Author-email: FutureHouse technical staff <hello@futurehouse.org>
6
6
  License: Apache License