atomicshop 3.3.9__py3-none-any.whl → 3.3.10__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.9'
4
+ __version__ = '3.3.10'
@@ -303,14 +303,16 @@ class DnsServer:
303
303
  time.sleep(1)
304
304
  raise DnsConfigurationValuesError(e)
305
305
 
306
- host_ips: list[str] = networks.get_host_ips(ipv6=False)
307
- if self.listening_interface not in host_ips:
308
- message = (f"Listening interface [{self.listening_interface}] is not assigned to any of the host "
309
- f"network interfaces. Current host IPv4 addresses: {host_ips}")
310
- print_api(f'DnsConfigurationValuesError: {str(message)}', error_type=True, color="red", logger=self.logger)
311
- # Wait for the message to be printed and saved to file.
312
- time.sleep(1)
313
- raise DnsConfigurationValuesError(message)
306
+ # If the listening interface is not localhost, check if the interface can be bound to.
307
+ if not self.listening_interface.startswith('127.'):
308
+ host_ips: list[str] = networks.get_host_ips(ipv6=False)
309
+ if self.listening_interface not in host_ips:
310
+ message = (f"Listening interface [{self.listening_interface}] is not assigned to any of the host "
311
+ f"network interfaces. Current host IPv4 addresses: {host_ips}")
312
+ print_api(f'DnsConfigurationValuesError: {str(message)}', error_type=True, color="red", logger=self.logger)
313
+ # Wait for the message to be printed and saved to file.
314
+ time.sleep(1)
315
+ raise DnsConfigurationValuesError(message)
314
316
 
315
317
  ips_ports: list[str] = [f'{self.listening_interface}:{self.listening_port}']
316
318
  port_in_use = psutil_networks.get_processes_using_port_list(ips_ports)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomicshop
3
- Version: 3.3.9
3
+ Version: 3.3.10
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=E3S7H0jQWGqjILSoky2n8u09FS0ToNPC9B6NTFZ6i2s,122
1
+ atomicshop/__init__.py,sha256=HY3DYsUk0tU3jIXn3TtE_YStylYwC51UrRbr7MMqCM0,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
@@ -311,7 +311,7 @@ atomicshop/wrappers/socketw/accepter.py,sha256=4I9ORugRDvwaqSzm_gWSjZnRwQGY8hDTl
311
311
  atomicshop/wrappers/socketw/base.py,sha256=EcosGkD8VzgBY3GeIHDSG29ThQfXwg3-GQPmBTAqTdw,3048
312
312
  atomicshop/wrappers/socketw/certificator.py,sha256=mtWPJ_ew3OSwt0-1W4jaoco1VIY4NRCrMv3mDUxb_Cc,12418
313
313
  atomicshop/wrappers/socketw/creator.py,sha256=LGI4gcgJ47thx6f96rjwjPz3CsTAIv6VxWFY4EyUF2E,13667
314
- atomicshop/wrappers/socketw/dns_server.py,sha256=SYpjiBWHfYnTpHoekKe5UvTucrdtuQcjyW-CIT2AglU,55767
314
+ atomicshop/wrappers/socketw/dns_server.py,sha256=GOYMvHvS6Fx7s-DRygGqO7_o8_Qt9on3HmKxgOSznRE,55956
315
315
  atomicshop/wrappers/socketw/exception_wrapper.py,sha256=qW_1CKyPgGlsIt7_jusKkMV4A4hih4bX324u0PLnoO8,7382
316
316
  atomicshop/wrappers/socketw/get_process.py,sha256=aJC-_qFUv3NgWCSUzDI72E4z8_-VTZE9NVZ0CwUoNlM,5698
317
317
  atomicshop/wrappers/socketw/receiver.py,sha256=9B3MvcDqr4C3x2fsnjG5SQognd1wRqsBgikxZa0wXG8,8243
@@ -325,9 +325,9 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=_gA8bMX6Sw_UCXKi2y9wNAwlqif
325
325
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
326
326
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
327
327
  atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
328
- atomicshop-3.3.9.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
329
- atomicshop-3.3.9.dist-info/METADATA,sha256=tAksy0C2kBQBoyBa3TkozMBkD0KlKEBZ09b2oJYY4pQ,9311
330
- atomicshop-3.3.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
331
- atomicshop-3.3.9.dist-info/entry_points.txt,sha256=SJEgEP0KoFtfxuGwe5tOzKfXkjR9Dv6YYug33KNYxyY,69
332
- atomicshop-3.3.9.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
333
- atomicshop-3.3.9.dist-info/RECORD,,
328
+ atomicshop-3.3.10.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
329
+ atomicshop-3.3.10.dist-info/METADATA,sha256=Lfm_L1nmudKGv7HXvn9CwF79LD6LdVejuk7lW--4XTE,9312
330
+ atomicshop-3.3.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
331
+ atomicshop-3.3.10.dist-info/entry_points.txt,sha256=SJEgEP0KoFtfxuGwe5tOzKfXkjR9Dv6YYug33KNYxyY,69
332
+ atomicshop-3.3.10.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
333
+ atomicshop-3.3.10.dist-info/RECORD,,