solax-py-library 1.0.0.7__py3-none-any.whl → 1.0.0.8__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.
@@ -18,7 +18,7 @@ from solax_py_library.upload.errors.upload_error import (
18
18
 
19
19
 
20
20
  class FTPUploadService(BaseUploadService):
21
- upload_type = UploadType.FTP.value
21
+ upload_type = UploadType.FTP
22
22
 
23
23
  def __init__(self, **kwargs):
24
24
  super().__init__(**kwargs)
@@ -15,12 +15,12 @@ class FTPTest(unittest.TestCase):
15
15
  "remote_path": "/xixi",
16
16
  }
17
17
  asyncio.run(upload(
18
- upload_type=UploadType.FTP.value,
18
+ upload_type=UploadType.FTP,
19
19
  configuration=ftp_config,
20
20
  upload_data=UploadData(
21
- upload_type=UploadType.FTP.value,
21
+ upload_type=UploadType.FTP,
22
22
  data=dict(
23
- file_type=FTPFileType.CSV.value,
23
+ file_type=FTPFileType.CSV,
24
24
  file_name="new_file",
25
25
  data=[
26
26
  {
@@ -15,5 +15,5 @@ class UploadData(BaseModel):
15
15
 
16
16
  def build_data(self):
17
17
  dict_obj_data = self.data if isinstance(self.data, dict) else self.data.dict()
18
- if self.upload_type == UploadType.FTP.value:
18
+ if self.upload_type == UploadType.FTP:
19
19
  return FTPData(**dict_obj_data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.7
3
+ Version: 1.0.0.8
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -8,15 +8,15 @@ solax_py_library/upload/core/data_adapter/base.py,sha256=Va-SEe0eL3gobhNOnzHGkYB
8
8
  solax_py_library/upload/core/data_adapter/csv.py,sha256=8nlnV_43mMAR3re50MQJymzT5HYpZOo7eSeMsEfnEVE,861
9
9
  solax_py_library/upload/core/upload_service/__init__.py,sha256=uA-UeH31rDNxByeZwvPhNFHPV_-J8JyCev8geuc---k,269
10
10
  solax_py_library/upload/core/upload_service/base.py,sha256=dxCBVtPxDhN7oRTjnwnjtc2XAF4hyIz9HsYCJePlggg,912
11
- solax_py_library/upload/core/upload_service/ftp.py,sha256=7asBEbe3eckl7kJsq8WvLUiY70SXRTMz9-Mnp9VtJ9Y,2697
11
+ solax_py_library/upload/core/upload_service/ftp.py,sha256=QdGA-1OW2z-fkIWtjz_9O5gOKMNr1WjQ6NDrtea5E5s,2691
12
12
  solax_py_library/upload/errors/__init__.py,sha256=pVAcSOXvlsPJW3PjHLBOdbl7KvntiYmz7TP0XuRwZ_A,243
13
13
  solax_py_library/upload/errors/base.py,sha256=T01ZrZHF25PWgCrOv76Vhg26hds3I1Yy8Kl2LZRKOxo,258
14
14
  solax_py_library/upload/errors/upload_error.py,sha256=9pCZzR_y3-VkBWSs5w7mMHYFRJjzVosIcxi-5SO8N1U,409
15
15
  solax_py_library/upload/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- solax_py_library/upload/test/test_ftp.py,sha256=axcdPOm3oEDlHOBI1pFWn_Dyh1aWmbhKPlRUaA7d-ew,1312
16
+ solax_py_library/upload/test/test_ftp.py,sha256=kKzZ8AuDR-TXpn45Bv_-SqeyCEY2kh7MZKB1bbtI2Tk,1294
17
17
  solax_py_library/upload/types/__init__.py,sha256=og9KBpYbcs36_S1izURj3vyHeuNOLJQrD9GpxK_JJaw,244
18
- solax_py_library/upload/types/client.py,sha256=3XFsOkglGj9exLkLgav1I8ITt92gzhQMC8oiqXXdwzE,498
18
+ solax_py_library/upload/types/client.py,sha256=fG674_QEpOw3ibO171lcxJ0cz27yGR_sd3zgiyr4yuI,492
19
19
  solax_py_library/upload/types/ftp.py,sha256=nOloYA_OHoGma1yg5ENWHzfIWK2hoBEwyoyJ72yRZjY,671
20
- solax_py_library-1.0.0.7.dist-info/METADATA,sha256=E3tQDChk9sYQ2p3AkXLQsI45MvLIZlqjUMKynB96aVs,1791
21
- solax_py_library-1.0.0.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
- solax_py_library-1.0.0.7.dist-info/RECORD,,
20
+ solax_py_library-1.0.0.8.dist-info/METADATA,sha256=Xxdv_wuNlPDUpELYrBoQLQ0VltX_UyCN1D7B6az6e0w,1791
21
+ solax_py_library-1.0.0.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
+ solax_py_library-1.0.0.8.dist-info/RECORD,,