lyte 0.1.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.
- lyte/__init__.py +87 -0
- lyte/bibliopixel.py +837 -0
- lyte/client.py +160 -0
- lyte/crypto.py +51 -0
- lyte/discovery.py +60 -0
- lyte/errors.py +17 -0
- lyte/hamiltonian.py +170 -0
- lyte/logging.py +20 -0
- lyte/random_walk.py +119 -0
- lyte/realtime.py +71 -0
- lyte/retry.py +57 -0
- lyte/session.py +95 -0
- lyte-0.1.0.dist-info/METADATA +53 -0
- lyte-0.1.0.dist-info/RECORD +16 -0
- lyte-0.1.0.dist-info/WHEEL +5 -0
- lyte-0.1.0.dist-info/top_level.txt +1 -0
lyte/__init__.py
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Small dependency-free Lyte client."""
|
|
2
|
+
|
|
3
|
+
from .bibliopixel import (
|
|
4
|
+
Alternates,
|
|
5
|
+
ColorChase,
|
|
6
|
+
ColorFade,
|
|
7
|
+
ColorFill,
|
|
8
|
+
ColorPattern,
|
|
9
|
+
ColorWipe,
|
|
10
|
+
FireFlies,
|
|
11
|
+
HalvesRainbow,
|
|
12
|
+
LarsonScanner,
|
|
13
|
+
LinearRainbow,
|
|
14
|
+
PartyMode,
|
|
15
|
+
PixelPingPong,
|
|
16
|
+
Pulse,
|
|
17
|
+
Rainbow,
|
|
18
|
+
RainbowCycle,
|
|
19
|
+
SaberBlade,
|
|
20
|
+
Searchlights,
|
|
21
|
+
Twinkle,
|
|
22
|
+
Wave,
|
|
23
|
+
WhiteTwinkle,
|
|
24
|
+
)
|
|
25
|
+
from .client import LyteClient
|
|
26
|
+
from .discovery import DiscoveredDevice, discover
|
|
27
|
+
from .errors import (
|
|
28
|
+
AuthenticationError,
|
|
29
|
+
DiscoveryError,
|
|
30
|
+
LyteError,
|
|
31
|
+
ProtocolError,
|
|
32
|
+
)
|
|
33
|
+
from .hamiltonian import HamiltonianCounter, HamiltonianStreamer, hamiltonian_colors
|
|
34
|
+
from .random_walk import RandomWalk
|
|
35
|
+
from .retry import RetryConfig, retry_call
|
|
36
|
+
from .session import (
|
|
37
|
+
authenticate_with_retry,
|
|
38
|
+
led_count_from_gestalt,
|
|
39
|
+
read_gestalt,
|
|
40
|
+
send_frame_with_retry,
|
|
41
|
+
set_mac_from_gestalt,
|
|
42
|
+
set_off_mode_with_retry,
|
|
43
|
+
set_realtime_mode_with_retry,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
__all__ = [
|
|
47
|
+
"AuthenticationError",
|
|
48
|
+
"Alternates",
|
|
49
|
+
"ColorChase",
|
|
50
|
+
"ColorFade",
|
|
51
|
+
"ColorFill",
|
|
52
|
+
"ColorPattern",
|
|
53
|
+
"ColorWipe",
|
|
54
|
+
"FireFlies",
|
|
55
|
+
"HalvesRainbow",
|
|
56
|
+
"DiscoveredDevice",
|
|
57
|
+
"DiscoveryError",
|
|
58
|
+
"HamiltonianCounter",
|
|
59
|
+
"HamiltonianStreamer",
|
|
60
|
+
"hamiltonian_colors",
|
|
61
|
+
"LarsonScanner",
|
|
62
|
+
"LinearRainbow",
|
|
63
|
+
"PartyMode",
|
|
64
|
+
"PixelPingPong",
|
|
65
|
+
"ProtocolError",
|
|
66
|
+
"Pulse",
|
|
67
|
+
"Rainbow",
|
|
68
|
+
"RainbowCycle",
|
|
69
|
+
"RandomWalk",
|
|
70
|
+
"SaberBlade",
|
|
71
|
+
"Searchlights",
|
|
72
|
+
"LyteClient",
|
|
73
|
+
"LyteError",
|
|
74
|
+
"RetryConfig",
|
|
75
|
+
"Twinkle",
|
|
76
|
+
"Wave",
|
|
77
|
+
"WhiteTwinkle",
|
|
78
|
+
"authenticate_with_retry",
|
|
79
|
+
"discover",
|
|
80
|
+
"retry_call",
|
|
81
|
+
"led_count_from_gestalt",
|
|
82
|
+
"read_gestalt",
|
|
83
|
+
"send_frame_with_retry",
|
|
84
|
+
"set_off_mode_with_retry",
|
|
85
|
+
"set_mac_from_gestalt",
|
|
86
|
+
"set_realtime_mode_with_retry",
|
|
87
|
+
]
|