piwave 2.0.5__py3-none-any.whl → 2.0.6__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.
piwave/piwave.py CHANGED
@@ -13,6 +13,7 @@ import sys
13
13
  from typing import List, Optional, Callable
14
14
  from pathlib import Path
15
15
  from urllib.parse import urlparse
16
+ import atexit
16
17
 
17
18
  class Log:
18
19
  COLORS = { # absolutely not taken from stackoverflow trust
@@ -163,8 +164,7 @@ class PiWave:
163
164
 
164
165
  self._validate_environment()
165
166
 
166
- signal.signal(signal.SIGINT, self._handle_interrupt)
167
- signal.signal(signal.SIGTERM, self._handle_interrupt)
167
+ atexit.register(self.cleanup)
168
168
 
169
169
  Log.info(f"PiWave initialized - Frequency: {frequency}MHz, PS: {ps}, Loop: {loop}")
170
170
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piwave
3
- Version: 2.0.5
3
+ Version: 2.0.6
4
4
  Summary: A python module to broadcast radio waves with your Raspberry Pi.
5
5
  Home-page: https://github.com/douxxtech/piwave
6
6
  Author: Douxx
@@ -0,0 +1,7 @@
1
+ piwave/__init__.py,sha256=tAmruZvneieh6fgkf7chKzOX9Q6fEB-5Jt9FJ7Fl5xQ,74
2
+ piwave/piwave.py,sha256=SmBZmTW3NtJnHwCJcg1rLimSoYEOCZXRNrV7_3W5fPA,24307
3
+ piwave-2.0.6.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
4
+ piwave-2.0.6.dist-info/METADATA,sha256=ZLODMyeli7CeqRtkecDcDpBRXnXmZ5K8xaEVjc9NGmw,6768
5
+ piwave-2.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ piwave-2.0.6.dist-info/top_level.txt,sha256=xUbZ7Rk6OymSdDxmb9bfO8N-avJ9VYxP41GnXfwKYi8,7
7
+ piwave-2.0.6.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- piwave/__init__.py,sha256=tAmruZvneieh6fgkf7chKzOX9Q6fEB-5Jt9FJ7Fl5xQ,74
2
- piwave/piwave.py,sha256=NzSCOGaHCEquWYQvxlaYvnn4zRfx13vuCWBX6ETPEXA,24378
3
- piwave-2.0.5.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
4
- piwave-2.0.5.dist-info/METADATA,sha256=ANndDO8Kds5p9NZZD1ZMEVTBzxs3ZU2o59-QCBhf_YQ,6768
5
- piwave-2.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- piwave-2.0.5.dist-info/top_level.txt,sha256=xUbZ7Rk6OymSdDxmb9bfO8N-avJ9VYxP41GnXfwKYi8,7
7
- piwave-2.0.5.dist-info/RECORD,,
File without changes