solax-py-library 1.0.0.4__py3-none-any.whl → 1.0.0.5__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.
@@ -9,7 +9,7 @@ class CSVDataAdapter(BaseDataAdapter):
9
9
  @classmethod
10
10
  def parse_data(cls, data: Union[List[List[Any]], List[Dict[str, Any]]]):
11
11
  with tempfile.NamedTemporaryFile(
12
- delete=False, mode="w", newline="", encoding="utf8"
12
+ delete=False, mode="w", newline="", encoding="utf-8-sig"
13
13
  ) as temp_file:
14
14
  if isinstance(data[0], list):
15
15
  writer = csv.writer(temp_file)
@@ -1,3 +1,4 @@
1
+ import asyncio
1
2
  import unittest
2
3
 
3
4
  from solax_py_library.upload.api.service import upload
@@ -6,14 +7,14 @@ from solax_py_library.upload.types.ftp import FTPFileType
6
7
 
7
8
 
8
9
  class FTPTest(unittest.TestCase):
9
- async def test_ftp_upload(self):
10
+ def test_ftp_upload(self):
10
11
  ftp_config = {
11
12
  "host": "10.1.31.181", # 测试host
12
13
  "user": "solax",
13
14
  "password": "sly402",
14
15
  "remote_path": "/xixi",
15
16
  }
16
- await upload(
17
+ asyncio.run(upload(
17
18
  upload_type=UploadType.FTP,
18
19
  configuration=ftp_config,
19
20
  upload_data=UploadData(
@@ -33,4 +34,4 @@ class FTPTest(unittest.TestCase):
33
34
  ],
34
35
  ),
35
36
  ),
36
- )
37
+ ))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: solax-py-library
3
- Version: 1.0.0.4
3
+ Version: 1.0.0.5
4
4
  Summary: some common tool
5
5
  Author: shenlvyu
6
6
  Author-email: 13296718439@163.com
@@ -5,7 +5,7 @@ solax_py_library/upload/api/service.py,sha256=ubFepgkG4pQwFAH_f1JJ-mU8ZZrNf9zUMy
5
5
  solax_py_library/upload/core/__init__.py,sha256=XMcnyDzCfsLwWaTAZt9-an7TuwYFqVNSt9W1_QRUrwA,89
6
6
  solax_py_library/upload/core/data_adapter/__init__.py,sha256=9CXepLZSOjZMfNjyYKAWQCWZt353kTL_0tFBlIeUIOo,116
7
7
  solax_py_library/upload/core/data_adapter/base.py,sha256=Va-SEe0eL3gobhNOnzHGkYBLIwf5RVawQdYRHHXg9g0,170
8
- solax_py_library/upload/core/data_adapter/csv.py,sha256=1muBW01YzX9-SJH1TQoiYavEm8CrHDNsREwVYIpl4QI,856
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=Mi1KFKy80-ssyJ1x3kgDxOeTpSM26cZI7YSW5UrAzs4,887
11
11
  solax_py_library/upload/core/upload_service/ftp.py,sha256=uQda33G-Pyz80qUzCUSYrLSDD1Swod2FxsRM_dbufFE,2652
@@ -13,10 +13,10 @@ solax_py_library/upload/errors/__init__.py,sha256=pVAcSOXvlsPJW3PjHLBOdbl7KvntiY
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=lxxorxh1LNRq51jQw9VhzGMQoWIoRPPbiOSrfc9DH7c,1282
16
+ solax_py_library/upload/test/test_ftp.py,sha256=lCuPgi1VOW_JTq9m7tlyxhR64x4oE0F1y0Dlv9lmz0I,1298
17
17
  solax_py_library/upload/types/__init__.py,sha256=og9KBpYbcs36_S1izURj3vyHeuNOLJQrD9GpxK_JJaw,244
18
18
  solax_py_library/upload/types/client.py,sha256=IE4tw2KFRmZABptmujB7SXG2-61cW7X7qN9b2IrBF3Y,505
19
19
  solax_py_library/upload/types/ftp.py,sha256=APxneZ9m1OwImr3xZWnNkhxlh5Wy5rNCdegcVuOLyEM,644
20
- solax_py_library-1.0.0.4.dist-info/METADATA,sha256=sqL343P23w27ipxiBekhN0MlTcSbxUiYE4Lxdv00WWQ,670
21
- solax_py_library-1.0.0.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
- solax_py_library-1.0.0.4.dist-info/RECORD,,
20
+ solax_py_library-1.0.0.5.dist-info/METADATA,sha256=W7YlNm0vaLcbnADeW6HGCj82hTCQ4GelDoQNs9tYWgU,670
21
+ solax_py_library-1.0.0.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
+ solax_py_library-1.0.0.5.dist-info/RECORD,,