Skip to content

Commit 854142b

Browse files
committed
New version.
1 parent 440ce79 commit 854142b

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

python/deeplake/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def progress_bar(iterable, *args, **kwargs):
1717
from deeplake.ingestion import from_coco
1818

1919

20-
__version__ = "4.4.1"
20+
__version__ = "4.4.3"
2121

2222
__all__ = [
2323
"__version__",
@@ -158,13 +158,16 @@ def progress_bar(iterable, *args, **kwargs):
158158
"from_csv",
159159
"from_parquet",
160160
"like",
161+
"link",
162+
"link_async",
161163
"open",
162164
"open_async",
163165
"open_read_only",
164166
"open_read_only_async",
165167
"prepare_query",
166168
"query",
167169
"query_async",
170+
"replay_log",
168171
"schemas",
169172
"storage",
170173
"tql",

python/deeplake/__init__.pyi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,16 @@ __all__ = [
148148
"from_csv",
149149
"from_parquet",
150150
"like",
151+
"link",
152+
"link_async",
151153
"open",
152154
"open_async",
153155
"open_read_only",
154156
"open_read_only_async",
155157
"prepare_query",
156158
"query",
157159
"query_async",
160+
"replay_log",
158161
"schemas",
159162
"storage",
160163
"tql",
@@ -953,6 +956,13 @@ class Branch:
953956
"""
954957
...
955958

959+
@property
960+
def is_link(self) -> bool:
961+
...
962+
@property
963+
def link_target(self) -> str | None:
964+
...
965+
956966
class BranchView:
957967
"""
958968
Describes a read-only branch within the dataset.
@@ -1004,6 +1014,13 @@ class BranchView:
10041014
"""
10051015
...
10061016

1017+
@property
1018+
def is_link(self) -> bool:
1019+
...
1020+
@property
1021+
def link_target(self) -> str | None:
1022+
...
1023+
10071024
class Branches:
10081025
"""
10091026
Provides access to the branches within a dataset.
@@ -3060,6 +3077,16 @@ class Dataset(DatasetView):
30603077
"""
30613078
pass
30623079

3080+
def start_logging(self) -> None:
3081+
...
3082+
3083+
def stop_logging(self) -> None:
3084+
...
3085+
3086+
@property
3087+
def logging_enabled(self) -> bool:
3088+
...
3089+
30633090
@property
30643091
def creds_key(self) -> str | None:
30653092
"""
@@ -3676,6 +3703,7 @@ def create(
36763703
creds: dict[str, str] | None = None,
36773704
token: str | None = None,
36783705
schema: dict[str, typing.Any] | typing.Any | None = None,
3706+
start_logging: bool = False,
36793707
) -> Dataset:
36803708
"""
36813709
Creates a new dataset at the given URL.
@@ -3756,6 +3784,7 @@ def create_async(
37563784
creds: dict[str, str] | None = None,
37573785
token: str | None = None,
37583786
schema: dict[str, typing.Any] | typing.Any | None = None,
3787+
start_logging: bool = False,
37593788
) -> Future[Dataset]:
37603789
"""
37613790
Asynchronously creates a new dataset at the given URL.
@@ -3856,6 +3885,17 @@ def copy(
38563885
```
38573886
"""
38583887

3888+
def replay_log(
3889+
source_path: str,
3890+
destination_path: str,
3891+
src_creds: dict[str, str] | None = None,
3892+
dst_creds: dict[str, str] | None = None,
3893+
token: str | None = None,
3894+
) -> None:
3895+
"""
3896+
Replays logged operations from a source dataset's debug logs to a destination dataset.
3897+
"""
3898+
38593899
def delete(
38603900
url: str, creds: dict[str, str] | None = None, token: str | None = None
38613901
) -> None:
@@ -4037,6 +4077,12 @@ def like(
40374077
```
40384078
"""
40394079

4080+
def link(source: str, destination: str, creds: dict[str, str] | None = None, token: str | None = None) -> ReadOnlyDataset:
4081+
...
4082+
4083+
def link_async(source: str, destination: str, creds: dict[str, str] | None = None, token: str | None = None) -> Future:
4084+
...
4085+
40404086
def connect(
40414087
src: str,
40424088
dest: str | None = None,

0 commit comments

Comments
 (0)