atomicshop 3.2.7__py3-none-any.whl → 3.2.9__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 +1 -1
- atomicshop/mitm/engines/__parent/recorder___parent.py +14 -8
- {atomicshop-3.2.7.dist-info → atomicshop-3.2.9.dist-info}/METADATA +1 -1
- {atomicshop-3.2.7.dist-info → atomicshop-3.2.9.dist-info}/RECORD +7 -7
- {atomicshop-3.2.7.dist-info → atomicshop-3.2.9.dist-info}/LICENSE.txt +0 -0
- {atomicshop-3.2.7.dist-info → atomicshop-3.2.9.dist-info}/WHEEL +0 -0
- {atomicshop-3.2.7.dist-info → atomicshop-3.2.9.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -100,14 +100,13 @@ def save_message_worker(
|
|
|
100
100
|
logger
|
|
101
101
|
):
|
|
102
102
|
"""Worker function to process messages from the queue and write them to the file."""
|
|
103
|
-
file_created: bool = False
|
|
104
|
-
|
|
105
103
|
original_file_path_object: Path = Path(record_file_path_no_date)
|
|
106
104
|
original_file_stem: str = original_file_path_object.stem
|
|
107
105
|
original_file_extension: str = original_file_path_object.suffix
|
|
108
106
|
original_file_directory: str = str(original_file_path_object.parent)
|
|
109
107
|
|
|
110
108
|
original_datetime_string: str = get_datetime_string()
|
|
109
|
+
previous_date_string: str = get_date_string()
|
|
111
110
|
|
|
112
111
|
record_file_path: str = f'{original_file_directory}{os.sep}{original_datetime_string}_{original_file_stem}{original_file_extension}'
|
|
113
112
|
|
|
@@ -119,11 +118,11 @@ def save_message_worker(
|
|
|
119
118
|
if record_message_dict is None:
|
|
120
119
|
break
|
|
121
120
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
current_date_string: str = get_date_string()
|
|
122
|
+
|
|
123
|
+
# If current datetime string is different from the original datetime string, we will create a new file path.
|
|
124
|
+
if current_date_string != previous_date_string:
|
|
125
|
+
previous_date_string = current_date_string
|
|
127
126
|
current_datetime_string: str = get_datetime_string()
|
|
128
127
|
record_file_path = f'{original_file_directory}{os.sep}{current_datetime_string}_{original_file_stem}_partof_{original_datetime_string}{original_file_extension}'
|
|
129
128
|
|
|
@@ -147,4 +146,11 @@ def get_datetime_string():
|
|
|
147
146
|
now = datetime.now()
|
|
148
147
|
# Formatting the date and time and converting it to string object
|
|
149
148
|
day_time_format: str = now.strftime(recs_files.REC_FILE_DATE_TIME_FORMAT)
|
|
150
|
-
return day_time_format
|
|
149
|
+
return day_time_format
|
|
150
|
+
|
|
151
|
+
def get_date_string():
|
|
152
|
+
# current date and time in object
|
|
153
|
+
now = datetime.now()
|
|
154
|
+
# Formatting the date and time and converting it to string object
|
|
155
|
+
date_format: str = now.strftime(recs_files.REC_FILE_DATE_FORMAT)
|
|
156
|
+
return date_format
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=ra4BPlkU5m5LNtGBwX5DiXKx5O4BJ5SgCOyRPbxndBc,122
|
|
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
|
|
@@ -149,7 +149,7 @@ atomicshop/mitm/engines/create_module_template.py,sha256=2ceRWPzofpRf-R8VAMgXrx2
|
|
|
149
149
|
atomicshop/mitm/engines/create_module_template_main_example.py,sha256=LeQ44Rp2Gi_KbIDY_4OMS0odkSK3zFZWra_oAka5eJY,243
|
|
150
150
|
atomicshop/mitm/engines/__parent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
151
151
|
atomicshop/mitm/engines/__parent/parser___parent.py,sha256=HHaCXhScl3OlPjz6eUxsDpJaZyk6BNuDMc9xCkeo2Ws,661
|
|
152
|
-
atomicshop/mitm/engines/__parent/recorder___parent.py,sha256=
|
|
152
|
+
atomicshop/mitm/engines/__parent/recorder___parent.py,sha256=D99cbpMneY9STSAPETa6eIxyfs_Q9etRYxm2dosA-DI,6203
|
|
153
153
|
atomicshop/mitm/engines/__parent/requester___parent.py,sha256=j3QYOfQFEPSzIEWihkssNcfaLWC8cpdpi-ciPgjKNBc,5126
|
|
154
154
|
atomicshop/mitm/engines/__parent/responder___parent.py,sha256=mtiS_6ej9nxT9UhAQR4ftMqnqL-j_kO3u8KEaoEaI9k,9495
|
|
155
155
|
atomicshop/mitm/engines/__reference_general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -337,8 +337,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=WcNyaqEZ82S5-f3kzqi1nllNT2N
|
|
|
337
337
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
338
338
|
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
|
|
339
339
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
|
|
340
|
-
atomicshop-3.2.
|
|
341
|
-
atomicshop-3.2.
|
|
342
|
-
atomicshop-3.2.
|
|
343
|
-
atomicshop-3.2.
|
|
344
|
-
atomicshop-3.2.
|
|
340
|
+
atomicshop-3.2.9.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
341
|
+
atomicshop-3.2.9.dist-info/METADATA,sha256=jlHhB8jGICbCSLKn2kaaVDwwNuJ4ajRyr6vkaK9zMDs,10670
|
|
342
|
+
atomicshop-3.2.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
343
|
+
atomicshop-3.2.9.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
344
|
+
atomicshop-3.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|