Skip to content

Commit 3606ad3

Browse files
authored
v4.1.10 Release (#3036)
1 parent f00b209 commit 3606ad3

File tree

3 files changed

+157
-136
lines changed

3 files changed

+157
-136
lines changed

python/deeplake/__init__.py

+71-68
Original file line numberDiff line numberDiff line change
@@ -16,103 +16,106 @@ def progress_bar(iterable, *args, **kwargs):
1616
from deeplake.ingestion import from_coco
1717

1818

19-
__version__ = "4.1.7"
19+
__version__ = "4.1.10"
2020

2121
__all__ = [
2222
"__version__",
23-
"FutureVoid",
24-
"Future",
25-
"Tag",
26-
"TagView",
27-
"TagNotFoundError",
28-
"Tags",
29-
"TagsView",
23+
"AgreementError",
24+
"AgreementNotAcceptedError",
25+
"AuthenticationError",
26+
"AuthorizationError",
27+
"BadRequestError",
28+
"BytePositionIndexOutOfChunk",
29+
"CanNotCreateTensorWithProvidedCompressions",
30+
"CannotTagUncommittedDatasetError",
31+
"Column",
32+
"ColumnAlreadyExistsError",
3033
"ColumnDefinition",
3134
"ColumnDefinitionView",
35+
"ColumnDoesNotExistError",
36+
"ColumnMissingAppendValueError",
3237
"ColumnView",
33-
"Column",
34-
"Version",
35-
"DatasetView",
38+
"CredsKeyAlreadyAssignedError",
3639
"Dataset",
37-
"ReadOnlyDataset",
38-
"IndexingMode",
40+
"DatasetView",
41+
"DimensionsMismatch",
42+
"DtypeMismatch",
43+
"EmbeddingSizeMismatch",
3944
"ExpiredTokenError",
4045
"FormatNotSupportedError",
41-
"UnevenColumnsError",
42-
"UnevenUpdateError",
43-
"ColumnMissingAppendValueError",
44-
"ColumnAlreadyExistsError",
45-
"ColumnDoesNotExistError",
46-
"InvalidColumnValueError",
47-
"InvalidPolygonShapeError",
48-
"InvalidLinkDataError",
49-
"InvalidIndexCreationError",
50-
"IndexAlreadyExistsError",
51-
"EmbeddingSizeMismatch",
52-
"PushError",
46+
"Future",
47+
"FutureVoid",
5348
"GcsStorageProviderFailed",
5449
"History",
55-
"InvalidType",
56-
"LogExistsError",
57-
"LogNotexistsError",
50+
"HTTPBodyIsMissingError",
51+
"HTTPBodyIsNotJSONError",
52+
"HTTPRequestFailedError",
5853
"IncorrectDeeplakePathError",
59-
"AuthenticationError",
60-
"BadRequestError",
61-
"AuthorizationError",
62-
"NotFoundError",
63-
"AgreementError",
64-
"AgreementNotAcceptedError",
65-
"NotLoggedInAgreementError",
66-
"CannotTagUncommittedDatasetError",
67-
"TagExistsError",
68-
"JSONKeyNotFound",
69-
"JSONIndexNotFound",
70-
"UnknownFormat",
71-
"UnknownStringType",
54+
"IndexAlreadyExistsError",
55+
"IndexingMode",
56+
"InvalidBinaryMaskCompression",
7257
"InvalidChunkStrategyType",
73-
"InvalidSequenceOfSequence",
74-
"InvalidTypeAndFormatPair",
75-
"InvalidLinkType",
76-
"UnknownType",
77-
"InvalidTextType",
78-
"UnsupportedPythonType",
79-
"UnsupportedSampleCompression",
80-
"UnsupportedChunkCompression",
58+
"InvalidColumnValueError",
59+
"InvalidCredsKeyAssignmentError",
8160
"InvalidImageCompression",
82-
"InvalidSegmentMaskCompression",
61+
"InvalidIndexCreationError",
62+
"InvalidLinkDataError",
63+
"InvalidLinkType",
8364
"InvalidMedicalCompression",
84-
"UnexpectedMedicalTypeInputData",
85-
"UnexpectedInputDataForDicomColumn",
86-
"InvalidBinaryMaskCompression",
87-
"DtypeMismatch",
88-
"UnspecifiedDtype",
89-
"DimensionsMismatch",
90-
"ShapeIndexOutOfChunk",
91-
"BytePositionIndexOutOfChunk",
92-
"TensorAlreadyExists",
93-
"CanNotCreateTensorWithProvidedCompressions",
94-
"WrongChunkCompression",
95-
"WrongSampleCompression",
96-
"UnknownBoundingBoxCoordinateFormat",
97-
"UnknownBoundingBoxPixelFormat",
65+
"InvalidPolygonShapeError",
66+
"InvalidSegmentMaskCompression",
67+
"InvalidSequenceOfSequence",
68+
"InvalidTextType",
69+
"InvalidType",
70+
"InvalidTypeAndFormatPair",
9871
"InvalidTypeDimensions",
72+
"JSONIndexNotFound",
73+
"JSONKeyNotFound",
74+
"LogExistsError",
75+
"LogNotexistsError",
9976
"Metadata",
77+
"NotFoundError",
78+
"NotLoggedInAgreementError",
79+
"PushError",
80+
"QuantizationType",
81+
"ReadOnlyDataset",
10082
"ReadOnlyMetadata",
10183
"Row",
10284
"RowRange",
10385
"RowRangeView",
10486
"RowView",
10587
"Schema",
10688
"SchemaView",
89+
"ShapeIndexOutOfChunk",
10790
"StorageAccessDenied",
91+
"StorageInternalError",
10892
"StorageKeyAlreadyExists",
10993
"StorageKeyNotFound",
11094
"StorageNetworkConnectionError",
111-
"StorageInternalError",
95+
"Tag",
96+
"TagExistsError",
97+
"TagNotFoundError",
98+
"TagView",
99+
"Tags",
100+
"TagsView",
101+
"TensorAlreadyExists",
102+
"UnexpectedInputDataForDicomColumn",
103+
"UnexpectedMedicalTypeInputData",
104+
"UnevenColumnsError",
105+
"UnevenUpdateError",
106+
"UnknownBoundingBoxCoordinateFormat",
107+
"UnknownBoundingBoxPixelFormat",
108+
"UnknownFormat",
109+
"UnknownStringType",
110+
"UnknownType",
111+
"UnspecifiedDtype",
112+
"UnsupportedChunkCompression",
113+
"UnsupportedPythonType",
114+
"UnsupportedSampleCompression",
115+
"Version",
112116
"WriteFailedError",
113-
"QuantizationType",
114-
"InvalidCredsKeyAssignmentError",
115-
"CredsKeyAlreadyAssignedError",
117+
"WrongChunkCompression",
118+
"WrongSampleCompression",
116119
"core",
117120
"create",
118121
"create_async",

python/deeplake/__init__.pyi

+79-67
Original file line numberDiff line numberDiff line change
@@ -8,99 +8,102 @@ from . import types
88

99
__all__ = [
1010
"__version__",
11-
"FutureVoid",
12-
"Future",
13-
"Tag",
14-
"TagView",
15-
"TagNotFoundError",
16-
"Tags",
17-
"TagsView",
11+
"AgreementError",
12+
"AgreementNotAcceptedError",
13+
"AuthenticationError",
14+
"AuthorizationError",
15+
"BadRequestError",
16+
"BytePositionIndexOutOfChunk",
17+
"CanNotCreateTensorWithProvidedCompressions",
18+
"CannotTagUncommittedDatasetError",
19+
"Column",
20+
"ColumnAlreadyExistsError",
1821
"ColumnDefinition",
1922
"ColumnDefinitionView",
23+
"ColumnDoesNotExistError",
24+
"ColumnMissingAppendValueError",
2025
"ColumnView",
21-
"Column",
22-
"Version",
23-
"DatasetView",
26+
"CredsKeyAlreadyAssignedError",
2427
"Dataset",
25-
"ReadOnlyDataset",
26-
"IndexingMode",
28+
"DatasetView",
29+
"DimensionsMismatch",
30+
"DtypeMismatch",
31+
"EmbeddingSizeMismatch",
2732
"ExpiredTokenError",
2833
"FormatNotSupportedError",
29-
"UnevenColumnsError",
30-
"UnevenUpdateError",
31-
"ColumnMissingAppendValueError",
32-
"ColumnAlreadyExistsError",
33-
"ColumnDoesNotExistError",
34-
"InvalidColumnValueError",
35-
"InvalidPolygonShapeError",
36-
"InvalidLinkDataError",
37-
"InvalidIndexCreationError",
38-
"IndexAlreadyExistsError",
39-
"EmbeddingSizeMismatch",
40-
"PushError",
34+
"Future",
35+
"FutureVoid",
4136
"GcsStorageProviderFailed",
4237
"History",
43-
"InvalidType",
44-
"LogExistsError",
45-
"LogNotexistsError",
38+
"HTTPBodyIsMissingError",
39+
"HTTPBodyIsNotJSONError",
40+
"HTTPRequestFailedError",
4641
"IncorrectDeeplakePathError",
47-
"AuthenticationError",
48-
"BadRequestError",
49-
"AuthorizationError",
50-
"NotFoundError",
51-
"AgreementError",
52-
"AgreementNotAcceptedError",
53-
"NotLoggedInAgreementError",
54-
"CannotTagUncommittedDatasetError",
55-
"TagExistsError",
56-
"JSONKeyNotFound",
57-
"JSONIndexNotFound",
58-
"UnknownFormat",
59-
"UnknownStringType",
42+
"IndexAlreadyExistsError",
43+
"IndexingMode",
44+
"InvalidBinaryMaskCompression",
6045
"InvalidChunkStrategyType",
61-
"InvalidSequenceOfSequence",
62-
"InvalidTypeAndFormatPair",
63-
"InvalidLinkType",
64-
"UnknownType",
65-
"InvalidTextType",
66-
"UnsupportedPythonType",
67-
"UnsupportedSampleCompression",
68-
"UnsupportedChunkCompression",
46+
"InvalidColumnValueError",
47+
"InvalidCredsKeyAssignmentError",
6948
"InvalidImageCompression",
70-
"InvalidSegmentMaskCompression",
49+
"InvalidIndexCreationError",
50+
"InvalidLinkDataError",
51+
"InvalidLinkType",
7152
"InvalidMedicalCompression",
72-
"UnexpectedMedicalTypeInputData",
73-
"UnexpectedInputDataForDicomColumn",
74-
"InvalidBinaryMaskCompression",
75-
"DtypeMismatch",
76-
"UnspecifiedDtype",
77-
"DimensionsMismatch",
78-
"ShapeIndexOutOfChunk",
79-
"BytePositionIndexOutOfChunk",
80-
"TensorAlreadyExists",
81-
"CanNotCreateTensorWithProvidedCompressions",
82-
"WrongChunkCompression",
83-
"WrongSampleCompression",
84-
"UnknownBoundingBoxCoordinateFormat",
85-
"UnknownBoundingBoxPixelFormat",
53+
"InvalidPolygonShapeError",
54+
"InvalidSegmentMaskCompression",
55+
"InvalidSequenceOfSequence",
56+
"InvalidTextType",
57+
"InvalidType",
58+
"InvalidTypeAndFormatPair",
8659
"InvalidTypeDimensions",
60+
"JSONIndexNotFound",
61+
"JSONKeyNotFound",
62+
"LogExistsError",
63+
"LogNotexistsError",
8764
"Metadata",
65+
"NotFoundError",
66+
"NotLoggedInAgreementError",
67+
"PushError",
68+
"QuantizationType",
69+
"ReadOnlyDataset",
8870
"ReadOnlyMetadata",
8971
"Row",
9072
"RowRange",
9173
"RowRangeView",
9274
"RowView",
9375
"Schema",
9476
"SchemaView",
77+
"ShapeIndexOutOfChunk",
9578
"StorageAccessDenied",
79+
"StorageInternalError",
9680
"StorageKeyAlreadyExists",
9781
"StorageKeyNotFound",
9882
"StorageNetworkConnectionError",
99-
"StorageInternalError",
83+
"Tag",
84+
"TagExistsError",
85+
"TagNotFoundError",
86+
"TagView",
87+
"Tags",
88+
"TagsView",
89+
"TensorAlreadyExists",
90+
"UnexpectedInputDataForDicomColumn",
91+
"UnexpectedMedicalTypeInputData",
92+
"UnevenColumnsError",
93+
"UnevenUpdateError",
94+
"UnknownBoundingBoxCoordinateFormat",
95+
"UnknownBoundingBoxPixelFormat",
96+
"UnknownFormat",
97+
"UnknownStringType",
98+
"UnknownType",
99+
"UnspecifiedDtype",
100+
"UnsupportedChunkCompression",
101+
"UnsupportedPythonType",
102+
"UnsupportedSampleCompression",
103+
"Version",
100104
"WriteFailedError",
101-
"QuantizationType",
102-
"InvalidCredsKeyAssignmentError",
103-
"CredsKeyAlreadyAssignedError",
105+
"WrongChunkCompression",
106+
"WrongSampleCompression",
104107
"core",
105108
"create",
106109
"create_async",
@@ -2771,6 +2774,15 @@ class UnknownBoundingBoxPixelFormat(Exception):
27712774
class InvalidTypeDimensions(Exception):
27722775
pass
27732776

2777+
class HTTPRequestFailedError(Exception):
2778+
pass
2779+
2780+
class HTTPBodyIsMissingError(Exception):
2781+
pass
2782+
2783+
class HTTPBodyIsNotJSONError(Exception):
2784+
pass
2785+
27742786
class SchemaView:
27752787
"""
27762788
A read-only view of a [deeplake.Dataset][] [deeplake.Schema][].

python/deeplake/core.pyi

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ class Dict:
3737
def keys(self: dict) -> list[str]:
3838
...
3939

40-
def to_dict(self: dict) -> dict:
40+
def to_dict(self: dict, convert_numpy_to_list: bool = False) -> dict:
41+
"""
42+
Converts the deeplake dictionary to a standard Python dictionary.
43+
44+
Args:
45+
convert_numpy_to_list: If True, convert numpy arrays to lists. Default is False.
46+
"""
4147
...
4248

4349
def __contains__(self: dict, key: str) -> bool:

0 commit comments

Comments
 (0)