atomicshop 2.7.1__py3-none-any.whl → 2.7.2__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.7.1'
4
+ __version__ = '2.7.2'
@@ -18,10 +18,11 @@ def get_images():
18
18
  return images
19
19
 
20
20
 
21
- def remove_image(image_id_or_tag: str, print_kwargs: dict = None):
21
+ def remove_image(image_id_or_tag: str, force: bool = False, print_kwargs: dict = None):
22
22
  """
23
23
  Remove an image from the local registry by providing the image id or tag.
24
24
  :param image_id_or_tag: string, the image id or tag.
25
+ :param force: bool, force remove the image.
25
26
  :param print_kwargs: dict, the print arguments.
26
27
  :return:
27
28
  """
@@ -31,7 +32,7 @@ def remove_image(image_id_or_tag: str, print_kwargs: dict = None):
31
32
 
32
33
  client = docker.from_env()
33
34
 
34
- client.images.remove(image_id_or_tag)
35
+ client.images.remove(image_id_or_tag, force=force)
35
36
  print_api(f"Removed Image {image_id_or_tag} successfully.", color='green', **print_kwargs)
36
37
 
37
38
 
@@ -37,7 +37,6 @@ def create_docker_image_ubuntu(directory_path: str):
37
37
  # There are 2 images:
38
38
  # 'fkiecad/fact_extractor:latest' - The image that is downloaded.
39
39
  # 'fact_extractor:latest' - The image that is built.
40
- test = image.tags
41
40
  for tag in image.tags:
42
41
  if 'fact_extractor' in tag:
43
42
  dockerw.remove_image(image_id_or_tag=image.id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.7.1
3
+ Version: 2.7.2
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=sVRwqAqCM-R_EAkLpyvraUM5ZjkXAXxNIPO93aB1p3Q,122
1
+ atomicshop/__init__.py,sha256=TozzApCxU71SSLmjAZiCz1GbHRQyojy71z7Aqk7D41g,122
2
2
  atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
3
3
  atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
4
4
  atomicshop/appointment_management.py,sha256=N3wVGJgrqJfsj_lqiRfaL3FxMEe57by5Stzanh189mk,7263
@@ -149,7 +149,7 @@ atomicshop/wrappers/certauthw/certauth.py,sha256=hKedW0DOWlEigSNm8wu4SqHkCQsGJ1t
149
149
  atomicshop/wrappers/certauthw/certauthw.py,sha256=4WvhjANI7Kzqrr_nKmtA8Kf7B6rute_5wfP65gwQrjw,8082
150
150
  atomicshop/wrappers/ctyping/process_winapi.py,sha256=QcXL-ETtlSSkoT8F7pYle97ubGWsjYp8cx8HxkVMgAc,2762
151
151
  atomicshop/wrappers/dockerw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
- atomicshop/wrappers/dockerw/dockerw.py,sha256=UMwTWiblm6GYQNFgFe85UVBD-mT_33M2E1GO0a2IbJg,6183
152
+ atomicshop/wrappers/dockerw/dockerw.py,sha256=w8zSJr5C7cbvbuG09ORCpAe0BOcibqqL_Z2EKEBHYK4,6266
153
153
  atomicshop/wrappers/dockerw/install_docker.py,sha256=dpSOmD690oLukoLCo0u6Pzh5fRyCWBuSQEtG8VwC3jk,2765
154
154
  atomicshop/wrappers/elasticsearchw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
155
  atomicshop/wrappers/elasticsearchw/config_basic.py,sha256=nMtWYBlkQwzUMTLBaL3US8-f87bNPS_wzVxpLR1D6Hc,121
@@ -159,7 +159,7 @@ atomicshop/wrappers/factw/config_fact.py,sha256=J-K9Zn50WcDC7ubb-boraSZExfBk7a6M
159
159
  atomicshop/wrappers/factw/config_install.py,sha256=QRygFnZ5r1ybJQl7ftFci3kNRmU-a-w3lMG1joElvcY,417
160
160
  atomicshop/wrappers/factw/get_file_data.py,sha256=ChKC0OjgjFlNubZQBwcGhRO3L2pccc27RLRlAMIUix4,1641
161
161
  atomicshop/wrappers/factw/fact_extractor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
162
- atomicshop/wrappers/factw/fact_extractor/docker_image.py,sha256=v6ZSG8lnagTwOWOcPszlNRqPWuCzXScuw72XEXAq8YU,2519
162
+ atomicshop/wrappers/factw/fact_extractor/docker_image.py,sha256=2wFzJd5iloXg5_bRDpaDpX_km8neTLuJgiqiEFQmgbk,2492
163
163
  atomicshop/wrappers/factw/fact_extractor/get_extractor.py,sha256=2mfOAftHIlCcGt1s7MWdq7DsDCuI6wX3MtvcEZ4SK-0,756
164
164
  atomicshop/wrappers/factw/install/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
165
  atomicshop/wrappers/factw/install/install_after_restart.py,sha256=Wixuc-foMA0qGjzypbbQ5sdE-F72yIKmrI9c6xwLY-g,1571
@@ -212,8 +212,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
212
212
  atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
213
213
  atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
214
214
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
215
- atomicshop-2.7.1.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
216
- atomicshop-2.7.1.dist-info/METADATA,sha256=1Hm5RoEb-nIaIqoVnwVDgqYcCebKtIqG9LQq5gBMAa8,10369
217
- atomicshop-2.7.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
218
- atomicshop-2.7.1.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
219
- atomicshop-2.7.1.dist-info/RECORD,,
215
+ atomicshop-2.7.2.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
216
+ atomicshop-2.7.2.dist-info/METADATA,sha256=1Z5YAD-v2gwpnZxf7dCVNGdLRydjB5cHznkb7_TxQVA,10369
217
+ atomicshop-2.7.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
218
+ atomicshop-2.7.2.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
219
+ atomicshop-2.7.2.dist-info/RECORD,,