ddi-fw 0.0.28__py3-none-any.whl → 0.0.29__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.
@@ -1,5 +1,6 @@
1
1
  from collections import defaultdict
2
2
  import math
3
+ from ddi_fw.utils.utils import create_folder_if_not_exists
3
4
  import py7zr
4
5
  import os
5
6
  from os.path import basename
@@ -91,9 +92,10 @@ class Py7ZipHelper:
91
92
 
92
93
  def extract_multiparts(self, input_path, output_path, output_file):
93
94
  parts = [input_path+'/' + p for p in os.listdir(input_path)]
95
+ sorted_parts = sorted(parts, key = lambda x: int(x.split(".")[-1][4:]))
94
96
  # create_folder_if_not_exists(output_path)
95
97
  with open(f"{output_path}/{output_file}", 'wb') as outfile:
96
- for part in parts:
98
+ for part in sorted_parts:
97
99
  with open(part, 'rb') as infile:
98
100
  outfile.write(infile.read())
99
101
  self.extract_archive(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.28
3
+ Version: 0.0.29
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=c3itu4YwcnHX4gwxKd-7v3q50cz4doyJwHUEQnHR7zM,4305
80
+ ddi_fw/utils/py7zr_helper.py,sha256=sZtsd8fdUps4fWVsWMUTdB3xezhCRjb7FqqluVX9PsA,4453
81
81
  ddi_fw/utils/utils.py,sha256=Na6Y8mY-CFbQjrgd9xC8agcrjVvTj_7KIXqFm1H_3qU,3549
82
82
  ddi_fw/utils/zip_helper.py,sha256=7HHxOVAeltxRfNNtQPGojCAo7WiypWg_aVMR4NSj0Ys,5479
83
- ddi_fw-0.0.28.dist-info/METADATA,sha256=fxaezPvDWpy98dSdPTnF-PCK0HJFfBbOm2IHCuo5r5k,1563
84
- ddi_fw-0.0.28.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
85
- ddi_fw-0.0.28.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
86
- ddi_fw-0.0.28.dist-info/RECORD,,
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,,