fiuai-s3 0.4.0__tar.gz → 0.4.1__tar.gz
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 fiuai-s3 might be problematic. Click here for more details.
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/PKG-INFO +1 -1
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/pyproject.toml +1 -1
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/minio/minio_storage.py +1 -8
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/object_storage.py +0 -2
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/.gitignore +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/LICENSE +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/README.md +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/__init__.py +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/alicloud/__init__.py +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/alicloud/alicloud_storage.py +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/minio/__init__.py +0 -0
- {fiuai_s3-0.4.0 → fiuai_s3-0.4.1}/src/fiuai_s3/type.py +0 -0
|
@@ -12,7 +12,7 @@ from minio import Minio
|
|
|
12
12
|
from minio.error import S3Error
|
|
13
13
|
from minio.commonconfig import Tags
|
|
14
14
|
from ..object_storage import ObjectStorage, StorageConfig
|
|
15
|
-
from ..type import DocFileObject
|
|
15
|
+
from ..type import DocFileObject
|
|
16
16
|
|
|
17
17
|
logger = logging.getLogger(__name__)
|
|
18
18
|
|
|
@@ -186,8 +186,6 @@ class MinioStorage(ObjectStorage):
|
|
|
186
186
|
def upload_doc_file(self,
|
|
187
187
|
filename: str,
|
|
188
188
|
data: bytes,
|
|
189
|
-
doc_source_from: Optional[DocSourceFrom] = None,
|
|
190
|
-
doc_file_type: Optional[DocFileType] = None,
|
|
191
189
|
tags: Optional[Dict[str, str]] = None,
|
|
192
190
|
auth_tenant_id: Optional[str] = None,
|
|
193
191
|
auth_company_id: Optional[str] = None,
|
|
@@ -202,11 +200,6 @@ class MinioStorage(ObjectStorage):
|
|
|
202
200
|
if tags:
|
|
203
201
|
for k, v in tags.items():
|
|
204
202
|
tags_obj[k] = v
|
|
205
|
-
|
|
206
|
-
doc_source_from = doc_source_from if doc_source_from else DocSourceFrom.OTHER
|
|
207
|
-
doc_file_type = doc_file_type if doc_file_type else DocFileType.OTHER
|
|
208
|
-
tags_obj["doc_source_from"] = doc_source_from.value
|
|
209
|
-
tags_obj["doc_file_type"] = doc_file_type.value
|
|
210
203
|
|
|
211
204
|
self.client.put_object(
|
|
212
205
|
bucket_name=self.bucket_name,
|
|
@@ -120,8 +120,6 @@ class ObjectStorage(ABC):
|
|
|
120
120
|
def upload_doc_file(self,
|
|
121
121
|
filename: str,
|
|
122
122
|
data: bytes,
|
|
123
|
-
doc_source_from: Optional[DocSourceFrom] = None,
|
|
124
|
-
doc_file_type: Optional[DocFileType] = None,
|
|
125
123
|
tags: Optional[Dict[str, str]] = None,
|
|
126
124
|
auth_tenant_id: Optional[str] = None, auth_company_id: Optional[str] = None, doc_id: Optional[str] = None) -> bool:
|
|
127
125
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|