atomicshop 2.11.6__py3-none-any.whl → 2.11.8__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.11.6'
4
+ __version__ = '2.11.8'
@@ -90,6 +90,11 @@ def install_docker_ubuntu(
90
90
  """
91
91
 
92
92
  if use_docker_installer:
93
+ if not ubuntu_terminal.is_package_installed('curl'):
94
+ print_api('curl is not installed, installing...', color='yellow')
95
+ ubuntu_terminal.update_system_packages()
96
+ ubuntu_terminal.install_packages(['curl'])
97
+
93
98
  # Use the docker installer script.
94
99
  # The script will install docker and add the current user to the docker group.
95
100
  # The script will also install docker-compose and docker-buildx.
@@ -21,6 +21,20 @@ def install_packages(package_list: list[str]):
21
21
 
22
22
 
23
23
  def is_package_installed(package: str) -> bool:
24
+ try:
25
+ # Run the apt-cache show command to check if the package exists
26
+ result = subprocess.run(['apt-cache', 'show', package], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
27
+ # If the return code is 0 and the output contains package information, it exists
28
+ if result.returncode == 0 and b'Package:' in result.stdout:
29
+ return True
30
+ else:
31
+ return False
32
+ except Exception as e:
33
+ print(f"An error occurred: {e}")
34
+ return False
35
+
36
+
37
+ def is_executable_exists(package: str) -> bool:
24
38
  """
25
39
  Function checks if a package is installed.
26
40
  :param package: str, package name.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.11.6
3
+ Version: 2.11.8
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=1GIPBXVM8LlyjIYBWi3UYNFxXml2B9wfvzgynKDN1-s,123
1
+ atomicshop/__init__.py,sha256=1jrZZa-oU7IbMcuWfPImAd4L_0Yx5b9PfAFMudxrmBQ,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
@@ -151,7 +151,7 @@ atomicshop/wrappers/olefilew.py,sha256=biD5m58rogifCYmYhJBrAFb9O_Bn_spLek_9HofLe
151
151
  atomicshop/wrappers/pipw.py,sha256=iq4pDhmrHqKbcRi3Y6_v2PQSdb4fqfAx79rsX7JEmXo,801
152
152
  atomicshop/wrappers/process_wrapper_pbtk.py,sha256=ycPmBRnv627RWks6N8OhxJQe8Gu3h3Vwj-4HswPOw0k,599
153
153
  atomicshop/wrappers/pyopensslw.py,sha256=OBWxA6EJ2vU_Qlf4M8m6ilcG3hyYB4yB0EsXUf7NhEU,6804
154
- atomicshop/wrappers/ubuntu_terminal.py,sha256=Ykt3vSkvS2IddjRfZqwDbW98g4E1cServj6iUhg0n30,6121
154
+ atomicshop/wrappers/ubuntu_terminal.py,sha256=90YmBi1qc-UAEA6560sYKDnPMnIHzJXznk67cHf4_Vg,6687
155
155
  atomicshop/wrappers/wslw.py,sha256=AKphiHLSddL7ErevUowr3f9Y1AgGz_R3KZ3NssW07h8,6959
156
156
  atomicshop/wrappers/certauthw/certauth.py,sha256=hKedW0DOWlEigSNm8wu4SqHkCQsGJ1tJfH7s4nr3Bk0,12223
157
157
  atomicshop/wrappers/certauthw/certauthw.py,sha256=4WvhjANI7Kzqrr_nKmtA8Kf7B6rute_5wfP65gwQrjw,8082
@@ -164,7 +164,7 @@ atomicshop/wrappers/ctyping/msi_windows_installer/extract_msi_main.py,sha256=eyF
164
164
  atomicshop/wrappers/ctyping/msi_windows_installer/tables.py,sha256=ajiFiLXl1prg2kOhatfT8E2RKX7F8JjUJpwkVuKu1GY,16263
165
165
  atomicshop/wrappers/dockerw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
166
  atomicshop/wrappers/dockerw/dockerw.py,sha256=w8zSJr5C7cbvbuG09ORCpAe0BOcibqqL_Z2EKEBHYK4,6266
167
- atomicshop/wrappers/dockerw/install_docker.py,sha256=xTxp1kbzJPKVwuz_BDELN-asX9yTbIXUTBzjkuWi0n4,7011
167
+ atomicshop/wrappers/dockerw/install_docker.py,sha256=a5CWW9RyxpOVpBekiaDMCvdgZYCXYK__czEETMoEvWg,7264
168
168
  atomicshop/wrappers/elasticsearchw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
169
  atomicshop/wrappers/elasticsearchw/config_basic.py,sha256=fDujtrjEjbWiYh_WQ3OcYp_8mXhXPYeKLy4wSPL5qM0,1177
170
170
  atomicshop/wrappers/elasticsearchw/elasticsearchw.py,sha256=7TqFdEFznO8NlligJhEKk1vm641ALpCYdaRl1uoXdzM,9768
@@ -242,8 +242,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
242
242
  atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
243
243
  atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
244
244
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
245
- atomicshop-2.11.6.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
246
- atomicshop-2.11.6.dist-info/METADATA,sha256=YN9tPOiTb4sKtzflGoOfE4SEva2dSO2VCSr3PW49YJ8,10447
247
- atomicshop-2.11.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
248
- atomicshop-2.11.6.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
249
- atomicshop-2.11.6.dist-info/RECORD,,
245
+ atomicshop-2.11.8.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
246
+ atomicshop-2.11.8.dist-info/METADATA,sha256=1rfRsGXI3bpnL8LjpAn0p7l8Dd7nivhxA93kugO8_Mk,10447
247
+ atomicshop-2.11.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
248
+ atomicshop-2.11.8.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
249
+ atomicshop-2.11.8.dist-info/RECORD,,