futurehouse-client 0.3.20.dev411__tar.gz → 0.4.1.dev95__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.3.20.dev411/futurehouse_client.egg-info → futurehouse_client-0.4.1.dev95}/PKG-INFO +1 -1
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/clients/data_storage_methods.py +10 -1
- futurehouse_client-0.4.1.dev95/futurehouse_client/version.py +21 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95/futurehouse_client.egg-info}/PKG-INFO +1 -1
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/tests/test_rest.py +3 -0
- futurehouse_client-0.3.20.dev411/futurehouse_client/version.py +0 -34
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/LICENSE +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/README.md +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/docs/__init__.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/docs/client_notebook.ipynb +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/__init__.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/clients/__init__.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/clients/job_client.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/clients/rest_client.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/models/__init__.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/models/app.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/models/client.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/models/data_storage_methods.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/models/rest.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/py.typed +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/__init__.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/auth.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/general.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/module_utils.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/monitoring.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/world_model_tools.py +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client.egg-info/SOURCES.txt +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client.egg-info/dependency_links.txt +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client.egg-info/requires.txt +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client.egg-info/top_level.txt +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/pyproject.toml +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/setup.cfg +0 -0
- {futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/tests/test_client.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: futurehouse-client
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.1.dev95
|
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
|
@@ -979,6 +979,7 @@ class DataStorageMethods:
|
|
979
979
|
file_path: Path,
|
980
980
|
description: str | None,
|
981
981
|
path: str | None = None,
|
982
|
+
dataset_id: UUID | None = None,
|
982
983
|
) -> DataStorageResponse:
|
983
984
|
"""Asynchronously upload a single file."""
|
984
985
|
file_size, text_payload = self._prepare_single_file_upload(
|
@@ -987,6 +988,7 @@ class DataStorageMethods:
|
|
987
988
|
|
988
989
|
if text_payload:
|
989
990
|
logger.debug("Sending file as text content")
|
991
|
+
text_payload.dataset_id = dataset_id
|
990
992
|
return await self._acreate_data_storage_entry(text_payload)
|
991
993
|
|
992
994
|
logger.debug(
|
@@ -997,6 +999,7 @@ class DataStorageMethods:
|
|
997
999
|
description=description,
|
998
1000
|
path=path,
|
999
1001
|
is_collection=False,
|
1002
|
+
dataset_id=dataset_id,
|
1000
1003
|
)
|
1001
1004
|
|
1002
1005
|
data_storage_response = await self._acreate_data_storage_entry(payload)
|
@@ -1482,6 +1485,7 @@ class DataStorageMethods:
|
|
1482
1485
|
content: str,
|
1483
1486
|
description: str | None = None,
|
1484
1487
|
path: str | None = None,
|
1488
|
+
dataset_id: UUID | None = None,
|
1485
1489
|
) -> DataStorageResponse:
|
1486
1490
|
"""Asynchronously store content as a string in the data storage system.
|
1487
1491
|
|
@@ -1490,6 +1494,7 @@ class DataStorageMethods:
|
|
1490
1494
|
content: Content to store as a string
|
1491
1495
|
description: Optional description of the data storage entry
|
1492
1496
|
path: Optional path for the data storage entry
|
1497
|
+
dataset_id: Optional dataset ID to add entry to, or None to create new dataset
|
1493
1498
|
|
1494
1499
|
Returns:
|
1495
1500
|
DataStorageResponse containing the created data storage entry and storage locations
|
@@ -1503,6 +1508,7 @@ class DataStorageMethods:
|
|
1503
1508
|
content=content,
|
1504
1509
|
description=description,
|
1505
1510
|
path=path,
|
1511
|
+
dataset_id=dataset_id,
|
1506
1512
|
)
|
1507
1513
|
return await self._acreate_data_storage_entry(payload)
|
1508
1514
|
except HTTPStatusError as e:
|
@@ -1599,6 +1605,7 @@ class DataStorageMethods:
|
|
1599
1605
|
manifest_filename: str | None = None,
|
1600
1606
|
ignore_patterns: list[str] | None = None,
|
1601
1607
|
ignore_filename: str = ".gitignore",
|
1608
|
+
dataset_id: UUID | None = None,
|
1602
1609
|
) -> DataStorageResponse:
|
1603
1610
|
"""Asynchronously store file or directory content in the data storage system.
|
1604
1611
|
|
@@ -1612,6 +1619,7 @@ class DataStorageMethods:
|
|
1612
1619
|
manifest_filename: Optional manifest file for hierarchical uploads.
|
1613
1620
|
ignore_patterns: List of patterns to ignore when zipping.
|
1614
1621
|
ignore_filename: Name of ignore file to read (default: .gitignore).
|
1622
|
+
dataset_id: Optional dataset ID to add entry to, or None to create new dataset.
|
1615
1623
|
|
1616
1624
|
Returns:
|
1617
1625
|
The `DataStorageResponse` for the created entry. For hierarchical uploads,
|
@@ -1637,6 +1645,7 @@ class DataStorageMethods:
|
|
1637
1645
|
manifest_filename=manifest_filename,
|
1638
1646
|
ignore_patterns=ignore_patterns,
|
1639
1647
|
ignore_filename=ignore_filename,
|
1648
|
+
dataset_id=dataset_id,
|
1640
1649
|
)
|
1641
1650
|
if not responses:
|
1642
1651
|
raise DataStorageCreationError(
|
@@ -1644,7 +1653,7 @@ class DataStorageMethods:
|
|
1644
1653
|
)
|
1645
1654
|
return responses[0]
|
1646
1655
|
return await self._aupload_data_single_file(
|
1647
|
-
name, file_path, description, path
|
1656
|
+
name, file_path, description, path, dataset_id
|
1648
1657
|
)
|
1649
1658
|
|
1650
1659
|
except HTTPStatusError as e:
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# file generated by setuptools-scm
|
2
|
+
# don't change, don't track in version control
|
3
|
+
|
4
|
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
5
|
+
|
6
|
+
TYPE_CHECKING = False
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from typing import Tuple
|
9
|
+
from typing import Union
|
10
|
+
|
11
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
12
|
+
else:
|
13
|
+
VERSION_TUPLE = object
|
14
|
+
|
15
|
+
version: str
|
16
|
+
__version__: str
|
17
|
+
__version_tuple__: VERSION_TUPLE
|
18
|
+
version_tuple: VERSION_TUPLE
|
19
|
+
|
20
|
+
__version__ = version = '0.4.1.dev95'
|
21
|
+
__version_tuple__ = version_tuple = (0, 4, 1, 'dev95')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: futurehouse-client
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.1.dev95
|
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
|
@@ -978,6 +978,7 @@ class TestUserAgentRequestOperations:
|
|
978
978
|
payload = UserAgentRequestPostPayload(
|
979
979
|
trajectory_id=running_trajectory_id,
|
980
980
|
request={"question": "Do you approve?"},
|
981
|
+
notify_user={"email": False, "sms": False}, # avoid sending notifications
|
981
982
|
)
|
982
983
|
request_id = admin_client.create_user_agent_request(payload)
|
983
984
|
assert isinstance(request_id, UUID)
|
@@ -1045,6 +1046,7 @@ class TestAsyncUserAgentRequestOperations:
|
|
1045
1046
|
query="Why would I follow up on this query?",
|
1046
1047
|
).model_dump(mode="json"),
|
1047
1048
|
expires_in_seconds=10,
|
1049
|
+
notify_user={"email": False, "sms": False}, # avoid sending notifications
|
1048
1050
|
)
|
1049
1051
|
|
1050
1052
|
request_id = await admin_client.acreate_user_agent_request(payload)
|
@@ -1097,6 +1099,7 @@ class TestAsyncUserAgentRequestOperations:
|
|
1097
1099
|
name=JobNames.from_string("dummy"),
|
1098
1100
|
query="Why would I follow up on this query?",
|
1099
1101
|
).model_dump(mode="json"),
|
1102
|
+
notify_user={"email": False, "sms": False}, # avoid sending notifications
|
1100
1103
|
)
|
1101
1104
|
|
1102
1105
|
request_id = await admin_client.acreate_user_agent_request(payload)
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# file generated by setuptools-scm
|
2
|
-
# don't change, don't track in version control
|
3
|
-
|
4
|
-
__all__ = [
|
5
|
-
"__version__",
|
6
|
-
"__version_tuple__",
|
7
|
-
"version",
|
8
|
-
"version_tuple",
|
9
|
-
"__commit_id__",
|
10
|
-
"commit_id",
|
11
|
-
]
|
12
|
-
|
13
|
-
TYPE_CHECKING = False
|
14
|
-
if TYPE_CHECKING:
|
15
|
-
from typing import Tuple
|
16
|
-
from typing import Union
|
17
|
-
|
18
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
19
|
-
COMMIT_ID = Union[str, None]
|
20
|
-
else:
|
21
|
-
VERSION_TUPLE = object
|
22
|
-
COMMIT_ID = object
|
23
|
-
|
24
|
-
version: str
|
25
|
-
__version__: str
|
26
|
-
__version_tuple__: VERSION_TUPLE
|
27
|
-
version_tuple: VERSION_TUPLE
|
28
|
-
commit_id: COMMIT_ID
|
29
|
-
__commit_id__: COMMIT_ID
|
30
|
-
|
31
|
-
__version__ = version = '0.3.20.dev411'
|
32
|
-
__version_tuple__ = version_tuple = (0, 3, 20, 'dev411')
|
33
|
-
|
34
|
-
__commit_id__ = commit_id = 'gbf8ac9d70'
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/docs/client_notebook.ipynb
RENAMED
File without changes
|
{futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/models/app.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/py.typed
RENAMED
File without changes
|
File without changes
|
{futurehouse_client-0.3.20.dev411 → futurehouse_client-0.4.1.dev95}/futurehouse_client/utils/auth.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
|
File without changes
|
File without changes
|