pyg90alarm 2.3.0__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.
Files changed (42) hide show
  1. pyg90alarm/__init__.py +84 -0
  2. pyg90alarm/alarm.py +1274 -0
  3. pyg90alarm/callback.py +146 -0
  4. pyg90alarm/cloud/__init__.py +31 -0
  5. pyg90alarm/cloud/const.py +56 -0
  6. pyg90alarm/cloud/messages.py +593 -0
  7. pyg90alarm/cloud/notifications.py +410 -0
  8. pyg90alarm/cloud/protocol.py +518 -0
  9. pyg90alarm/const.py +273 -0
  10. pyg90alarm/definitions/__init__.py +3 -0
  11. pyg90alarm/definitions/base.py +247 -0
  12. pyg90alarm/definitions/devices.py +366 -0
  13. pyg90alarm/definitions/sensors.py +843 -0
  14. pyg90alarm/entities/__init__.py +3 -0
  15. pyg90alarm/entities/base_entity.py +93 -0
  16. pyg90alarm/entities/base_list.py +268 -0
  17. pyg90alarm/entities/device.py +97 -0
  18. pyg90alarm/entities/device_list.py +156 -0
  19. pyg90alarm/entities/sensor.py +891 -0
  20. pyg90alarm/entities/sensor_list.py +183 -0
  21. pyg90alarm/exceptions.py +63 -0
  22. pyg90alarm/local/__init__.py +0 -0
  23. pyg90alarm/local/base_cmd.py +293 -0
  24. pyg90alarm/local/config.py +157 -0
  25. pyg90alarm/local/discovery.py +103 -0
  26. pyg90alarm/local/history.py +272 -0
  27. pyg90alarm/local/host_info.py +89 -0
  28. pyg90alarm/local/host_status.py +52 -0
  29. pyg90alarm/local/notifications.py +117 -0
  30. pyg90alarm/local/paginated_cmd.py +132 -0
  31. pyg90alarm/local/paginated_result.py +135 -0
  32. pyg90alarm/local/targeted_discovery.py +162 -0
  33. pyg90alarm/local/user_data_crc.py +46 -0
  34. pyg90alarm/notifications/__init__.py +0 -0
  35. pyg90alarm/notifications/base.py +481 -0
  36. pyg90alarm/notifications/protocol.py +127 -0
  37. pyg90alarm/py.typed +0 -0
  38. pyg90alarm-2.3.0.dist-info/METADATA +277 -0
  39. pyg90alarm-2.3.0.dist-info/RECORD +42 -0
  40. pyg90alarm-2.3.0.dist-info/WHEEL +5 -0
  41. pyg90alarm-2.3.0.dist-info/licenses/LICENSE +21 -0
  42. pyg90alarm-2.3.0.dist-info/top_level.txt +1 -0
pyg90alarm/__init__.py ADDED
@@ -0,0 +1,84 @@
1
+ # Copyright (c) 2021 Ilia Sotnikov
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ # SOFTWARE.
20
+
21
+ """
22
+ Python package to control G90-based alarm systems.
23
+ """
24
+
25
+ from .alarm import G90Alarm
26
+ from .local.base_cmd import G90BaseCommand
27
+ from .local.paginated_result import G90PaginatedResult
28
+ from .notifications.base import (
29
+ G90DeviceAlert,
30
+ )
31
+ from .entities.sensor import (
32
+ G90Sensor, G90SensorAlertModes, G90SensorUserFlags
33
+ )
34
+ from .entities.device import G90Device
35
+ from .local.host_info import (
36
+ G90HostInfo, G90HostInfoWifiStatus, G90HostInfoGsmStatus
37
+ )
38
+ from .definitions.sensors import (
39
+ G90SensorDefinitions
40
+ )
41
+ from .definitions.devices import (
42
+ G90DeviceDefinitions
43
+ )
44
+ from .definitions.base import (
45
+ G90PeripheralTypes,
46
+ )
47
+ from .local.config import G90AlertConfigFlags
48
+ from .local.host_status import G90HostStatus
49
+ from .const import (
50
+ G90MessageTypes,
51
+ G90NotificationTypes,
52
+ G90ArmDisarmTypes,
53
+ G90AlertTypes,
54
+ G90AlertSources,
55
+ G90AlertStates,
56
+ G90AlertStateChangeTypes,
57
+ G90HistoryStates,
58
+ )
59
+ from .exceptions import (
60
+ G90Error, G90TimeoutError, G90CommandError, G90CommandFailure,
61
+ G90EntityRegistrationError, G90PeripheralDefinitionNotFound,
62
+ )
63
+
64
+ __all__ = [
65
+ 'G90Alarm', 'G90BaseCommand', 'G90PaginatedResult', 'G90DeviceAlert',
66
+ # Sensors and related
67
+ 'G90Sensor', 'G90PeripheralTypes', 'G90SensorAlertModes',
68
+ 'G90SensorUserFlags',
69
+ 'G90AlertConfigFlags',
70
+ 'G90Device',
71
+ # Panel information and status
72
+ 'G90HostInfo', 'G90HostInfoWifiStatus', 'G90HostInfoGsmStatus',
73
+ 'G90HostStatus',
74
+ # Types for alerts and notifications
75
+ 'G90MessageTypes', 'G90NotificationTypes', 'G90ArmDisarmTypes',
76
+ 'G90AlertTypes', 'G90AlertSources', 'G90AlertStates',
77
+ 'G90AlertStateChangeTypes', 'G90HistoryStates',
78
+ # Exceptions
79
+ 'G90Error',
80
+ 'G90TimeoutError', 'G90CommandError', 'G90CommandFailure',
81
+ 'G90EntityRegistrationError', 'G90PeripheralDefinitionNotFound',
82
+ # Definitions
83
+ 'G90SensorDefinitions', 'G90DeviceDefinitions'
84
+ ]