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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fiuai-s3
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: 一个支持阿里云OSS和MinIO的对象存储抽象包
5
5
  Project-URL: Homepage, https://github.com/fiuai-sz/fiuai-s3
6
6
  Project-URL: Repository, https://github.com/fiuai-sz/fiuai-s3.git
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fiuai-s3"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  description = "一个支持阿里云OSS和MinIO的对象存储抽象包"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -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, DocFileType, DocSourceFrom
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