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.
Files changed (39) hide show
  1. {futurehouse_client-0.4.5.dev201/src/futurehouse_client.egg-info → futurehouse_client-0.5.0}/PKG-INFO +1 -1
  2. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/data_storage_methods.py +22 -4
  3. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/rest_client.py +2 -2
  4. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/version.py +3 -3
  5. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0/src/futurehouse_client.egg-info}/PKG-INFO +1 -1
  6. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data_storage_e2e.py +2 -0
  7. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/LICENSE +0 -0
  8. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/README.md +0 -0
  9. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/data_storage.md +0 -0
  10. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/docs/__init__.py +0 -0
  11. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/docs/client_notebook.ipynb +0 -0
  12. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/pyproject.toml +0 -0
  13. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/setup.cfg +0 -0
  14. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/__init__.py +0 -0
  15. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/__init__.py +0 -0
  16. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/clients/job_client.py +0 -0
  17. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/__init__.py +0 -0
  18. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/app.py +0 -0
  19. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/client.py +0 -0
  20. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/data_storage_methods.py +0 -0
  21. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/job_event.py +0 -0
  22. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/models/rest.py +0 -0
  23. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/py.typed +0 -0
  24. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/__init__.py +0 -0
  25. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/auth.py +0 -0
  26. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/general.py +0 -0
  27. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/module_utils.py +0 -0
  28. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/monitoring.py +0 -0
  29. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client/utils/world_model_tools.py +0 -0
  30. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/SOURCES.txt +0 -0
  31. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/dependency_links.txt +0 -0
  32. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/requires.txt +0 -0
  33. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/src/futurehouse_client.egg-info/top_level.txt +0 -0
  34. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_client.py +0 -0
  35. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_file.txt +0 -0
  36. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_information.txt +0 -0
  37. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data/test_manifest.yaml +0 -0
  38. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/tests/test_data_storage_methods.py +0 -0
  39. {futurehouse_client-0.4.5.dev201 → futurehouse_client-0.5.0}/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.5.dev201
3
+ Version: 0.5.0
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
@@ -2492,7 +2492,11 @@ class DataStorageMethods:
2492
2492
  return [
2493
2493
  self._download_from_gcs(
2494
2494
  location.storage_config.signed_url or "",
2495
- (location.storage_config.location or "").split("/")[-1],
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
- (location.storage_config.location or "").split("/")[-1],
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(
@@ -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.5.dev201'
32
- __version_tuple__ = version_tuple = (0, 4, 5, 'dev201')
31
+ __version__ = version = '0.5.0'
32
+ __version_tuple__ = version_tuple = (0, 5, 0)
33
33
 
34
- __commit_id__ = commit_id = 'g8acb99411'
34
+ __commit_id__ = commit_id = 'gdcf18bc98'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: futurehouse-client
3
- Version: 0.4.5.dev201
3
+ Version: 0.5.0
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
@@ -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)