atomicshop 3.3.28__py3-none-any.whl → 3.3.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.

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__ = '3.3.28'
4
+ __version__ = '3.3.29'
@@ -773,7 +773,28 @@ def _loop_at_midnight_recs_archive(network_logger_name):
773
773
 
774
774
 
775
775
  def mitm_server_main(config_file_path: str, script_version: str):
776
+ # This is for Linux and MacOS.
777
+ signal.signal(signal.SIGTERM, _graceful_shutdown)
776
778
  signal.signal(signal.SIGINT, _graceful_shutdown)
779
+ # This is for Windows.
780
+ """
781
+ Example:
782
+ script = (Path(__file__).resolve().parent / "ServerTCPWithDNS.py").resolve()
783
+ p = subprocess.Popen(
784
+ [sys.executable, "-u", str(script)],
785
+ creationflags=subprocess.CREATE_NEW_PROCESS_GROUP,
786
+ # inherit console; do NOT use CREATE_NEW_CONSOLE
787
+ )
788
+ time.sleep(30)
789
+ p.send_signal(signal.CTRL_BREAK_EVENT)
790
+ try:
791
+ p.wait(timeout=5)
792
+ except subprocess.TimeoutExpired:
793
+ print("Graceful interrupt timed out; terminating")
794
+ p.terminate()
795
+ p.wait()
796
+ """
797
+ signal.signal(signal.SIGBREAK, _graceful_shutdown)
777
798
 
778
799
  try:
779
800
  # Main function should return integer with error code, 0 is successful.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomicshop
3
- Version: 3.3.28
3
+ Version: 3.3.29
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License-Expression: MIT
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=7_vQ7ANOGXMGTntv4aMk8d8oVSTFzWJBQnvcLQHYyFw,123
1
+ atomicshop/__init__.py,sha256=g-G7s5YKUYY2IiQIVuIj3eClhzuHJN9m-26BeB666_4,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
@@ -130,7 +130,7 @@ atomicshop/mitm/connection_thread_worker.py,sha256=zPgDoIrZw6iIfjt_vwAYBanjOz23D
130
130
  atomicshop/mitm/import_config.py,sha256=7aLfKqflc3ZnzKc2_Y4T0eenzQpKG94M0r-PaVwF99M,18881
131
131
  atomicshop/mitm/initialize_engines.py,sha256=qzz5jzh_lKC03bI1w5ebngVXo1K-RV3poAyW-nObyqo,11042
132
132
  atomicshop/mitm/message.py,sha256=CDhhm4BTuZE7oNZCjvIZ4BuPOW4MuIzQLOg91hJaxDI,3065
133
- atomicshop/mitm/mitm_main.py,sha256=C1lZr5-1yRUCtPgs8mBnt_bD7W1fNOweI45OpmlSOII,39501
133
+ atomicshop/mitm/mitm_main.py,sha256=vjdK18ix3oH3thTgCi5qlAL13Bw_PgHaLGH2D9xic8w,40229
134
134
  atomicshop/mitm/recs_files.py,sha256=tv8XFhYZMkBv4DauvpiAdPgvSo0Bcm1CghnmwO7dx8M,5018
135
135
  atomicshop/mitm/shared_functions.py,sha256=0lzeyINd44sVEfFbahJxQmz6KAMWbYrW5ou3UYfItvw,1777
136
136
  atomicshop/mitm/statistic_analyzer.py,sha256=EC9g21ocOsFzNfntV-nZHSGtrS1-Kxb0QDSGWS5FuNA,28942
@@ -314,8 +314,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=_gA8bMX6Sw_UCXKi2y9wNAwlqif
314
314
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
315
315
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
316
316
  atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
317
- atomicshop-3.3.28.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
318
- atomicshop-3.3.28.dist-info/METADATA,sha256=mpQNhoVSvg9_AcIj-Qot4Kpvk_LrNOXujfo9ctQbzbA,9318
319
- atomicshop-3.3.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
320
- atomicshop-3.3.28.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
321
- atomicshop-3.3.28.dist-info/RECORD,,
317
+ atomicshop-3.3.29.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
318
+ atomicshop-3.3.29.dist-info/METADATA,sha256=YW-NNKdGGuhqL6_KPk_ghosjrrYz0cj38rYlWINOAGI,9318
319
+ atomicshop-3.3.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
320
+ atomicshop-3.3.29.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
321
+ atomicshop-3.3.29.dist-info/RECORD,,