ddi-fw 0.0.29__py3-none-any.whl → 0.0.30__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.
@@ -28,7 +28,7 @@ class Py7ZipHelper:
28
28
  parent_folder = os.path.dirname(file_path)
29
29
 
30
30
  # parts_path = f"{parent_folder}/parts"
31
- # create_folder_if_not_exists(parts_path)
31
+ create_folder_if_not_exists(output_path)
32
32
  # file_name, file_extension = os.path.splitext(file_path)
33
33
  # file_name = os.path.basename(file_path)
34
34
  # file_name, folder = get_file_name_and_folder(file_path)
@@ -93,7 +93,7 @@ class Py7ZipHelper:
93
93
  def extract_multiparts(self, input_path, output_path, output_file):
94
94
  parts = [input_path+'/' + p for p in os.listdir(input_path)]
95
95
  sorted_parts = sorted(parts, key = lambda x: int(x.split(".")[-1][4:]))
96
- # create_folder_if_not_exists(output_path)
96
+ create_folder_if_not_exists(output_path)
97
97
  with open(f"{output_path}/{output_file}", 'wb') as outfile:
98
98
  for part in sorted_parts:
99
99
  with open(part, 'rb') as infile:
@@ -108,9 +108,10 @@ class ZipHelper:
108
108
 
109
109
  def extract_multiparts(self, input_path, output_path, output_file):
110
110
  parts = [input_path+'/' + p for p in os.listdir(input_path)]
111
+ sorted_parts = sorted(parts, key = lambda x: int(x.split(".")[-1][4:]))
111
112
  create_folder_if_not_exists(output_path)
112
113
  with open(f"{output_path}/{output_file}", 'wb') as outfile:
113
- for part in parts:
114
+ for part in sorted_parts:
114
115
  with open(part, 'rb') as infile:
115
116
  outfile.write(infile.read())
116
117
  self.extract_single_file(f"{output_path}/{output_file}", output_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ddi_fw
3
- Version: 0.0.29
3
+ Version: 0.0.30
4
4
  Summary: Do not use :)
5
5
  Author-email: Kıvanç Bayraktar <bayraktarkivanc@gmail.com>
6
6
  Maintainer-email: Kıvanç Bayraktar <bayraktarkivanc@gmail.com>
@@ -77,10 +77,10 @@ ddi_fw/test/torch_cuda_test.py,sha256=R-4VGVErl_Ufk54DoZbgL_YXWoCYFyanIVWd6P39IE
77
77
  ddi_fw/test/type_guarding_test.py,sha256=KxjyBxohDu7lwpejalCj-REjtJ-k1S1wQbOB6TGY0O8,766
78
78
  ddi_fw/utils/__init__.py,sha256=cbvKldLWGINnVWIVwRQ04zdJpqOf-Ci9X03I8OgmJcw,257
79
79
  ddi_fw/utils/enums.py,sha256=19eJ3fX5eRK_xPvkYcukmug144jXPH4X9zQqtsFBj5A,671
80
- ddi_fw/utils/py7zr_helper.py,sha256=sZtsd8fdUps4fWVsWMUTdB3xezhCRjb7FqqluVX9PsA,4453
80
+ ddi_fw/utils/py7zr_helper.py,sha256=rWhz3Trj6bk6B24hMuff1fKdRbC0yuvaHFlL8-eaAhg,4450
81
81
  ddi_fw/utils/utils.py,sha256=Na6Y8mY-CFbQjrgd9xC8agcrjVvTj_7KIXqFm1H_3qU,3549
82
- ddi_fw/utils/zip_helper.py,sha256=7HHxOVAeltxRfNNtQPGojCAo7WiypWg_aVMR4NSj0Ys,5479
83
- ddi_fw-0.0.29.dist-info/METADATA,sha256=O5oBCJbEieCg6FesjOWP73aZ9AQ_oPFeqPw4NbNQ1po,1563
84
- ddi_fw-0.0.29.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
85
- ddi_fw-0.0.29.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
86
- ddi_fw-0.0.29.dist-info/RECORD,,
82
+ ddi_fw/utils/zip_helper.py,sha256=YRZA4tKZVBJwGQM0_WK6L-y5MoqkKoC-nXuuHK6CU9I,5567
83
+ ddi_fw-0.0.30.dist-info/METADATA,sha256=NMiiLuGtxDcvRyvpsWN9HcHGOQOQwYPtLSd5A4UwHuk,1563
84
+ ddi_fw-0.0.30.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
85
+ ddi_fw-0.0.30.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
86
+ ddi_fw-0.0.30.dist-info/RECORD,,