atomicshop 2.18.9__py3-none-any.whl → 2.18.11__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.18.9'
4
+ __version__ = '2.18.11'
@@ -240,7 +240,7 @@ def thread_worker_main(
240
240
  if client_received_raw_data == b'':
241
241
  return
242
242
 
243
- client_message.response_auto_parsed = parse_http(client_message.request_raw_bytes, client_message)
243
+ client_message.request_auto_parsed = parse_http(client_message.request_raw_bytes, client_message)
244
244
  # This is needed for each cycle that is not HTTP, but its protocol maybe set by HTTP, like websocket.
245
245
  if protocol != '':
246
246
  client_message.protocol = protocol
@@ -310,6 +310,9 @@ def thread_worker_main(
310
310
  client_message.reinitialize_dynamic_vars()
311
311
  client_message.timestamp = datetime.now()
312
312
  client_message.response_raw_bytes = response_raw_bytes
313
+
314
+ record_and_statistics_write(client_message)
315
+
313
316
  error_on_send: str = sender.Sender(
314
317
  ssl_socket=client_socket, class_message=client_message.response_raw_bytes,
315
318
  logger=network_logger).send()
@@ -190,10 +190,17 @@ class ResponderParent:
190
190
 
191
191
  return response_raw_bytes
192
192
 
193
- def create_connect_response(self, class_client_message: ClientMessage):
193
+ @staticmethod
194
+ def create_connect_response(class_client_message: ClientMessage):
194
195
  """ This function should be overridden in the child class. """
195
- pass
196
+
197
+ _ = class_client_message
198
+ response_bytes_list: list[bytes] = list()
199
+ return response_bytes_list
196
200
 
197
201
  def create_response(self, class_client_message: ClientMessage):
198
202
  """ This function should be overridden in the child class. """
199
- pass
203
+
204
+ _ = class_client_message
205
+ response_bytes_list: list[bytes] = list()
206
+ return response_bytes_list
@@ -67,18 +67,18 @@ class ResponderGeneral(ResponderParent):
67
67
  # response_bytes_list.append(byte_response)
68
68
  return response_bytes_list
69
69
 
70
- def create_connect_response(self, class_client_message: ClientMessage):
71
- """
72
- This is almost the same as 'create_response' function, but it's used only when the client connects and before
73
- sending any data.
74
- """
75
-
76
- # byte_response: bytes = b''
77
- # self.logger.info(f"Response: {byte_response}")
78
-
79
- response_bytes_list: list[bytes] = list()
80
- # response_bytes_list.append(byte_response)
81
- return response_bytes_list
70
+ # def create_connect_response(self, class_client_message: ClientMessage):
71
+ # """
72
+ # This is almost the same as 'create_response' function, but it's used only when the client connects and before
73
+ # sending any data.
74
+ # """
75
+ #
76
+ # # byte_response: bytes = b''
77
+ # # self.logger.info(f"Response: {byte_response}")
78
+ #
79
+ # response_bytes_list: list[bytes] = list()
80
+ # # response_bytes_list.append(byte_response)
81
+ # return response_bytes_list
82
82
 
83
83
  # ==================================================================================================================
84
84
  # Uncomment this section in order to begin building custom responder.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.18.9
3
+ Version: 2.18.11
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=9q2Mv782fS2rPEx31KLLEgXZwkYGkRCBCQ-ZrA0tyd4,123
1
+ atomicshop/__init__.py,sha256=C0aTSSTBqdVk3pzn8IMpPCWlwB66070rvQVl-GxN9Sg,124
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
@@ -127,7 +127,7 @@ atomicshop/file_io/xmls.py,sha256=zh3SuK-dNaFq2NDNhx6ivcf4GYCfGM8M10PcEwDSpxk,21
127
127
  atomicshop/mitm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
128
128
  atomicshop/mitm/config_static.py,sha256=HIzxyMEj7DZksYvJsN5VuKpB-_HSVvuR6U59ztS9gi0,7871
129
129
  atomicshop/mitm/config_toml_editor.py,sha256=2p1CMcktWRR_NW-SmyDwylu63ad5e0-w1QPMa8ZLDBw,1635
130
- atomicshop/mitm/connection_thread_worker.py,sha256=hCtaaXIPIbawPFaKXumxlmtiEXPakw_PQtZ3qSxuXVo,27439
130
+ atomicshop/mitm/connection_thread_worker.py,sha256=fdeRBF8Ff-LgD_1PeGPVm2ET4BhRY_rCvESEuiJfWPI,27507
131
131
  atomicshop/mitm/import_config.py,sha256=0Ij14aISTllTOiWYJpIUMOWobQqGofD6uafui5uWllE,9272
132
132
  atomicshop/mitm/initialize_engines.py,sha256=NWz0yBErSrYBn0xWkJDBcHStBJ-kcsv9VtorcSP9x5M,8258
133
133
  atomicshop/mitm/message.py,sha256=mNo4Lphr_Jo6IlNX5mPJzABpogWGkjOhwI4meAivwHw,2987
@@ -141,11 +141,11 @@ atomicshop/mitm/engines/create_module_template_example.py,sha256=X5xhvbV6-g9jU_b
141
141
  atomicshop/mitm/engines/__parent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
142
142
  atomicshop/mitm/engines/__parent/parser___parent.py,sha256=HHaCXhScl3OlPjz6eUxsDpJaZyk6BNuDMc9xCkeo2Ws,661
143
143
  atomicshop/mitm/engines/__parent/recorder___parent.py,sha256=exfElkgOU57hupV6opRCeYPHw91GIkIZL6UY3f2OClM,5635
144
- atomicshop/mitm/engines/__parent/responder___parent.py,sha256=qIxfPiVZs4ZDDFYYeJJAiBWYg0cSfNDC-ibpGYnB2tA,8926
144
+ atomicshop/mitm/engines/__parent/responder___parent.py,sha256=yEgR33CkAd1b9jyH5E8I4E16upqjlcK3WLo3BFHdjyk,9157
145
145
  atomicshop/mitm/engines/__reference_general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
146
  atomicshop/mitm/engines/__reference_general/parser___reference_general.py,sha256=57MEPZMAjTO6xBDZ-yt6lgGJyqRrP0Do5Gk_cgCiPns,2998
147
147
  atomicshop/mitm/engines/__reference_general/recorder___reference_general.py,sha256=El2_YHLoHUCiKfkAmGlXxtFpmSjsUFdsb8I1MvSAFaM,653
148
- atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha256=r7WMv59xlVNttz15ppUvQbH2j5eKHAI-yIy1SCCu2lw,9523
148
+ atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha256=eg8dMLXUDJ-0muUqoYM9MrGAXwy_0PTZyB-Apa-QDuE,9553
149
149
  atomicshop/mitm/statistic_analyzer_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
150
150
  atomicshop/mitm/statistic_analyzer_helper/analyzer_helper.py,sha256=pk6L1t1ea1kvlBoR9QEJptOmaX-mumhwLsP2GCKukbk,5920
151
151
  atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=UnnY_FSTiXEfZ8SkDKU2s2qpgPYu1oOT99ghmY-zzas,19992
@@ -319,8 +319,8 @@ atomicshop/wrappers/socketw/ssl_base.py,sha256=kmiif84kMhBr5yjQW17p935sfjR5JKG0L
319
319
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh30KAV-jOpoFKT-m8,3395
320
320
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
321
321
  atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
322
- atomicshop-2.18.9.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
323
- atomicshop-2.18.9.dist-info/METADATA,sha256=Lrb80nXPqfa3g30GaTMVeYoROo39tuhNMbDdkxlJT4g,10576
324
- atomicshop-2.18.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
325
- atomicshop-2.18.9.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
326
- atomicshop-2.18.9.dist-info/RECORD,,
322
+ atomicshop-2.18.11.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
323
+ atomicshop-2.18.11.dist-info/METADATA,sha256=fPiMgd2ya3Qx6TH2EFly657O2nfWqraHCnlbBOJ5ZdA,10577
324
+ atomicshop-2.18.11.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
325
+ atomicshop-2.18.11.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
326
+ atomicshop-2.18.11.dist-info/RECORD,,