futurehouse-client 0.4.5.dev201__py3-none-any.whl → 0.5.1__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.
@@ -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
+ Path(storage_location.storage_config.location).name
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(
@@ -3,25 +3,14 @@ from datetime import datetime
3
3
  from enum import StrEnum, auto
4
4
  from os import PathLike
5
5
  from pathlib import Path
6
- from typing import Annotated, Any
6
+ from typing import Any
7
7
  from uuid import UUID
8
8
 
9
9
  from pydantic import (
10
10
  BaseModel,
11
11
  Field,
12
12
  JsonValue,
13
- PlainSerializer,
14
- PlainValidator,
15
- WithJsonSchema,
16
13
  )
17
- from sqlalchemy_utils import Ltree
18
-
19
- LtreeField = Annotated[
20
- Ltree,
21
- PlainValidator(Ltree),
22
- PlainSerializer(lambda v: v.path),
23
- WithJsonSchema({"type": "string", "examples": ["some.path"]}),
24
- ]
25
14
 
26
15
 
27
16
  class DataStorageEntryStatus(StrEnum):
@@ -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.1'
32
+ __version_tuple__ = version_tuple = (0, 5, 1)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -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.1
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
@@ -224,7 +224,6 @@ Requires-Dist: openai<1.100.0,>=1
224
224
  Requires-Dist: pydantic
225
225
  Requires-Dist: python-dotenv
226
226
  Requires-Dist: requests
227
- Requires-Dist: sqlalchemy-utils>=0.41.2
228
227
  Requires-Dist: tenacity
229
228
  Requires-Dist: tqdm>=4.62
230
229
  Provides-Extra: dev
@@ -1,14 +1,14 @@
1
1
  futurehouse_client/__init__.py,sha256=q5cpcuPkhTaueXsySsgWpH0F-2EsRxcdJfP91ze6khU,991
2
2
  futurehouse_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- futurehouse_client/version.py,sha256=gVEi6V2NhKQOnRNh8vVkILg1cdwbsy1LGjqPIbyPeLo,721
3
+ futurehouse_client/version.py,sha256=cYMOhuaBHd0MIZmumuccsEQ-AxM8LIJy9dsBAWgOpqE,704
4
4
  futurehouse_client/clients/__init__.py,sha256=-HXNj-XJ3LRO5XM6MZ709iPs29YpApss0Q2YYg1qMZw,280
5
- futurehouse_client/clients/data_storage_methods.py,sha256=f8ZsVicEtO50pRXoPzEB2GpiyqosNofyoW8vJeYvFnM,119266
5
+ futurehouse_client/clients/data_storage_methods.py,sha256=eBbGdxUmk-QGmLveuwdZd4LjsElhJxJGsvu4q-MoTGY,120030
6
6
  futurehouse_client/clients/job_client.py,sha256=b5gpzulZpxpv9R337r3UKItnMdtd6CGlI1sV3_VQJso,13985
7
- futurehouse_client/clients/rest_client.py,sha256=kLCR4dYduwX_16jaOZ26RGCOR2A_6nk2gpBKUqQ-KVI,110247
7
+ futurehouse_client/clients/rest_client.py,sha256=tLskIkiR6-Acbo2W1_UUNdIjiYfZMURaN_Mi0aJPWXg,110277
8
8
  futurehouse_client/models/__init__.py,sha256=N1MwDUYonsMN9NdaShsYcJspyL7H756MYj7VWFeD3fk,978
9
9
  futurehouse_client/models/app.py,sha256=UUg17I3zk6cH_7mrdojHGYvQfm_SeDkuUxsPlRyIYz0,31895
10
10
  futurehouse_client/models/client.py,sha256=554vp7Cr-17BTeRZtN5DhCRQesRRtr31ZPkHXUrhyCE,3835
11
- futurehouse_client/models/data_storage_methods.py,sha256=cpF2g4y_REECaz--WhaJeLqXA_3m3keRP5XOXiL8GOI,13811
11
+ futurehouse_client/models/data_storage_methods.py,sha256=tqLBEPXyyvLNVLU167_EiEnzT8AiMWeL3Fga1HpLg5o,13533
12
12
  futurehouse_client/models/job_event.py,sha256=lMrx-lV7BQkKl419ErWZ6Q1EjurmhBFSns0z6zwGaVo,2766
13
13
  futurehouse_client/models/rest.py,sha256=SbeXZSPUCM0lQ_gVUPa64vKzMxuUVgqmJ5YThfDWs8g,4726
14
14
  futurehouse_client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,8 +17,8 @@ futurehouse_client/utils/general.py,sha256=PIkGLCSA3kUvc6mwR-prEB7YnMdKILOIm6cPo
17
17
  futurehouse_client/utils/module_utils.py,sha256=aFyd-X-pDARXz9GWpn8SSViUVYdSbuy9vSkrzcVIaGI,4955
18
18
  futurehouse_client/utils/monitoring.py,sha256=UjRlufe67kI3VxRHOd5fLtJmlCbVA2Wqwpd4uZhXkQM,8728
19
19
  futurehouse_client/utils/world_model_tools.py,sha256=v2krZGrco0ur2a_pcRMtnQL05SxlIoBXuJ5R1JkQNws,2921
20
- futurehouse_client-0.4.5.dev201.dist-info/licenses/LICENSE,sha256=oQ9ZHjUi-_6GfP3gs14FlPb0OlGwE1QCCKFGnJ4LD2I,11341
21
- futurehouse_client-0.4.5.dev201.dist-info/METADATA,sha256=2MNiAgseBRKeAO9y03jEiq2ejMC3r87PwHvS-_DGWp8,27101
22
- futurehouse_client-0.4.5.dev201.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- futurehouse_client-0.4.5.dev201.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
24
- futurehouse_client-0.4.5.dev201.dist-info/RECORD,,
20
+ futurehouse_client-0.5.1.dist-info/licenses/LICENSE,sha256=oQ9ZHjUi-_6GfP3gs14FlPb0OlGwE1QCCKFGnJ4LD2I,11341
21
+ futurehouse_client-0.5.1.dist-info/METADATA,sha256=wi9-M5bSli7khH_2ZF0tFI7nK8Hb-vajvk5OMm2735g,27054
22
+ futurehouse_client-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ futurehouse_client-0.5.1.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
24
+ futurehouse_client-0.5.1.dist-info/RECORD,,