atomicshop 2.16.1__py3-none-any.whl → 2.16.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.16.1'
4
+ __version__ = '2.16.2'
@@ -1,4 +1,5 @@
1
1
  import statistics
2
+ from pathlib import Path
2
3
  from typing import Literal
3
4
 
4
5
  from ...print_api import print_api
@@ -129,7 +130,12 @@ def get_data_dict_from_statistics_content(
129
130
  type_to_check: str = line['host'] + line['path']
130
131
  # Remove the parameters from the URL.
131
132
  url_parsed = urls.url_parser(type_to_check)
132
- type_to_check = url_parsed['path']
133
+
134
+ if url_parsed['file'] and Path(url_parsed['file']).suffix in ['.gz', '.gzip', '.zip']:
135
+ type_to_check = '/'.join(url_parsed['directories'][:-1])
136
+ else:
137
+ type_to_check = url_parsed['path']
138
+
133
139
  # Remove the last slash from the URL.
134
140
  type_to_check = type_to_check.removesuffix('/')
135
141
  else:
atomicshop/urls.py CHANGED
@@ -8,6 +8,11 @@ def url_parser(url):
8
8
  directories = parts.path.strip('/').split('/')
9
9
  queries = parts.query.strip('&').split('&')
10
10
 
11
+ if len(directories) > 1 and '.' in directories[-1]:
12
+ file = directories[-1]
13
+ else:
14
+ file = ''
15
+
11
16
  elements = {
12
17
  'scheme': parts.scheme,
13
18
  'netloc': parts.netloc,
@@ -17,6 +22,7 @@ def url_parser(url):
17
22
  'fragment': parts.fragment,
18
23
  'directories': directories,
19
24
  'queries': queries,
25
+ 'file': file
20
26
  }
21
27
 
22
28
  return elements
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.16.1
3
+ Version: 2.16.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=tNo-zv64ouxuBBLz7a94FTgCjvROQM_rI3A3RN7k-R4,123
1
+ atomicshop/__init__.py,sha256=DzLsNeiwKWTo5p75-S_CaNb8QEBZEyoz2eM5n5isUr8,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
@@ -41,7 +41,7 @@ atomicshop/system_resource_monitor.py,sha256=WvnnQrD5W9NRqOWI2YNcL-ut2UrvhrYToVl
41
41
  atomicshop/system_resources.py,sha256=0mhDZBEcMzToCOw5ArJhtqYjktOW6iJGdyRkJ01Cpwk,9272
42
42
  atomicshop/tempfiles.py,sha256=uq1ve2WlWehZ3NOTXJnpBBMt6HyCdBufqedF0HyzA6k,2517
43
43
  atomicshop/timer.py,sha256=7Zw1KRV0acHCRATMnanyX2MLBb63Hc-6us3rCZ9dNlY,2345
44
- atomicshop/urls.py,sha256=yqEn8YJS2Ma-cZidn0NZgIfuzFX0rReJ_L5IDt6iWJA,1414
44
+ atomicshop/urls.py,sha256=aJ0NGS9qqaKeqjkkWBs80jaBBg6MYBiPuLIyPGxscVc,1557
45
45
  atomicshop/uuids.py,sha256=JSQdm3ZTJiwPQ1gYe6kU0TKS_7suwVrHc8JZDGYlydM,2214
46
46
  atomicshop/virtualization.py,sha256=LPP4vjE0Vr10R6DA4lqhfX_WaNdDGRAZUW0Am6VeGco,494
47
47
  atomicshop/web.py,sha256=J9izvF5LNEVOVkkWon0XUgJmR7nrFln03nIxW7wUZWg,11547
@@ -143,7 +143,7 @@ atomicshop/mitm/engines/__reference_general/recorder___reference_general.py,sha2
143
143
  atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha256=1AM49UaFTKA0AHw-k3SV3uH3QbG-o6ux0c-GoWkKNU0,6993
144
144
  atomicshop/mitm/statistic_analyzer_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
145
145
  atomicshop/mitm/statistic_analyzer_helper/analyzer_helper.py,sha256=pk6L1t1ea1kvlBoR9QEJptOmaX-mumhwLsP2GCKukbk,5920
146
- atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=xMvFnbsiDjtbmASErV-Deuy9u4ft14seM33o-immhhM,16391
146
+ atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=9weATjSy0Ne8XceW0LeEZ-dI_y_yZfgUNx9ZfuQsjcc,16618
147
147
  atomicshop/monitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
148
148
  atomicshop/monitor/change_monitor.py,sha256=K5NlVp99XIDDPnQQMdru4BDmua_DtcDIhVAzkTOvD5s,7673
149
149
  atomicshop/monitor/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -304,8 +304,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=SdchUf9qrPk1Rrat0RzvM
304
304
  atomicshop/wrappers/socketw/socket_wrapper.py,sha256=655nGQp0HFy-7KNx8zHsA-miXi9ufC7DNeGsvvGALak,28415
305
305
  atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
306
306
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=q5vRA7jL5ERFhIGctn5HjBlOppwSY9qMoEVgo898AIo,2979
307
- atomicshop-2.16.1.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
308
- atomicshop-2.16.1.dist-info/METADATA,sha256=M8TADOGpoNdNhtlfkIZsTKGma4EbAlbeDeSKjINGIvA,10502
309
- atomicshop-2.16.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
310
- atomicshop-2.16.1.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
311
- atomicshop-2.16.1.dist-info/RECORD,,
307
+ atomicshop-2.16.2.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
308
+ atomicshop-2.16.2.dist-info/METADATA,sha256=XKUGZGKugdxkcysucbwMsc6KljxRiR0m2sT0HKOtStU,10502
309
+ atomicshop-2.16.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
310
+ atomicshop-2.16.2.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
311
+ atomicshop-2.16.2.dist-info/RECORD,,