matelab-python-sdk 0.1.0a2__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 -136
- matelab/_generated/models.py +830 -757
- matelab/_transport.py +101 -82
- matelab/_wire_validation.py +214 -0
- matelab/client.py +46 -65
- matelab/domains/__init__.py +1 -0
- matelab/{cloud_drive.py → domains/cloud_drive.py} +105 -321
- matelab/{groups.py → domains/groups.py} +9 -7
- matelab/{literature.py → domains/literature.py} +152 -352
- matelab/{notebooks.py → domains/notebooks.py} +113 -188
- matelab/{records.py → domains/records.py} +384 -703
- matelab/{templates.py → domains/templates.py} +138 -288
- matelab/{uploads.py → domains/uploads.py} +17 -51
- matelab/{users.py → domains/users.py} +12 -29
- matelab/streaming.py +26 -8
- {matelab_python_sdk-0.1.0a2.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/METADATA +115 -109
- matelab_python_sdk-0.1.0a4.dist-info/RECORD +24 -0
- matelab_python_sdk-0.1.0a2.dist-info/RECORD +0 -22
- /matelab/{models.py → session.py} +0 -0
- {matelab_python_sdk-0.1.0a2.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/WHEEL +0 -0
- {matelab_python_sdk-0.1.0a2.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/licenses/LICENSE +0 -0
- {matelab_python_sdk-0.1.0a2.dist-info → matelab_python_sdk-0.1.0a4.dist-info}/licenses/NOTICE +0 -0
matelab/__init__.py
CHANGED
|
@@ -1,48 +1,25 @@
|
|
|
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
|
-
CloudFileBindResult,
|
|
12
|
-
CloudFileMoveResult,
|
|
13
10
|
CloudFilePage,
|
|
14
|
-
CloudFilePermanentDeleteResult,
|
|
15
11
|
CloudFileRef,
|
|
16
|
-
CloudFileUpdateResult,
|
|
17
12
|
CloudFolder,
|
|
18
|
-
CloudFolderDeleteResult,
|
|
19
|
-
CloudFolderMetadata,
|
|
20
|
-
CloudFolderMoveResult,
|
|
21
13
|
CloudFolderRef,
|
|
22
14
|
CloudFolderSaveResult,
|
|
23
|
-
CloudFolderTree,
|
|
24
15
|
)
|
|
25
|
-
from matelab.
|
|
26
|
-
|
|
27
|
-
MatelabError,
|
|
28
|
-
MatelabProtocolError,
|
|
29
|
-
MatelabProviderError,
|
|
30
|
-
MatelabTransportError,
|
|
31
|
-
MatelabUsageError,
|
|
32
|
-
MatelabVerificationError,
|
|
33
|
-
)
|
|
34
|
-
from matelab.groups import GroupCollection, GroupMember, GroupRef, GroupSummary
|
|
35
|
-
from matelab.literature import (
|
|
36
|
-
DoiMetadataSource,
|
|
16
|
+
from matelab.domains.groups import GroupCollection, GroupMember, GroupRef, GroupSummary
|
|
17
|
+
from matelab.domains.literature import (
|
|
37
18
|
ExtractedLiteratureAuthor,
|
|
38
19
|
ExtractedLiteratureMetadata,
|
|
39
20
|
LiteratureCitation,
|
|
40
21
|
LiteratureComment,
|
|
41
|
-
LiteratureCommentDeleteResult,
|
|
42
|
-
LiteratureCommentDraft,
|
|
43
22
|
LiteratureCommentRef,
|
|
44
|
-
LiteratureCommentSaveResult,
|
|
45
|
-
LiteratureCreateResult,
|
|
46
23
|
LiteratureCreationSchema,
|
|
47
24
|
LiteratureDetail,
|
|
48
25
|
LiteratureField,
|
|
@@ -52,17 +29,11 @@ from matelab.literature import (
|
|
|
52
29
|
LiteratureLibraryRef,
|
|
53
30
|
LiteratureLibrarySummary,
|
|
54
31
|
LiteratureMetadata,
|
|
55
|
-
LiteratureMetadataSource,
|
|
56
32
|
LiteratureNestedField,
|
|
57
33
|
LiteraturePage,
|
|
58
34
|
LiteraturePdf,
|
|
59
|
-
LiteraturePdfDeleteResult,
|
|
60
|
-
LiteraturePdfReplaceResult,
|
|
61
|
-
LiteraturePermanentDeleteResult,
|
|
62
|
-
LiteratureShareResult,
|
|
63
35
|
LiteratureSource,
|
|
64
36
|
LiteratureStoredMetadata,
|
|
65
|
-
LiteratureUpdateResult,
|
|
66
37
|
PendingLiteratureShare,
|
|
67
38
|
PendingLiteratureShareComment,
|
|
68
39
|
PendingLiteratureShareRef,
|
|
@@ -70,70 +41,47 @@ from matelab.literature import (
|
|
|
70
41
|
PersonalLiteratureLibraryRef,
|
|
71
42
|
SharedLiteratureItemRef,
|
|
72
43
|
SharedLiteratureLibraryRef,
|
|
73
|
-
StagedPdfMetadataSource,
|
|
74
44
|
)
|
|
75
|
-
from matelab.
|
|
76
|
-
from matelab.notebooks import (
|
|
45
|
+
from matelab.domains.notebooks import (
|
|
77
46
|
NotebookCollection,
|
|
78
|
-
NotebookCreateResult,
|
|
79
47
|
NotebookListField,
|
|
80
|
-
NotebookMetadata,
|
|
81
48
|
NotebookRef,
|
|
82
49
|
NotebookShare,
|
|
83
|
-
NotebookSharePermissionGrant,
|
|
84
50
|
NotebookShareRef,
|
|
85
|
-
NotebookShareResult,
|
|
86
51
|
NotebookShares,
|
|
87
|
-
NotebookShareUpdateResult,
|
|
88
52
|
NotebookSummary,
|
|
89
|
-
NotebookUnshareResult,
|
|
90
|
-
NotebookUpdateResult,
|
|
91
53
|
PublicNotebookRef,
|
|
92
54
|
PublicNotebookSummary,
|
|
93
55
|
)
|
|
94
|
-
from matelab.records import (
|
|
95
|
-
BlankRecordCreateResult,
|
|
56
|
+
from matelab.domains.records import (
|
|
96
57
|
DeletedRecordPage,
|
|
97
58
|
DeletedRecordRef,
|
|
98
59
|
DeletedRecordSummary,
|
|
99
60
|
ExportedRecord,
|
|
100
|
-
PublicRecordCollection,
|
|
101
61
|
PublicRecordRef,
|
|
102
62
|
PublicRecordSummary,
|
|
103
63
|
Record,
|
|
104
64
|
RecordAttachmentLocation,
|
|
105
65
|
RecordAttachmentRef,
|
|
66
|
+
RecordAttachmentReplacement,
|
|
106
67
|
RecordCollection,
|
|
107
68
|
RecordComment,
|
|
108
69
|
RecordCommentAttachmentRef,
|
|
109
|
-
RecordCommentDeleteResult,
|
|
110
|
-
RecordCommentDraft,
|
|
111
70
|
RecordCommentRef,
|
|
112
|
-
RecordComments,
|
|
113
|
-
RecordCommentSaveResult,
|
|
114
71
|
RecordCopyResult,
|
|
115
72
|
RecordDeleteResult,
|
|
116
73
|
RecordExport,
|
|
117
|
-
RecordFieldExtraction,
|
|
118
74
|
RecordFilesAttachmentAppend,
|
|
119
|
-
RecordFilesAttachmentRemoval,
|
|
120
|
-
RecordFilesAttachmentReplacement,
|
|
121
75
|
RecordFormAttachmentFieldAddition,
|
|
122
|
-
RecordFormAttachmentRemoval,
|
|
123
76
|
RecordImportItem,
|
|
124
77
|
RecordImportResult,
|
|
125
|
-
RecordImportTemplate,
|
|
126
78
|
RecordLocator,
|
|
127
79
|
RecordModuleCreation,
|
|
128
|
-
RecordModuleDeletion,
|
|
129
80
|
RecordPage,
|
|
130
81
|
RecordPageContext,
|
|
131
82
|
RecordPagePermissions,
|
|
132
|
-
RecordPatch,
|
|
133
83
|
RecordRef,
|
|
134
84
|
RecordRelation,
|
|
135
|
-
RecordRelationAddResult,
|
|
136
|
-
RecordRelationDeleteResult,
|
|
137
85
|
RecordRelationRef,
|
|
138
86
|
RecordRelations,
|
|
139
87
|
RecordRestoreResult,
|
|
@@ -143,11 +91,8 @@ from matelab.records import (
|
|
|
143
91
|
RecordSignature,
|
|
144
92
|
RecordSubtypeSummary,
|
|
145
93
|
RecordSummary,
|
|
146
|
-
RecordTableAttachmentReplacement,
|
|
147
94
|
RecordUpdateResult,
|
|
148
95
|
RecordValueAddition,
|
|
149
|
-
RecordValueDeletion,
|
|
150
|
-
RecordValueUpdate,
|
|
151
96
|
RecordVersionRef,
|
|
152
97
|
RecordVersionSummary,
|
|
153
98
|
RelatedRecordIdentity,
|
|
@@ -155,68 +100,55 @@ from matelab.records import (
|
|
|
155
100
|
StagedRecordAttachment,
|
|
156
101
|
StagedRecordCommentAttachment,
|
|
157
102
|
)
|
|
158
|
-
from matelab.
|
|
159
|
-
from matelab.templates import (
|
|
103
|
+
from matelab.domains.templates import (
|
|
160
104
|
TemplateCollection,
|
|
161
|
-
TemplateContent,
|
|
162
|
-
TemplateContentSaveResult,
|
|
163
|
-
TemplateCopyResult,
|
|
164
|
-
TemplateGroupAddResult,
|
|
165
|
-
TemplateGroupRemoveResult,
|
|
166
|
-
TemplateIntroUpdateResult,
|
|
167
105
|
TemplateLibraryEntryRef,
|
|
168
106
|
TemplateLibraryRelationKind,
|
|
169
|
-
TemplateLibraryRemovalResult,
|
|
170
|
-
TemplateMarketAcquireResult,
|
|
171
107
|
TemplateMarketEntry,
|
|
172
108
|
TemplateMarketPage,
|
|
173
|
-
TemplateMarketSubmissionResult,
|
|
174
|
-
TemplateMetadata,
|
|
175
109
|
TemplateMetadataResult,
|
|
176
110
|
TemplateModule,
|
|
177
111
|
TemplateRef,
|
|
178
|
-
TemplateShareResult,
|
|
179
112
|
TemplateSource,
|
|
180
113
|
TemplateSummary,
|
|
181
114
|
)
|
|
182
|
-
from matelab.uploads import (
|
|
115
|
+
from matelab.domains.uploads import (
|
|
183
116
|
StagedFile,
|
|
184
117
|
StagedFileFragment,
|
|
185
|
-
StagedUploadAbortResult,
|
|
186
118
|
StagedUploadSession,
|
|
187
119
|
UploadBindingRef,
|
|
188
120
|
)
|
|
189
|
-
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
|
|
190
133
|
|
|
191
134
|
__all__ = [
|
|
192
135
|
"AsyncMatelab",
|
|
193
|
-
"BlankRecordCreateResult",
|
|
194
136
|
"ByteRange",
|
|
195
137
|
"CloudDriveListing",
|
|
196
138
|
"CloudDriveLocation",
|
|
197
139
|
"CloudDriveOrder",
|
|
198
140
|
"CloudDriveQuota",
|
|
199
141
|
"CloudDriveRoot",
|
|
200
|
-
"CloudDriveRootPermissions",
|
|
201
142
|
"CloudDriveRootRef",
|
|
202
143
|
"CloudFile",
|
|
203
|
-
"CloudFileBindResult",
|
|
204
|
-
"CloudFileMoveResult",
|
|
205
144
|
"CloudFilePage",
|
|
206
|
-
"CloudFilePermanentDeleteResult",
|
|
207
145
|
"CloudFileRef",
|
|
208
|
-
"CloudFileUpdateResult",
|
|
209
146
|
"CloudFolder",
|
|
210
|
-
"CloudFolderDeleteResult",
|
|
211
|
-
"CloudFolderMetadata",
|
|
212
|
-
"CloudFolderMoveResult",
|
|
213
147
|
"CloudFolderRef",
|
|
214
148
|
"CloudFolderSaveResult",
|
|
215
|
-
"CloudFolderTree",
|
|
216
149
|
"DeletedRecordPage",
|
|
217
150
|
"DeletedRecordRef",
|
|
218
151
|
"DeletedRecordSummary",
|
|
219
|
-
"DoiMetadataSource",
|
|
220
152
|
"DownloadStream",
|
|
221
153
|
"ExportedRecord",
|
|
222
154
|
"ExtractedLiteratureAuthor",
|
|
@@ -228,11 +160,7 @@ __all__ = [
|
|
|
228
160
|
"Identity",
|
|
229
161
|
"LiteratureCitation",
|
|
230
162
|
"LiteratureComment",
|
|
231
|
-
"LiteratureCommentDeleteResult",
|
|
232
|
-
"LiteratureCommentDraft",
|
|
233
163
|
"LiteratureCommentRef",
|
|
234
|
-
"LiteratureCommentSaveResult",
|
|
235
|
-
"LiteratureCreateResult",
|
|
236
164
|
"LiteratureCreationSchema",
|
|
237
165
|
"LiteratureDetail",
|
|
238
166
|
"LiteratureField",
|
|
@@ -242,17 +170,11 @@ __all__ = [
|
|
|
242
170
|
"LiteratureLibraryRef",
|
|
243
171
|
"LiteratureLibrarySummary",
|
|
244
172
|
"LiteratureMetadata",
|
|
245
|
-
"LiteratureMetadataSource",
|
|
246
173
|
"LiteratureNestedField",
|
|
247
174
|
"LiteraturePage",
|
|
248
175
|
"LiteraturePdf",
|
|
249
|
-
"LiteraturePdfDeleteResult",
|
|
250
|
-
"LiteraturePdfReplaceResult",
|
|
251
|
-
"LiteraturePermanentDeleteResult",
|
|
252
|
-
"LiteratureShareResult",
|
|
253
176
|
"LiteratureSource",
|
|
254
177
|
"LiteratureStoredMetadata",
|
|
255
|
-
"LiteratureUpdateResult",
|
|
256
178
|
"MatelabAuthenticationError",
|
|
257
179
|
"MatelabError",
|
|
258
180
|
"MatelabProtocolError",
|
|
@@ -261,19 +183,12 @@ __all__ = [
|
|
|
261
183
|
"MatelabUsageError",
|
|
262
184
|
"MatelabVerificationError",
|
|
263
185
|
"NotebookCollection",
|
|
264
|
-
"NotebookCreateResult",
|
|
265
186
|
"NotebookListField",
|
|
266
|
-
"NotebookMetadata",
|
|
267
187
|
"NotebookRef",
|
|
268
188
|
"NotebookShare",
|
|
269
|
-
"NotebookSharePermissionGrant",
|
|
270
189
|
"NotebookShareRef",
|
|
271
|
-
"NotebookShareResult",
|
|
272
|
-
"NotebookShareUpdateResult",
|
|
273
190
|
"NotebookShares",
|
|
274
191
|
"NotebookSummary",
|
|
275
|
-
"NotebookUnshareResult",
|
|
276
|
-
"NotebookUpdateResult",
|
|
277
192
|
"PendingLiteratureShare",
|
|
278
193
|
"PendingLiteratureShareComment",
|
|
279
194
|
"PendingLiteratureShareRef",
|
|
@@ -281,43 +196,30 @@ __all__ = [
|
|
|
281
196
|
"PersonalLiteratureLibraryRef",
|
|
282
197
|
"PublicNotebookRef",
|
|
283
198
|
"PublicNotebookSummary",
|
|
284
|
-
"PublicRecordCollection",
|
|
285
199
|
"PublicRecordRef",
|
|
286
200
|
"PublicRecordSummary",
|
|
287
201
|
"Record",
|
|
288
202
|
"RecordAttachmentLocation",
|
|
289
203
|
"RecordAttachmentRef",
|
|
204
|
+
"RecordAttachmentReplacement",
|
|
290
205
|
"RecordCollection",
|
|
291
206
|
"RecordComment",
|
|
292
207
|
"RecordCommentAttachmentRef",
|
|
293
|
-
"RecordCommentDeleteResult",
|
|
294
|
-
"RecordCommentDraft",
|
|
295
208
|
"RecordCommentRef",
|
|
296
|
-
"RecordCommentSaveResult",
|
|
297
|
-
"RecordComments",
|
|
298
209
|
"RecordCopyResult",
|
|
299
210
|
"RecordDeleteResult",
|
|
300
211
|
"RecordExport",
|
|
301
|
-
"RecordFieldExtraction",
|
|
302
212
|
"RecordFilesAttachmentAppend",
|
|
303
|
-
"RecordFilesAttachmentRemoval",
|
|
304
|
-
"RecordFilesAttachmentReplacement",
|
|
305
213
|
"RecordFormAttachmentFieldAddition",
|
|
306
|
-
"RecordFormAttachmentRemoval",
|
|
307
214
|
"RecordImportItem",
|
|
308
215
|
"RecordImportResult",
|
|
309
|
-
"RecordImportTemplate",
|
|
310
216
|
"RecordLocator",
|
|
311
217
|
"RecordModuleCreation",
|
|
312
|
-
"RecordModuleDeletion",
|
|
313
218
|
"RecordPage",
|
|
314
219
|
"RecordPageContext",
|
|
315
220
|
"RecordPagePermissions",
|
|
316
|
-
"RecordPatch",
|
|
317
221
|
"RecordRef",
|
|
318
222
|
"RecordRelation",
|
|
319
|
-
"RecordRelationAddResult",
|
|
320
|
-
"RecordRelationDeleteResult",
|
|
321
223
|
"RecordRelationRef",
|
|
322
224
|
"RecordRelations",
|
|
323
225
|
"RecordRestoreResult",
|
|
@@ -327,11 +229,8 @@ __all__ = [
|
|
|
327
229
|
"RecordSignature",
|
|
328
230
|
"RecordSubtypeSummary",
|
|
329
231
|
"RecordSummary",
|
|
330
|
-
"RecordTableAttachmentReplacement",
|
|
331
232
|
"RecordUpdateResult",
|
|
332
233
|
"RecordValueAddition",
|
|
333
|
-
"RecordValueDeletion",
|
|
334
|
-
"RecordValueUpdate",
|
|
335
234
|
"RecordVersionRef",
|
|
336
235
|
"RecordVersionSummary",
|
|
337
236
|
"RelatedRecordIdentity",
|
|
@@ -341,36 +240,22 @@ __all__ = [
|
|
|
341
240
|
"StagedFile",
|
|
342
241
|
"StagedFileFragment",
|
|
343
242
|
"StagedNotebookAttachment",
|
|
344
|
-
"StagedPdfMetadataSource",
|
|
345
243
|
"StagedRecordAttachment",
|
|
346
244
|
"StagedRecordCommentAttachment",
|
|
347
|
-
"StagedUploadAbortResult",
|
|
348
245
|
"StagedUploadSession",
|
|
349
246
|
"TemplateCollection",
|
|
350
|
-
"TemplateContent",
|
|
351
|
-
"TemplateContentSaveResult",
|
|
352
|
-
"TemplateCopyResult",
|
|
353
|
-
"TemplateGroupAddResult",
|
|
354
|
-
"TemplateGroupRemoveResult",
|
|
355
|
-
"TemplateIntroUpdateResult",
|
|
356
247
|
"TemplateLibraryEntryRef",
|
|
357
248
|
"TemplateLibraryRelationKind",
|
|
358
|
-
"TemplateLibraryRemovalResult",
|
|
359
|
-
"TemplateMarketAcquireResult",
|
|
360
249
|
"TemplateMarketEntry",
|
|
361
250
|
"TemplateMarketPage",
|
|
362
|
-
"TemplateMarketSubmissionResult",
|
|
363
|
-
"TemplateMetadata",
|
|
364
251
|
"TemplateMetadataResult",
|
|
365
252
|
"TemplateModule",
|
|
366
253
|
"TemplateRef",
|
|
367
|
-
"TemplateShareResult",
|
|
368
254
|
"TemplateSource",
|
|
369
255
|
"TemplateSummary",
|
|
370
256
|
"Token",
|
|
371
257
|
"UploadBindingRef",
|
|
372
258
|
"UserRef",
|
|
373
|
-
"UserSearchResult",
|
|
374
259
|
"UserSearchScope",
|
|
375
260
|
"UserSummary",
|
|
376
261
|
]
|