matelab-python-sdk 0.1.0a3__py3-none-any.whl → 0.1.0a4__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.
- matelab/__init__.py +21 -68
- matelab/_generated/models.py +830 -757
- matelab/_transport.py +89 -70
- matelab/_wire_validation.py +214 -0
- matelab/client.py +32 -44
- matelab/domains/__init__.py +1 -0
- matelab/{cloud_drive.py → domains/cloud_drive.py} +62 -116
- matelab/{groups.py → domains/groups.py} +6 -2
- matelab/{literature/__init__.py → domains/literature.py} +95 -126
- matelab/{notebooks.py → domains/notebooks.py} +84 -68
- matelab/{records/__init__.py → domains/records.py} +302 -371
- matelab/{templates.py → domains/templates.py} +76 -100
- matelab/{uploads.py → domains/uploads.py} +5 -14
- matelab/{users.py → domains/users.py} +9 -23
- matelab/streaming.py +23 -5
- {matelab_python_sdk-0.1.0a3.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/METADATA +45 -33
- matelab_python_sdk-0.1.0a4.dist-info/RECORD +24 -0
- matelab_python_sdk-0.1.0a3.dist-info/RECORD +0 -22
- /matelab/{models.py → session.py} +0 -0
- {matelab_python_sdk-0.1.0a3.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/WHEEL +0 -0
- {matelab_python_sdk-0.1.0a3.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/licenses/LICENSE +0 -0
- {matelab_python_sdk-0.1.0a3.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/licenses/NOTICE +0 -0
matelab/__init__.py
CHANGED
|
@@ -1,38 +1,24 @@
|
|
|
1
1
|
from matelab.client import AsyncMatelab
|
|
2
|
-
from matelab.cloud_drive import (
|
|
2
|
+
from matelab.domains.cloud_drive import (
|
|
3
3
|
CloudDriveListing,
|
|
4
4
|
CloudDriveLocation,
|
|
5
5
|
CloudDriveOrder,
|
|
6
6
|
CloudDriveQuota,
|
|
7
7
|
CloudDriveRoot,
|
|
8
|
-
CloudDriveRootPermissions,
|
|
9
8
|
CloudDriveRootRef,
|
|
10
9
|
CloudFile,
|
|
11
10
|
CloudFilePage,
|
|
12
11
|
CloudFileRef,
|
|
13
12
|
CloudFolder,
|
|
14
|
-
CloudFolderMetadata,
|
|
15
13
|
CloudFolderRef,
|
|
16
14
|
CloudFolderSaveResult,
|
|
17
|
-
CloudFolderTree,
|
|
18
15
|
)
|
|
19
|
-
from matelab.
|
|
20
|
-
|
|
21
|
-
MatelabError,
|
|
22
|
-
MatelabProtocolError,
|
|
23
|
-
MatelabProviderError,
|
|
24
|
-
MatelabTransportError,
|
|
25
|
-
MatelabUsageError,
|
|
26
|
-
MatelabVerificationError,
|
|
27
|
-
)
|
|
28
|
-
from matelab.groups import GroupCollection, GroupMember, GroupRef, GroupSummary
|
|
29
|
-
from matelab.literature import (
|
|
30
|
-
DoiMetadataSource,
|
|
16
|
+
from matelab.domains.groups import GroupCollection, GroupMember, GroupRef, GroupSummary
|
|
17
|
+
from matelab.domains.literature import (
|
|
31
18
|
ExtractedLiteratureAuthor,
|
|
32
19
|
ExtractedLiteratureMetadata,
|
|
33
20
|
LiteratureCitation,
|
|
34
21
|
LiteratureComment,
|
|
35
|
-
LiteratureCommentDraft,
|
|
36
22
|
LiteratureCommentRef,
|
|
37
23
|
LiteratureCreationSchema,
|
|
38
24
|
LiteratureDetail,
|
|
@@ -43,7 +29,6 @@ from matelab.literature import (
|
|
|
43
29
|
LiteratureLibraryRef,
|
|
44
30
|
LiteratureLibrarySummary,
|
|
45
31
|
LiteratureMetadata,
|
|
46
|
-
LiteratureMetadataSource,
|
|
47
32
|
LiteratureNestedField,
|
|
48
33
|
LiteraturePage,
|
|
49
34
|
LiteraturePdf,
|
|
@@ -56,58 +41,45 @@ from matelab.literature import (
|
|
|
56
41
|
PersonalLiteratureLibraryRef,
|
|
57
42
|
SharedLiteratureItemRef,
|
|
58
43
|
SharedLiteratureLibraryRef,
|
|
59
|
-
StagedPdfMetadataSource,
|
|
60
44
|
)
|
|
61
|
-
from matelab.
|
|
62
|
-
from matelab.notebooks import (
|
|
45
|
+
from matelab.domains.notebooks import (
|
|
63
46
|
NotebookCollection,
|
|
64
47
|
NotebookListField,
|
|
65
|
-
NotebookMetadata,
|
|
66
48
|
NotebookRef,
|
|
67
49
|
NotebookShare,
|
|
68
|
-
NotebookSharePermissionGrant,
|
|
69
50
|
NotebookShareRef,
|
|
70
51
|
NotebookShares,
|
|
71
52
|
NotebookSummary,
|
|
72
53
|
PublicNotebookRef,
|
|
73
54
|
PublicNotebookSummary,
|
|
74
55
|
)
|
|
75
|
-
from matelab.records import (
|
|
56
|
+
from matelab.domains.records import (
|
|
76
57
|
DeletedRecordPage,
|
|
77
58
|
DeletedRecordRef,
|
|
78
59
|
DeletedRecordSummary,
|
|
79
60
|
ExportedRecord,
|
|
80
|
-
PublicRecordCollection,
|
|
81
61
|
PublicRecordRef,
|
|
82
62
|
PublicRecordSummary,
|
|
83
63
|
Record,
|
|
84
64
|
RecordAttachmentLocation,
|
|
85
65
|
RecordAttachmentRef,
|
|
66
|
+
RecordAttachmentReplacement,
|
|
86
67
|
RecordCollection,
|
|
87
68
|
RecordComment,
|
|
88
69
|
RecordCommentAttachmentRef,
|
|
89
|
-
RecordCommentDraft,
|
|
90
70
|
RecordCommentRef,
|
|
91
|
-
RecordComments,
|
|
92
71
|
RecordCopyResult,
|
|
93
72
|
RecordDeleteResult,
|
|
94
73
|
RecordExport,
|
|
95
|
-
RecordFieldExtraction,
|
|
96
74
|
RecordFilesAttachmentAppend,
|
|
97
|
-
RecordFilesAttachmentRemoval,
|
|
98
|
-
RecordFilesAttachmentReplacement,
|
|
99
75
|
RecordFormAttachmentFieldAddition,
|
|
100
|
-
RecordFormAttachmentRemoval,
|
|
101
76
|
RecordImportItem,
|
|
102
77
|
RecordImportResult,
|
|
103
|
-
RecordImportTemplate,
|
|
104
78
|
RecordLocator,
|
|
105
79
|
RecordModuleCreation,
|
|
106
|
-
RecordModuleDeletion,
|
|
107
80
|
RecordPage,
|
|
108
81
|
RecordPageContext,
|
|
109
82
|
RecordPagePermissions,
|
|
110
|
-
RecordPatch,
|
|
111
83
|
RecordRef,
|
|
112
84
|
RecordRelation,
|
|
113
85
|
RecordRelationRef,
|
|
@@ -119,11 +91,8 @@ from matelab.records import (
|
|
|
119
91
|
RecordSignature,
|
|
120
92
|
RecordSubtypeSummary,
|
|
121
93
|
RecordSummary,
|
|
122
|
-
RecordTableAttachmentReplacement,
|
|
123
94
|
RecordUpdateResult,
|
|
124
95
|
RecordValueAddition,
|
|
125
|
-
RecordValueDeletion,
|
|
126
|
-
RecordValueUpdate,
|
|
127
96
|
RecordVersionRef,
|
|
128
97
|
RecordVersionSummary,
|
|
129
98
|
RelatedRecordIdentity,
|
|
@@ -131,28 +100,36 @@ from matelab.records import (
|
|
|
131
100
|
StagedRecordAttachment,
|
|
132
101
|
StagedRecordCommentAttachment,
|
|
133
102
|
)
|
|
134
|
-
from matelab.
|
|
135
|
-
from matelab.templates import (
|
|
103
|
+
from matelab.domains.templates import (
|
|
136
104
|
TemplateCollection,
|
|
137
|
-
TemplateContent,
|
|
138
105
|
TemplateLibraryEntryRef,
|
|
139
106
|
TemplateLibraryRelationKind,
|
|
140
107
|
TemplateMarketEntry,
|
|
141
108
|
TemplateMarketPage,
|
|
142
|
-
TemplateMetadata,
|
|
143
109
|
TemplateMetadataResult,
|
|
144
110
|
TemplateModule,
|
|
145
111
|
TemplateRef,
|
|
146
112
|
TemplateSource,
|
|
147
113
|
TemplateSummary,
|
|
148
114
|
)
|
|
149
|
-
from matelab.uploads import (
|
|
115
|
+
from matelab.domains.uploads import (
|
|
150
116
|
StagedFile,
|
|
151
117
|
StagedFileFragment,
|
|
152
118
|
StagedUploadSession,
|
|
153
119
|
UploadBindingRef,
|
|
154
120
|
)
|
|
155
|
-
from matelab.users import UserRef,
|
|
121
|
+
from matelab.domains.users import UserRef, UserSearchScope, UserSummary
|
|
122
|
+
from matelab.errors import (
|
|
123
|
+
MatelabAuthenticationError,
|
|
124
|
+
MatelabError,
|
|
125
|
+
MatelabProtocolError,
|
|
126
|
+
MatelabProviderError,
|
|
127
|
+
MatelabTransportError,
|
|
128
|
+
MatelabUsageError,
|
|
129
|
+
MatelabVerificationError,
|
|
130
|
+
)
|
|
131
|
+
from matelab.session import Identity, Session, Token
|
|
132
|
+
from matelab.streaming import ByteRange, DownloadStream
|
|
156
133
|
|
|
157
134
|
__all__ = [
|
|
158
135
|
"AsyncMatelab",
|
|
@@ -162,20 +139,16 @@ __all__ = [
|
|
|
162
139
|
"CloudDriveOrder",
|
|
163
140
|
"CloudDriveQuota",
|
|
164
141
|
"CloudDriveRoot",
|
|
165
|
-
"CloudDriveRootPermissions",
|
|
166
142
|
"CloudDriveRootRef",
|
|
167
143
|
"CloudFile",
|
|
168
144
|
"CloudFilePage",
|
|
169
145
|
"CloudFileRef",
|
|
170
146
|
"CloudFolder",
|
|
171
|
-
"CloudFolderMetadata",
|
|
172
147
|
"CloudFolderRef",
|
|
173
148
|
"CloudFolderSaveResult",
|
|
174
|
-
"CloudFolderTree",
|
|
175
149
|
"DeletedRecordPage",
|
|
176
150
|
"DeletedRecordRef",
|
|
177
151
|
"DeletedRecordSummary",
|
|
178
|
-
"DoiMetadataSource",
|
|
179
152
|
"DownloadStream",
|
|
180
153
|
"ExportedRecord",
|
|
181
154
|
"ExtractedLiteratureAuthor",
|
|
@@ -187,7 +160,6 @@ __all__ = [
|
|
|
187
160
|
"Identity",
|
|
188
161
|
"LiteratureCitation",
|
|
189
162
|
"LiteratureComment",
|
|
190
|
-
"LiteratureCommentDraft",
|
|
191
163
|
"LiteratureCommentRef",
|
|
192
164
|
"LiteratureCreationSchema",
|
|
193
165
|
"LiteratureDetail",
|
|
@@ -198,7 +170,6 @@ __all__ = [
|
|
|
198
170
|
"LiteratureLibraryRef",
|
|
199
171
|
"LiteratureLibrarySummary",
|
|
200
172
|
"LiteratureMetadata",
|
|
201
|
-
"LiteratureMetadataSource",
|
|
202
173
|
"LiteratureNestedField",
|
|
203
174
|
"LiteraturePage",
|
|
204
175
|
"LiteraturePdf",
|
|
@@ -213,10 +184,8 @@ __all__ = [
|
|
|
213
184
|
"MatelabVerificationError",
|
|
214
185
|
"NotebookCollection",
|
|
215
186
|
"NotebookListField",
|
|
216
|
-
"NotebookMetadata",
|
|
217
187
|
"NotebookRef",
|
|
218
188
|
"NotebookShare",
|
|
219
|
-
"NotebookSharePermissionGrant",
|
|
220
189
|
"NotebookShareRef",
|
|
221
190
|
"NotebookShares",
|
|
222
191
|
"NotebookSummary",
|
|
@@ -227,37 +196,28 @@ __all__ = [
|
|
|
227
196
|
"PersonalLiteratureLibraryRef",
|
|
228
197
|
"PublicNotebookRef",
|
|
229
198
|
"PublicNotebookSummary",
|
|
230
|
-
"PublicRecordCollection",
|
|
231
199
|
"PublicRecordRef",
|
|
232
200
|
"PublicRecordSummary",
|
|
233
201
|
"Record",
|
|
234
202
|
"RecordAttachmentLocation",
|
|
235
203
|
"RecordAttachmentRef",
|
|
204
|
+
"RecordAttachmentReplacement",
|
|
236
205
|
"RecordCollection",
|
|
237
206
|
"RecordComment",
|
|
238
207
|
"RecordCommentAttachmentRef",
|
|
239
|
-
"RecordCommentDraft",
|
|
240
208
|
"RecordCommentRef",
|
|
241
|
-
"RecordComments",
|
|
242
209
|
"RecordCopyResult",
|
|
243
210
|
"RecordDeleteResult",
|
|
244
211
|
"RecordExport",
|
|
245
|
-
"RecordFieldExtraction",
|
|
246
212
|
"RecordFilesAttachmentAppend",
|
|
247
|
-
"RecordFilesAttachmentRemoval",
|
|
248
|
-
"RecordFilesAttachmentReplacement",
|
|
249
213
|
"RecordFormAttachmentFieldAddition",
|
|
250
|
-
"RecordFormAttachmentRemoval",
|
|
251
214
|
"RecordImportItem",
|
|
252
215
|
"RecordImportResult",
|
|
253
|
-
"RecordImportTemplate",
|
|
254
216
|
"RecordLocator",
|
|
255
217
|
"RecordModuleCreation",
|
|
256
|
-
"RecordModuleDeletion",
|
|
257
218
|
"RecordPage",
|
|
258
219
|
"RecordPageContext",
|
|
259
220
|
"RecordPagePermissions",
|
|
260
|
-
"RecordPatch",
|
|
261
221
|
"RecordRef",
|
|
262
222
|
"RecordRelation",
|
|
263
223
|
"RecordRelationRef",
|
|
@@ -269,11 +229,8 @@ __all__ = [
|
|
|
269
229
|
"RecordSignature",
|
|
270
230
|
"RecordSubtypeSummary",
|
|
271
231
|
"RecordSummary",
|
|
272
|
-
"RecordTableAttachmentReplacement",
|
|
273
232
|
"RecordUpdateResult",
|
|
274
233
|
"RecordValueAddition",
|
|
275
|
-
"RecordValueDeletion",
|
|
276
|
-
"RecordValueUpdate",
|
|
277
234
|
"RecordVersionRef",
|
|
278
235
|
"RecordVersionSummary",
|
|
279
236
|
"RelatedRecordIdentity",
|
|
@@ -283,17 +240,14 @@ __all__ = [
|
|
|
283
240
|
"StagedFile",
|
|
284
241
|
"StagedFileFragment",
|
|
285
242
|
"StagedNotebookAttachment",
|
|
286
|
-
"StagedPdfMetadataSource",
|
|
287
243
|
"StagedRecordAttachment",
|
|
288
244
|
"StagedRecordCommentAttachment",
|
|
289
245
|
"StagedUploadSession",
|
|
290
246
|
"TemplateCollection",
|
|
291
|
-
"TemplateContent",
|
|
292
247
|
"TemplateLibraryEntryRef",
|
|
293
248
|
"TemplateLibraryRelationKind",
|
|
294
249
|
"TemplateMarketEntry",
|
|
295
250
|
"TemplateMarketPage",
|
|
296
|
-
"TemplateMetadata",
|
|
297
251
|
"TemplateMetadataResult",
|
|
298
252
|
"TemplateModule",
|
|
299
253
|
"TemplateRef",
|
|
@@ -302,7 +256,6 @@ __all__ = [
|
|
|
302
256
|
"Token",
|
|
303
257
|
"UploadBindingRef",
|
|
304
258
|
"UserRef",
|
|
305
|
-
"UserSearchResult",
|
|
306
259
|
"UserSearchScope",
|
|
307
260
|
"UserSummary",
|
|
308
261
|
]
|