futurehouse-client 0.3.20.dev411__py3-none-any.whl → 0.4.1.dev95__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.
- futurehouse_client/clients/data_storage_methods.py +10 -1
- futurehouse_client/version.py +3 -16
- {futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/METADATA +1 -1
- {futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/RECORD +7 -7
- {futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/WHEEL +0 -0
- {futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/licenses/LICENSE +0 -0
- {futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/top_level.txt +0 -0
@@ -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:
|
futurehouse_client/version.py
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
# file generated by setuptools-scm
|
2
2
|
# don't change, don't track in version control
|
3
3
|
|
4
|
-
__all__ = [
|
5
|
-
"__version__",
|
6
|
-
"__version_tuple__",
|
7
|
-
"version",
|
8
|
-
"version_tuple",
|
9
|
-
"__commit_id__",
|
10
|
-
"commit_id",
|
11
|
-
]
|
4
|
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
12
5
|
|
13
6
|
TYPE_CHECKING = False
|
14
7
|
if TYPE_CHECKING:
|
@@ -16,19 +9,13 @@ if TYPE_CHECKING:
|
|
16
9
|
from typing import Union
|
17
10
|
|
18
11
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
19
|
-
COMMIT_ID = Union[str, None]
|
20
12
|
else:
|
21
13
|
VERSION_TUPLE = object
|
22
|
-
COMMIT_ID = object
|
23
14
|
|
24
15
|
version: str
|
25
16
|
__version__: str
|
26
17
|
__version_tuple__: VERSION_TUPLE
|
27
18
|
version_tuple: VERSION_TUPLE
|
28
|
-
commit_id: COMMIT_ID
|
29
|
-
__commit_id__: COMMIT_ID
|
30
19
|
|
31
|
-
__version__ = version = '0.
|
32
|
-
__version_tuple__ = version_tuple = (0,
|
33
|
-
|
34
|
-
__commit_id__ = commit_id = None
|
20
|
+
__version__ = version = '0.4.1.dev95'
|
21
|
+
__version_tuple__ = version_tuple = (0, 4, 1, 'dev95')
|
{futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/METADATA
RENAMED
@@ -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
|
{futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/RECORD
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
futurehouse_client/__init__.py,sha256=PvFTkocA-hobsWoDEBEdrUgLIbuVbDs_0nvMdImJmHk,707
|
2
2
|
futurehouse_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
futurehouse_client/version.py,sha256=
|
3
|
+
futurehouse_client/version.py,sha256=xdDIC2zXkSHfX-EzFmKKd4nit_109buO2U_Mou9dyPk,526
|
4
4
|
futurehouse_client/clients/__init__.py,sha256=-HXNj-XJ3LRO5XM6MZ709iPs29YpApss0Q2YYg1qMZw,280
|
5
|
-
futurehouse_client/clients/data_storage_methods.py,sha256=
|
5
|
+
futurehouse_client/clients/data_storage_methods.py,sha256=Aaq4Azhvi_epfM0sGdv-S87nqoCZ_cIfitUjnBIQ1WM,68995
|
6
6
|
futurehouse_client/clients/job_client.py,sha256=D51_qTxya6g5Wfg_ZfJdP031TV_YDJeXkGMiYAJ1qRc,11962
|
7
7
|
futurehouse_client/clients/rest_client.py,sha256=hNDSN8amTXSEkiXRtNYcFM942UdvryUsf1q0D_dAOW4,100332
|
8
8
|
futurehouse_client/models/__init__.py,sha256=kQ4R7VEuRxO0IQEW_sk9CndBL7zzl8rUKI24ddyYLM0,647
|
@@ -16,8 +16,8 @@ futurehouse_client/utils/general.py,sha256=Gxy8JJ2g6nO-gphf_kHAlkowb0eP_DqD4MSF5
|
|
16
16
|
futurehouse_client/utils/module_utils.py,sha256=aFyd-X-pDARXz9GWpn8SSViUVYdSbuy9vSkrzcVIaGI,4955
|
17
17
|
futurehouse_client/utils/monitoring.py,sha256=UjRlufe67kI3VxRHOd5fLtJmlCbVA2Wqwpd4uZhXkQM,8728
|
18
18
|
futurehouse_client/utils/world_model_tools.py,sha256=cybA82xD_UzmKN0rdQfhbB8SH4v6cFw8mRr4gFfQF5U,2208
|
19
|
-
futurehouse_client-0.
|
20
|
-
futurehouse_client-0.
|
21
|
-
futurehouse_client-0.
|
22
|
-
futurehouse_client-0.
|
23
|
-
futurehouse_client-0.
|
19
|
+
futurehouse_client-0.4.1.dev95.dist-info/licenses/LICENSE,sha256=oQ9ZHjUi-_6GfP3gs14FlPb0OlGwE1QCCKFGnJ4LD2I,11341
|
20
|
+
futurehouse_client-0.4.1.dev95.dist-info/METADATA,sha256=dXPakUzdA4x3tLQ2-wkOiVdKqsnbczEOh-th5sbSMbY,26986
|
21
|
+
futurehouse_client-0.4.1.dev95.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
22
|
+
futurehouse_client-0.4.1.dev95.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
|
23
|
+
futurehouse_client-0.4.1.dev95.dist-info/RECORD,,
|
{futurehouse_client-0.3.20.dev411.dist-info → futurehouse_client-0.4.1.dev95.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|