slmp-connect-python 0.1.4__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.
slmp/__init__.py ADDED
@@ -0,0 +1,119 @@
1
+ """SLMP client library with high-level helpers as the recommended user surface.
2
+
3
+ The primary user-facing entry points are:
4
+
5
+ - ``read_typed`` / ``write_typed``
6
+ - ``read_words`` / ``read_dwords``
7
+ - ``write_bit_in_word``
8
+ - ``read_named`` / ``write_named``
9
+ - ``poll``
10
+ """
11
+
12
+ __version__ = "0.1.2"
13
+
14
+ from .async_client import AsyncSlmpClient
15
+ from .client import SlmpClient
16
+ from .constants import Command, FrameType, ModuleIONo, PLCSeries
17
+ from .core import (
18
+ DEVICE_CODES,
19
+ BlockReadResult,
20
+ DeviceBlockResult,
21
+ DeviceRef,
22
+ ExtensionSpec,
23
+ LabelArrayReadPoint,
24
+ LabelArrayReadResult,
25
+ LabelArrayWritePoint,
26
+ LabelRandomReadResult,
27
+ LabelRandomWritePoint,
28
+ LongTimerResult,
29
+ MonitorResult,
30
+ RandomReadResult,
31
+ SlmpResponse,
32
+ SlmpTarget,
33
+ SlmpTraceFrame,
34
+ TypeNameInfo,
35
+ parse_device,
36
+ parse_extended_device,
37
+ )
38
+ from .errors import (
39
+ SlmpBoundaryBehaviorWarning,
40
+ SlmpError,
41
+ SlmpPracticalPathWarning,
42
+ SlmpUnsupportedDeviceError,
43
+ )
44
+ from .utils import (
45
+ QueuedAsyncSlmpClient,
46
+ poll,
47
+ poll_sync,
48
+ read_bits,
49
+ read_bits_sync,
50
+ read_dwords,
51
+ read_dwords_sync,
52
+ read_named,
53
+ read_named_sync,
54
+ read_typed,
55
+ read_typed_sync,
56
+ read_words,
57
+ read_words_sync,
58
+ write_bit_in_word,
59
+ write_bit_in_word_sync,
60
+ write_bits,
61
+ write_bits_sync,
62
+ write_named,
63
+ write_named_sync,
64
+ write_typed,
65
+ write_typed_sync,
66
+ )
67
+
68
+ __all__ = [
69
+ "AsyncSlmpClient",
70
+ "BlockReadResult",
71
+ "Command",
72
+ "DEVICE_CODES",
73
+ "DeviceBlockResult",
74
+ "DeviceRef",
75
+ "ExtensionSpec",
76
+ "FrameType",
77
+ "LabelArrayReadPoint",
78
+ "LabelArrayReadResult",
79
+ "LabelArrayWritePoint",
80
+ "LabelRandomReadResult",
81
+ "LabelRandomWritePoint",
82
+ "LongTimerResult",
83
+ "ModuleIONo",
84
+ "MonitorResult",
85
+ "PLCSeries",
86
+ "QueuedAsyncSlmpClient",
87
+ "RandomReadResult",
88
+ "SlmpClient",
89
+ "SlmpBoundaryBehaviorWarning",
90
+ "SlmpError",
91
+ "SlmpPracticalPathWarning",
92
+ "SlmpUnsupportedDeviceError",
93
+ "SlmpResponse",
94
+ "SlmpTarget",
95
+ "SlmpTraceFrame",
96
+ "TypeNameInfo",
97
+ "parse_extended_device",
98
+ "parse_device",
99
+ "poll",
100
+ "poll_sync",
101
+ "read_bits",
102
+ "read_bits_sync",
103
+ "read_dwords",
104
+ "read_dwords_sync",
105
+ "read_named",
106
+ "read_named_sync",
107
+ "read_typed",
108
+ "read_typed_sync",
109
+ "read_words",
110
+ "read_words_sync",
111
+ "write_bit_in_word",
112
+ "write_bit_in_word_sync",
113
+ "write_bits",
114
+ "write_bits_sync",
115
+ "write_named",
116
+ "write_named_sync",
117
+ "write_typed",
118
+ "write_typed_sync",
119
+ ]