futurehouse-client 0.4.5.dev201__tar.gz → 0.5.0__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.
- {futurehouse_client-0.4.5.dev201/src/futurehouse_client.egg-info → futurehouse_client-0.5.0}/PKG-INFO +1 -1
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/data_storage_methods.py +22 -4
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/rest_client.py +2 -2
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/version.py +3 -3
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0/src/futurehouse_client.egg-info}/PKG-INFO +1 -1
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data_storage_e2e.py +2 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/LICENSE +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/README.md +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/data_storage.md +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/docs/__init__.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/docs/client_notebook.ipynb +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/pyproject.toml +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/setup.cfg +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/__init__.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/__init__.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/job_client.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/__init__.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/app.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/client.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/data_storage_methods.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/job_event.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/rest.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/py.typed +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/__init__.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/auth.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/general.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/module_utils.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/monitoring.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/world_model_tools.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/SOURCES.txt +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/dependency_links.txt +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/requires.txt +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/top_level.txt +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_client.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_file.txt +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_information.txt +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_manifest.yaml +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data_storage_methods.py +0 -0
- {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_rest.py +0 -0
@@ -2492,7 +2492,11 @@ class DataStorageMethods:
|
|
2492
2492
|
return [
|
2493
2493
|
self._download_from_gcs(
|
2494
2494
|
location.storage_config.signed_url or "",
|
2495
|
-
(
|
2495
|
+
(
|
2496
|
+
Path(location.storage_config.location).name
|
2497
|
+
if location.storage_config.location
|
2498
|
+
else None
|
2499
|
+
),
|
2496
2500
|
)
|
2497
2501
|
for location in result.storage_locations
|
2498
2502
|
]
|
@@ -2508,7 +2512,12 @@ class DataStorageMethods:
|
|
2508
2512
|
)
|
2509
2513
|
|
2510
2514
|
return self._download_from_gcs(
|
2511
|
-
storage_location.storage_config.signed_url
|
2515
|
+
storage_location.storage_config.signed_url,
|
2516
|
+
(
|
2517
|
+
storage_location.storage_config.location.split("/")[-1]
|
2518
|
+
if storage_location.storage_config.location
|
2519
|
+
else None
|
2520
|
+
),
|
2512
2521
|
)
|
2513
2522
|
|
2514
2523
|
if storage_type in {"raw_content", "pg_table"}:
|
@@ -2568,7 +2577,11 @@ class DataStorageMethods:
|
|
2568
2577
|
[
|
2569
2578
|
self._adownload_from_gcs(
|
2570
2579
|
location.storage_config.signed_url or "",
|
2571
|
-
(
|
2580
|
+
(
|
2581
|
+
location.storage_config.location.split("/")[-1]
|
2582
|
+
if location.storage_config.location
|
2583
|
+
else None
|
2584
|
+
),
|
2572
2585
|
)
|
2573
2586
|
for location in result.storage_locations
|
2574
2587
|
],
|
@@ -2585,7 +2598,12 @@ class DataStorageMethods:
|
|
2585
2598
|
)
|
2586
2599
|
|
2587
2600
|
return await self._adownload_from_gcs(
|
2588
|
-
storage_location.storage_config.signed_url
|
2601
|
+
storage_location.storage_config.signed_url,
|
2602
|
+
(
|
2603
|
+
storage_location.storage_config.location.split("/")[-1]
|
2604
|
+
if storage_location.storage_config.location
|
2605
|
+
else None
|
2606
|
+
),
|
2589
2607
|
)
|
2590
2608
|
|
2591
2609
|
if storage_type in {"raw_content", "pg_table"}:
|
@@ -676,7 +676,7 @@ class RestClient(DataStorageMethods):
|
|
676
676
|
)
|
677
677
|
|
678
678
|
response = self.client.post(
|
679
|
-
"/v0.1/crows", json=task_data.model_dump(mode="json")
|
679
|
+
"/v0.1/crows", json=task_data.model_dump(mode="json", by_alias=True)
|
680
680
|
)
|
681
681
|
if response.status_code in {401, 403}:
|
682
682
|
raise PermissionError(
|
@@ -712,7 +712,7 @@ class RestClient(DataStorageMethods):
|
|
712
712
|
)
|
713
713
|
|
714
714
|
response = await self.async_client.post(
|
715
|
-
"/v0.1/crows", json=task_data.model_dump(mode="json")
|
715
|
+
"/v0.1/crows", json=task_data.model_dump(mode="json", by_alias=True)
|
716
716
|
)
|
717
717
|
if response.status_code in {401, 403}:
|
718
718
|
raise PermissionError(
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/version.py
RENAMED
@@ -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.
|
32
|
-
__version_tuple__ = version_tuple = (0,
|
31
|
+
__version__ = version = '0.5.0'
|
32
|
+
__version_tuple__ = version_tuple = (0, 5, 0)
|
33
33
|
|
34
|
-
__commit_id__ = commit_id = '
|
34
|
+
__commit_id__ = commit_id = 'gdcf18bc98'
|
@@ -282,6 +282,7 @@ async def test_register_existing_content_gcs_async_single(admin_client: RestClie
|
|
282
282
|
|
283
283
|
assert isinstance(fetch_response, Path)
|
284
284
|
assert fetch_response.exists()
|
285
|
+
assert fetch_response.name == "PMC10054724.tar.gz"
|
285
286
|
|
286
287
|
|
287
288
|
@pytest.mark.timeout(300)
|
@@ -306,6 +307,7 @@ def test_register_existing_content_gcs_sync_single(admin_client: RestClient):
|
|
306
307
|
|
307
308
|
assert isinstance(fetch_response, Path)
|
308
309
|
assert fetch_response.exists()
|
310
|
+
assert fetch_response.name == "PMC10054724.tar.gz"
|
309
311
|
|
310
312
|
|
311
313
|
@pytest.mark.timeout(300)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/app.py
RENAMED
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/rest.py
RENAMED
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/py.typed
RENAMED
File without changes
|
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/auth.py
RENAMED
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/general.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_information.txt
RENAMED
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_manifest.yaml
RENAMED
File without changes
|
{futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data_storage_methods.py
RENAMED
File without changes
|
File without changes
|