flashdrive 1.0.0__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.
Potentially problematic release.
This version of flashdrive might be problematic. Click here for more details.
- flashdrive/__init__.py +152 -0
- flashdrive/_api_contract.json +41943 -0
- flashdrive/_bulk.py +796 -0
- flashdrive/_diagnostics.py +21 -0
- flashdrive/_environment.py +26 -0
- flashdrive/_error_registry.py +269 -0
- flashdrive/_file_bytes.py +210 -0
- flashdrive/_file_edits.py +177 -0
- flashdrive/_imports.py +1196 -0
- flashdrive/_legacy.py +3 -0
- flashdrive/_local_only.py +716 -0
- flashdrive/_messages.py +114 -0
- flashdrive/_multipart.py +229 -0
- flashdrive/_notices.py +250 -0
- flashdrive/_polling.py +135 -0
- flashdrive/_proxy.py +56 -0
- flashdrive/_text_files.py +39 -0
- flashdrive/_transport.py +589 -0
- flashdrive/_upload_limits.py +105 -0
- flashdrive/_version.py +1 -0
- flashdrive/_wire.py +12 -0
- flashdrive/_workflow.py +1107 -0
- flashdrive/async_client.py +1120 -0
- flashdrive/client.py +1124 -0
- flashdrive/client_core.py +111 -0
- flashdrive/enums.py +108 -0
- flashdrive/errors.py +332 -0
- flashdrive/models.py +954 -0
- flashdrive/py.typed +0 -0
- flashdrive-1.0.0.dist-info/METADATA +43 -0
- flashdrive-1.0.0.dist-info/RECORD +33 -0
- flashdrive-1.0.0.dist-info/WHEEL +4 -0
- flashdrive-1.0.0.dist-info/licenses/LICENSE +202 -0
flashdrive/__init__.py
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
from ._notices import SDKDeprecationWarning, SDKUpgradeWarning
|
|
2
|
+
from ._version import __version__
|
|
3
|
+
from .async_client import AsyncFlashdrive
|
|
4
|
+
from .client import Flashdrive
|
|
5
|
+
from .enums import (
|
|
6
|
+
CitationAnchor,
|
|
7
|
+
DocumentSource,
|
|
8
|
+
DriveStatus,
|
|
9
|
+
ErrorType,
|
|
10
|
+
ImportChunkState,
|
|
11
|
+
ImportPhase,
|
|
12
|
+
ImportState,
|
|
13
|
+
OperationStatus,
|
|
14
|
+
RetryKey,
|
|
15
|
+
Retryable,
|
|
16
|
+
SourceFormat,
|
|
17
|
+
UploadRoute,
|
|
18
|
+
UploadState,
|
|
19
|
+
)
|
|
20
|
+
from .errors import (
|
|
21
|
+
APIVersionRetiredError,
|
|
22
|
+
AuthenticationError,
|
|
23
|
+
BulkImportError,
|
|
24
|
+
ClientUpgradeRequiredError,
|
|
25
|
+
ConflictError,
|
|
26
|
+
InvalidRequestError,
|
|
27
|
+
NotFoundError,
|
|
28
|
+
PaymentRequiredError,
|
|
29
|
+
PermissionDeniedError,
|
|
30
|
+
PreconditionFailedError,
|
|
31
|
+
QuotaExceededError,
|
|
32
|
+
RequestTooLargeError,
|
|
33
|
+
ServiceUnavailableError,
|
|
34
|
+
UpgradeRequiredError,
|
|
35
|
+
FlashdriveError,
|
|
36
|
+
FileEditError,
|
|
37
|
+
FileEditTimeoutError,
|
|
38
|
+
RateLimitError,
|
|
39
|
+
SDKCompatibilityError,
|
|
40
|
+
SDKTimeoutError,
|
|
41
|
+
UploadBatchError,
|
|
42
|
+
UploadError,
|
|
43
|
+
UploadTimeoutError,
|
|
44
|
+
)
|
|
45
|
+
from .models import (
|
|
46
|
+
ImportChunkStatus,
|
|
47
|
+
ImportFile,
|
|
48
|
+
ImportFailure,
|
|
49
|
+
ImportPlan,
|
|
50
|
+
ImportProgress,
|
|
51
|
+
ImportStatus,
|
|
52
|
+
ImportRetryReceipt,
|
|
53
|
+
Limits,
|
|
54
|
+
Citation,
|
|
55
|
+
Drive,
|
|
56
|
+
DeletedDrive,
|
|
57
|
+
DriveUsage,
|
|
58
|
+
Document,
|
|
59
|
+
DocumentRevision,
|
|
60
|
+
FileEntry,
|
|
61
|
+
FilePage,
|
|
62
|
+
FileEdit,
|
|
63
|
+
FileEditProgress,
|
|
64
|
+
FileLink,
|
|
65
|
+
FileText,
|
|
66
|
+
Folder,
|
|
67
|
+
FolderDeletion,
|
|
68
|
+
FolderPath,
|
|
69
|
+
MutationReceipt,
|
|
70
|
+
Operation,
|
|
71
|
+
OperationProgress,
|
|
72
|
+
DefaultDrive,
|
|
73
|
+
TextMatch,
|
|
74
|
+
TextSearchPage,
|
|
75
|
+
UploadBatch,
|
|
76
|
+
UploadReceipt,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
__all__ = [
|
|
80
|
+
"Citation",
|
|
81
|
+
"CitationAnchor",
|
|
82
|
+
"ConflictError",
|
|
83
|
+
"DocumentSource",
|
|
84
|
+
"ErrorType",
|
|
85
|
+
"InvalidRequestError",
|
|
86
|
+
"NotFoundError",
|
|
87
|
+
"PaymentRequiredError",
|
|
88
|
+
"PreconditionFailedError",
|
|
89
|
+
"QuotaExceededError",
|
|
90
|
+
"RequestTooLargeError",
|
|
91
|
+
"RetryKey",
|
|
92
|
+
"Retryable",
|
|
93
|
+
"ServiceUnavailableError",
|
|
94
|
+
"UpgradeRequiredError",
|
|
95
|
+
"APIVersionRetiredError",
|
|
96
|
+
"AsyncFlashdrive",
|
|
97
|
+
"AuthenticationError",
|
|
98
|
+
"BulkImportError",
|
|
99
|
+
"ClientUpgradeRequiredError",
|
|
100
|
+
"DefaultDrive",
|
|
101
|
+
"Drive",
|
|
102
|
+
"DriveStatus",
|
|
103
|
+
"DriveUsage",
|
|
104
|
+
"DeletedDrive",
|
|
105
|
+
"Document",
|
|
106
|
+
"DocumentRevision",
|
|
107
|
+
"FileEntry",
|
|
108
|
+
"FilePage",
|
|
109
|
+
"FileEdit",
|
|
110
|
+
"FileEditProgress",
|
|
111
|
+
"FileEditError",
|
|
112
|
+
"FileEditTimeoutError",
|
|
113
|
+
"FileLink",
|
|
114
|
+
"FileText",
|
|
115
|
+
"Folder",
|
|
116
|
+
"FolderDeletion",
|
|
117
|
+
"FolderPath",
|
|
118
|
+
"MutationReceipt",
|
|
119
|
+
"Operation",
|
|
120
|
+
"OperationProgress",
|
|
121
|
+
"OperationStatus",
|
|
122
|
+
"ImportChunkStatus",
|
|
123
|
+
"ImportChunkState",
|
|
124
|
+
"ImportPhase",
|
|
125
|
+
"ImportFile",
|
|
126
|
+
"ImportFailure",
|
|
127
|
+
"ImportPlan",
|
|
128
|
+
"ImportProgress",
|
|
129
|
+
"ImportStatus",
|
|
130
|
+
"ImportState",
|
|
131
|
+
"ImportRetryReceipt",
|
|
132
|
+
"Limits",
|
|
133
|
+
"PermissionDeniedError",
|
|
134
|
+
"Flashdrive",
|
|
135
|
+
"FlashdriveError",
|
|
136
|
+
"RateLimitError",
|
|
137
|
+
"SDKCompatibilityError",
|
|
138
|
+
"SDKDeprecationWarning",
|
|
139
|
+
"SDKTimeoutError",
|
|
140
|
+
"SDKUpgradeWarning",
|
|
141
|
+
"SourceFormat",
|
|
142
|
+
"TextMatch",
|
|
143
|
+
"TextSearchPage",
|
|
144
|
+
"UploadBatch",
|
|
145
|
+
"UploadBatchError",
|
|
146
|
+
"UploadError",
|
|
147
|
+
"UploadReceipt",
|
|
148
|
+
"UploadRoute",
|
|
149
|
+
"UploadState",
|
|
150
|
+
"UploadTimeoutError",
|
|
151
|
+
"__version__",
|
|
152
|
+
]
|