atomicshop 2.19.14__py3-none-any.whl → 2.19.15__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.19.14'
4
+ __version__ = '2.19.15'
@@ -0,0 +1,38 @@
1
+ import os.path
2
+ import sys
3
+ import argparse
4
+
5
+ from atomicshop.file_io import tomls
6
+
7
+
8
+ def parse_args():
9
+ parser = argparse.ArgumentParser(
10
+ description='Update the config.toml file.\n'
11
+ 'This script will update the current config.toml file with the keys from the target config.toml file.\n'
12
+ 'If the key is not present in the current config.toml file, it will be added.\n'
13
+ 'If the key is present in the current config.toml file, its value will be left unchanged.\n')
14
+ parser.add_argument('current_config_file', type=str, help="Path to the current config.toml file that will be updated.")
15
+ parser.add_argument('target_config_file', type=str, help="Path to the target config.toml file that we'll get the updates from.")
16
+ parser.add_argument('-n', '--new_file_path', type=str, help="(OPTIONAL) Path to the new config.toml file that will be created with the updates.", default=None)
17
+ return parser.parse_args()
18
+
19
+
20
+ def main():
21
+ args = parse_args()
22
+
23
+ if os.path.isfile(args.current_config_file) is False:
24
+ print(f"Error: The current config file '{args.current_config_file}' does not exist.")
25
+ return 1
26
+ if os.path.isfile(args.target_config_file) is False:
27
+ print(f"Error: The target config file '{args.target_config_file}' does not exist.")
28
+ return 1
29
+
30
+ tomls.update_toml_file_with_new_config(
31
+ main_config_file_path=args.current_config_file,
32
+ changes_config_file_path=args.target_config_file,
33
+ new_config_file_path=args.new_file_path)
34
+ return 0
35
+
36
+
37
+ if __name__ == '__main__':
38
+ sys.exit(main())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.19.14
3
+ Version: 2.19.15
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=jnzkSiVKr7rNaRPe51te8qpwDBNj2V37gzYMQVqPkoQ,124
1
+ atomicshop/__init__.py,sha256=WKaxSIjt5IaCfnoGVa6leC9_f4rctgz8oEdhJaSdjGs,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
@@ -64,6 +64,7 @@ atomicshop/a_mains/dns_gateway_setting.py,sha256=ncc2rFQCChxlNP59UshwmTonLqC6MWb
64
64
  atomicshop/a_mains/github_wrapper.py,sha256=F-PoZknVCxWPN0PTO6l7ZNiaYvo7OVFKFI_zlPt56ps,169
65
65
  atomicshop/a_mains/msi_unpacker.py,sha256=5hrkqETYt9HIqR_3PMf32_q06kCrIcsdm_RJV9oY438,188
66
66
  atomicshop/a_mains/search_for_hyperlinks_in_docx.py,sha256=HkIdo_Sz9nPbbbJf1mwfwFkyI7vkvpH8qiIkuYopN4w,529
67
+ atomicshop/a_mains/update_config_toml.py,sha256=s-x_vmWCbB7jljNhR7rviM0IM1_CyxvybMpAwNjkBto,1664
67
68
  atomicshop/a_mains/FACT/factw_fact_extractor_docker_image_main_sudo.py,sha256=DDKX3Wp2SmzMCEtCIEOUbEKMob2ZQ7VEQGLEf9uYXrs,320
68
69
  atomicshop/a_mains/FACT/update_extract.py,sha256=atNIBKDeGAM1XNymDjnEHq7Ke3i_rXlAfrT-1pDdz_Q,544
69
70
  atomicshop/addons/PlayWrightCodegen.cmd,sha256=Z5cnllsyXD4F1W2h-WLEnyFkg5nZy0-hTGHRWXVOuW4,173
@@ -329,8 +330,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh
329
330
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
330
331
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
331
332
  atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
332
- atomicshop-2.19.14.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
333
- atomicshop-2.19.14.dist-info/METADATA,sha256=1ZQp-Wt5osHkFGnEavFkPEC41-jmfqJsSsktj0T7aBk,10631
334
- atomicshop-2.19.14.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
335
- atomicshop-2.19.14.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
336
- atomicshop-2.19.14.dist-info/RECORD,,
333
+ atomicshop-2.19.15.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
334
+ atomicshop-2.19.15.dist-info/METADATA,sha256=rY7lZlB7UShEsmFFxnRswkAQm8YFkShGJURQks7NGiw,10631
335
+ atomicshop-2.19.15.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
336
+ atomicshop-2.19.15.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
337
+ atomicshop-2.19.15.dist-info/RECORD,,