atomicshop 2.17.1__py3-none-any.whl → 2.17.2__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.

Potentially problematic release.


This version of atomicshop might be problematic. Click here for more details.

atomicshop/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  """Atomic Basic functions and classes to make developer life easier"""
2
2
 
3
3
  __author__ = "Den Kras"
4
- __version__ = '2.17.1'
4
+ __version__ = '2.17.2'
@@ -35,16 +35,6 @@ def _get_unique_filename(directory, filename):
35
35
  return unique_filename
36
36
 
37
37
 
38
- def _is_zip_file(file, zip_obj):
39
- with zip_obj.open(file) as file_data:
40
- return zips.is_zip_zipfile(file_data.read())
41
-
42
-
43
- def _is_7z_file(file, sevenz_obj):
44
- with sevenz_obj.open(file) as file_data:
45
- return sevenzs.is_7z(file_data.read())
46
-
47
-
48
38
  def _match_file_name(target, current, case_sensitive):
49
39
  if case_sensitive:
50
40
  return current.endswith(target)
@@ -139,7 +129,7 @@ def _search_in_archive(
139
129
  if callback_matched:
140
130
  _handle_file_extraction(item, extract_file_to_path, archived_file_bytes)
141
131
  else:
142
- if recursive and (_is_zip_file(item.filename, arch_obj) or _is_7z_file(item.filename, arch_obj)):
132
+ if recursive and (zips.is_zip_zipfile(archived_file_bytes) or sevenzs.is_7z(archived_file_bytes)):
143
133
  _search_archive_content(
144
134
  archived_file_bytes, file_names, results, found_set, case_sensitive, return_first_only,
145
135
  recursive, callback_functions, extract_file_to_path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.17.1
3
+ Version: 2.17.2
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=I7R8Nw2aUKfq_pc9VPI60hWdzw8gFUOZ3lLeLYKWVoQ,123
1
+ atomicshop/__init__.py,sha256=fZxhx9GigOSbMFUY_dyKq_MeAvWRB0kkmUwCZ3ILy2A,123
2
2
  atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
3
3
  atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
4
4
  atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
@@ -77,7 +77,7 @@ atomicshop/addons/process_list/compiled/Win10x64/process_list.exp,sha256=cbvukIT
77
77
  atomicshop/addons/process_list/compiled/Win10x64/process_list.lib,sha256=T2Ncs0MwKlAaCq8UKFMvfQAfcJdDx-nWiHVBfglrLIU,2112
78
78
  atomicshop/archiver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
79
  atomicshop/archiver/_search_in_zip.py,sha256=dd8qFSvIhcKmtnPj_uYNJFPmMwZp4tZys0kKgTw_ACw,8385
80
- atomicshop/archiver/search_in_archive.py,sha256=aj35JFNL4Gx1ZBfcnr5MpDhnfOWoOvmnt_ye1KhDQCI,12133
80
+ atomicshop/archiver/search_in_archive.py,sha256=tCbYZZ53oJrdjatj8_AYre6AZujuii4wRF42PH9falY,11865
81
81
  atomicshop/archiver/sevenz_app_w.py,sha256=BWcJb4f7jZEiETDBKyNLE0f5YLFPQx6B91_ObEIXWf8,3007
82
82
  atomicshop/archiver/sevenzs.py,sha256=5i_C50-deC1Cz_GQdMGofV2jeMPbbGWAvih-QnA72cg,1370
83
83
  atomicshop/archiver/shutils.py,sha256=BomnK7zT-nQXA1z0i2R2aTv8eu88wPx7tf2HtOdbmEc,1280
@@ -319,8 +319,8 @@ atomicshop/wrappers/socketw/ssl_base.py,sha256=kmiif84kMhBr5yjQW17p935sfjR5JKG0L
319
319
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=SDYI1cN0oaapvPeLxSXiJrelTy6xbZl-bopR0jAjVGE,3149
320
320
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
321
321
  atomicshop/wrappers/winregw/winreg_network.py,sha256=zZQfps-CdODQaTUADbHAwKHr5RUg7BLafnKWBbKaLN4,8728
322
- atomicshop-2.17.1.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
323
- atomicshop-2.17.1.dist-info/METADATA,sha256=6ixQRnoqipGf1eN7uXYojUqZB5KZTsXICDaF3-5QcSY,10499
324
- atomicshop-2.17.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
325
- atomicshop-2.17.1.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
326
- atomicshop-2.17.1.dist-info/RECORD,,
322
+ atomicshop-2.17.2.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
323
+ atomicshop-2.17.2.dist-info/METADATA,sha256=zpoROqa6g64vizJD01vVwLmwAaztvWVl_nmBKaceXL4,10499
324
+ atomicshop-2.17.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
325
+ atomicshop-2.17.2.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
326
+ atomicshop-2.17.2.dist-info/RECORD,,