slmp-connect-python 0.1.4__tar.gz → 0.1.6__tar.gz
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_connect_python-0.1.4 → slmp_connect_python-0.1.6}/LICENSE +21 -21
- slmp_connect_python-0.1.6/PKG-INFO +163 -0
- slmp_connect_python-0.1.6/README.md +129 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/pyproject.toml +117 -118
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/setup.cfg +4 -4
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/__init__.py +43 -2
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/async_client.py +1368 -1368
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/cli.py +6193 -6193
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/client.py +1943 -1943
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/constants.py +167 -167
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/core.py +975 -975
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/errors.py +25 -25
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp/utils.py +1333 -893
- slmp_connect_python-0.1.6/slmp_connect_python.egg-info/PKG-INFO +163 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp_connect_python.egg-info/SOURCES.txt +1 -5
- slmp_connect_python-0.1.4/slmp/py.typed → slmp_connect_python-0.1.6/slmp_connect_python.egg-info/dependency_links.txt +1 -1
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/tests/test_async_client.py +244 -215
- slmp_connect_python-0.1.6/tests/test_device_vectors.py +32 -0
- slmp_connect_python-0.1.6/tests/test_shared_spec.py +133 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/tests/test_slmp.py +2759 -2759
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/tests/test_utils.py +148 -9
- slmp_connect_python-0.1.4/PKG-INFO +0 -247
- slmp_connect_python-0.1.4/README.md +0 -213
- slmp_connect_python-0.1.4/slmp_connect_python.egg-info/PKG-INFO +0 -247
- slmp_connect_python-0.1.4/tests/test_device_vectors.py +0 -28
- slmp_connect_python-0.1.4/tests/test_live_sim.py +0 -76
- slmp_connect_python-0.1.4/tests/test_live_sim_3e.py +0 -58
- slmp_connect_python-0.1.4/tests/test_live_sim_exhaustive.py +0 -124
- slmp_connect_python-0.1.4/tests/test_live_sim_mixed_frames.py +0 -80
- slmp_connect_python-0.1.4/tests/test_live_sim_ultimate.py +0 -129
- /slmp_connect_python-0.1.4/slmp_connect_python.egg-info/dependency_links.txt → /slmp_connect_python-0.1.6/slmp/py.typed +0 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp_connect_python.egg-info/entry_points.txt +0 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp_connect_python.egg-info/requires.txt +0 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/slmp_connect_python.egg-info/top_level.txt +0 -0
- {slmp_connect_python-0.1.4 → slmp_connect_python-0.1.6}/tests/test_bugs_and_edges.py +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 fa-yoshinobu
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 fa-yoshinobu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: slmp-connect-python
|
|
3
|
+
Version: 0.1.6
|
|
4
|
+
Summary: SLMP Connect Python: client library for Mitsubishi SLMP binary communication
|
|
5
|
+
Author: fa-yoshinobu
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/fa-yoshinobu/plc-comm-slmp-python
|
|
8
|
+
Project-URL: Repository, https://github.com/fa-yoshinobu/plc-comm-slmp-python
|
|
9
|
+
Project-URL: Issues, https://github.com/fa-yoshinobu/plc-comm-slmp-python/issues
|
|
10
|
+
Keywords: slmp,melsec,mitsubishi,plc,3e,4e,binary
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Topic :: System :: Networking
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
26
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
27
|
+
Requires-Dist: pre-commit>=3.7; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
31
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
32
|
+
Requires-Dist: twine>=5.1; extra == "dev"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
[](https://github.com/fa-yoshinobu/plc-comm-slmp-python/actions/workflows/ci.yml)
|
|
36
|
+
[](https://fa-yoshinobu.github.io/plc-comm-slmp-python/)
|
|
37
|
+
[](https://pypi.org/project/slmp-connect-python/)
|
|
38
|
+
[](https://www.python.org/downloads/)
|
|
39
|
+
[](LICENSE)
|
|
40
|
+
[](https://github.com/astral-sh/ruff)
|
|
41
|
+
|
|
42
|
+
# SLMP Protocol for Python
|
|
43
|
+
|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
High-level SLMP helpers for Mitsubishi PLC communication over Binary 3E and 4E frames.
|
|
47
|
+
|
|
48
|
+
This repository treats the high-level helper layer as the recommended user surface:
|
|
49
|
+
|
|
50
|
+
- `SlmpConnectionOptions`
|
|
51
|
+
- `open_and_connect` / `open_and_connect_sync`
|
|
52
|
+
- `AsyncSlmpClient`
|
|
53
|
+
- `QueuedAsyncSlmpClient`
|
|
54
|
+
- `SlmpClient`
|
|
55
|
+
- `normalize_address`
|
|
56
|
+
- `read_typed` / `write_typed`
|
|
57
|
+
- `read_words_single_request` / `read_dwords_single_request`
|
|
58
|
+
- `read_words_chunked` / `read_dwords_chunked`
|
|
59
|
+
- `write_bit_in_word`
|
|
60
|
+
- `read_named` / `write_named`
|
|
61
|
+
- `poll`
|
|
62
|
+
|
|
63
|
+
## Installation
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip install slmp-connect-python
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The latest release lives at <https://pypi.org/project/slmp-connect-python/>, where wheel and tarball downloads and metadata are available.
|
|
70
|
+
|
|
71
|
+
## Quick Start
|
|
72
|
+
|
|
73
|
+
Recommended async path:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
import asyncio
|
|
77
|
+
|
|
78
|
+
from slmp import SlmpConnectionOptions, open_and_connect, read_named, write_typed
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
async def main() -> None:
|
|
82
|
+
options = SlmpConnectionOptions(
|
|
83
|
+
host="192.168.250.100",
|
|
84
|
+
port=1025,
|
|
85
|
+
plc_series="iqr",
|
|
86
|
+
frame_type="4e",
|
|
87
|
+
)
|
|
88
|
+
async with await open_and_connect(options) as client:
|
|
89
|
+
before = await read_named(client, ["D100", "D200:F", "D50.3"])
|
|
90
|
+
print("before:", before)
|
|
91
|
+
|
|
92
|
+
await write_typed(client, "D100", "U", 42)
|
|
93
|
+
|
|
94
|
+
after = await read_named(client, ["D100", "D200:F", "D50.3"])
|
|
95
|
+
print("after:", after)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
asyncio.run(main())
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Choose the connection profile explicitly:
|
|
102
|
+
|
|
103
|
+
- `plc_series="iqr", frame_type="4e"` for iQ-R / iQ-F targets
|
|
104
|
+
- `plc_series="ql", frame_type="3e"` for Q / L targets
|
|
105
|
+
|
|
106
|
+
## Supported PLC Registers
|
|
107
|
+
|
|
108
|
+
Start with these public high-level families first:
|
|
109
|
+
|
|
110
|
+
- word devices: `D`, `SD`, `R`, `ZR`, `TN`, `CN`
|
|
111
|
+
- bit devices: `M`, `X`, `Y`, `SM`, `B`
|
|
112
|
+
- typed forms: `D200:F`, `D300:L`, `D100:S`
|
|
113
|
+
- mixed snapshot forms: `D50.3`, `D100`, `D200:F`
|
|
114
|
+
- current-value long families: `LTN`, `LSTN`, `LCN`
|
|
115
|
+
|
|
116
|
+
See the full public table in [Supported PLC Registers](docsrc/user/SUPPORTED_REGISTERS.md).
|
|
117
|
+
|
|
118
|
+
## Public Documentation
|
|
119
|
+
|
|
120
|
+
- [Getting Started](docsrc/user/GETTING_STARTED.md)
|
|
121
|
+
- [Supported PLC Registers](docsrc/user/SUPPORTED_REGISTERS.md)
|
|
122
|
+
- [Latest Communication Verification](docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md)
|
|
123
|
+
- [User Guide](docsrc/user/USER_GUIDE.md)
|
|
124
|
+
- [Samples](docsrc/user/SAMPLES.md)
|
|
125
|
+
- [Error Codes](docsrc/user/ERROR_CODES.md)
|
|
126
|
+
|
|
127
|
+
Maintainer-only notes and retained evidence live under `internal_docs/`.
|
|
128
|
+
|
|
129
|
+
## High-Level API Guide
|
|
130
|
+
|
|
131
|
+
### Address Normalization
|
|
132
|
+
|
|
133
|
+
```python
|
|
134
|
+
from slmp import normalize_address
|
|
135
|
+
|
|
136
|
+
print(normalize_address("x20")) # X20
|
|
137
|
+
print(normalize_address("d200")) # D200
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Single Typed Values
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
from slmp import read_typed, write_typed
|
|
144
|
+
|
|
145
|
+
temperature = await read_typed(client, "D200", "F")
|
|
146
|
+
counter = await read_typed(client, "D300", "L")
|
|
147
|
+
await write_typed(client, "D100", "U", 1234)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Use `.bit` notation only with word devices such as `D50.3`.
|
|
151
|
+
Address bit devices directly as `M1000`, `M1001`, `X20`, or `Y20`.
|
|
152
|
+
|
|
153
|
+
## Development
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
run_ci.bat
|
|
157
|
+
build_docs.bat
|
|
158
|
+
release_check.bat
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## License
|
|
162
|
+
|
|
163
|
+
Distributed under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
[](https://github.com/fa-yoshinobu/plc-comm-slmp-python/actions/workflows/ci.yml)
|
|
2
|
+
[](https://fa-yoshinobu.github.io/plc-comm-slmp-python/)
|
|
3
|
+
[](https://pypi.org/project/slmp-connect-python/)
|
|
4
|
+
[](https://www.python.org/downloads/)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://github.com/astral-sh/ruff)
|
|
7
|
+
|
|
8
|
+
# SLMP Protocol for Python
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
High-level SLMP helpers for Mitsubishi PLC communication over Binary 3E and 4E frames.
|
|
13
|
+
|
|
14
|
+
This repository treats the high-level helper layer as the recommended user surface:
|
|
15
|
+
|
|
16
|
+
- `SlmpConnectionOptions`
|
|
17
|
+
- `open_and_connect` / `open_and_connect_sync`
|
|
18
|
+
- `AsyncSlmpClient`
|
|
19
|
+
- `QueuedAsyncSlmpClient`
|
|
20
|
+
- `SlmpClient`
|
|
21
|
+
- `normalize_address`
|
|
22
|
+
- `read_typed` / `write_typed`
|
|
23
|
+
- `read_words_single_request` / `read_dwords_single_request`
|
|
24
|
+
- `read_words_chunked` / `read_dwords_chunked`
|
|
25
|
+
- `write_bit_in_word`
|
|
26
|
+
- `read_named` / `write_named`
|
|
27
|
+
- `poll`
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install slmp-connect-python
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The latest release lives at <https://pypi.org/project/slmp-connect-python/>, where wheel and tarball downloads and metadata are available.
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
Recommended async path:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import asyncio
|
|
43
|
+
|
|
44
|
+
from slmp import SlmpConnectionOptions, open_and_connect, read_named, write_typed
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
async def main() -> None:
|
|
48
|
+
options = SlmpConnectionOptions(
|
|
49
|
+
host="192.168.250.100",
|
|
50
|
+
port=1025,
|
|
51
|
+
plc_series="iqr",
|
|
52
|
+
frame_type="4e",
|
|
53
|
+
)
|
|
54
|
+
async with await open_and_connect(options) as client:
|
|
55
|
+
before = await read_named(client, ["D100", "D200:F", "D50.3"])
|
|
56
|
+
print("before:", before)
|
|
57
|
+
|
|
58
|
+
await write_typed(client, "D100", "U", 42)
|
|
59
|
+
|
|
60
|
+
after = await read_named(client, ["D100", "D200:F", "D50.3"])
|
|
61
|
+
print("after:", after)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
asyncio.run(main())
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Choose the connection profile explicitly:
|
|
68
|
+
|
|
69
|
+
- `plc_series="iqr", frame_type="4e"` for iQ-R / iQ-F targets
|
|
70
|
+
- `plc_series="ql", frame_type="3e"` for Q / L targets
|
|
71
|
+
|
|
72
|
+
## Supported PLC Registers
|
|
73
|
+
|
|
74
|
+
Start with these public high-level families first:
|
|
75
|
+
|
|
76
|
+
- word devices: `D`, `SD`, `R`, `ZR`, `TN`, `CN`
|
|
77
|
+
- bit devices: `M`, `X`, `Y`, `SM`, `B`
|
|
78
|
+
- typed forms: `D200:F`, `D300:L`, `D100:S`
|
|
79
|
+
- mixed snapshot forms: `D50.3`, `D100`, `D200:F`
|
|
80
|
+
- current-value long families: `LTN`, `LSTN`, `LCN`
|
|
81
|
+
|
|
82
|
+
See the full public table in [Supported PLC Registers](docsrc/user/SUPPORTED_REGISTERS.md).
|
|
83
|
+
|
|
84
|
+
## Public Documentation
|
|
85
|
+
|
|
86
|
+
- [Getting Started](docsrc/user/GETTING_STARTED.md)
|
|
87
|
+
- [Supported PLC Registers](docsrc/user/SUPPORTED_REGISTERS.md)
|
|
88
|
+
- [Latest Communication Verification](docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md)
|
|
89
|
+
- [User Guide](docsrc/user/USER_GUIDE.md)
|
|
90
|
+
- [Samples](docsrc/user/SAMPLES.md)
|
|
91
|
+
- [Error Codes](docsrc/user/ERROR_CODES.md)
|
|
92
|
+
|
|
93
|
+
Maintainer-only notes and retained evidence live under `internal_docs/`.
|
|
94
|
+
|
|
95
|
+
## High-Level API Guide
|
|
96
|
+
|
|
97
|
+
### Address Normalization
|
|
98
|
+
|
|
99
|
+
```python
|
|
100
|
+
from slmp import normalize_address
|
|
101
|
+
|
|
102
|
+
print(normalize_address("x20")) # X20
|
|
103
|
+
print(normalize_address("d200")) # D200
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Single Typed Values
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
from slmp import read_typed, write_typed
|
|
110
|
+
|
|
111
|
+
temperature = await read_typed(client, "D200", "F")
|
|
112
|
+
counter = await read_typed(client, "D300", "L")
|
|
113
|
+
await write_typed(client, "D100", "U", 1234)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Use `.bit` notation only with word devices such as `D50.3`.
|
|
117
|
+
Address bit devices directly as `M1000`, `M1001`, `X20`, or `Y20`.
|
|
118
|
+
|
|
119
|
+
## Development
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
run_ci.bat
|
|
123
|
+
build_docs.bat
|
|
124
|
+
release_check.bat
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## License
|
|
128
|
+
|
|
129
|
+
Distributed under the [MIT License](LICENSE).
|
|
@@ -1,118 +1,117 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=69", "wheel"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "slmp-connect-python"
|
|
7
|
-
version = "0.1.
|
|
8
|
-
description = "SLMP Connect Python: client library for Mitsubishi SLMP binary communication"
|
|
9
|
-
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.10"
|
|
11
|
-
dependencies = []
|
|
12
|
-
authors = [{ name = "fa-yoshinobu" }]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"Development Status :: 3 - Alpha",
|
|
19
|
-
"Intended Audience :: Developers",
|
|
20
|
-
"Programming Language :: Python :: 3",
|
|
21
|
-
"Programming Language :: Python :: 3.10",
|
|
22
|
-
"Programming Language :: Python :: 3.11",
|
|
23
|
-
"Programming Language :: Python :: 3.12",
|
|
24
|
-
"Programming Language :: Python :: 3.13",
|
|
25
|
-
"Programming Language :: Python :: 3.14",
|
|
26
|
-
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
27
|
-
"Topic :: System :: Networking",
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
[project.urls]
|
|
31
|
-
Homepage = "https://github.com/fa-yoshinobu/plc-comm-slmp-python"
|
|
32
|
-
Repository = "https://github.com/fa-yoshinobu/plc-comm-slmp-python"
|
|
33
|
-
Issues = "https://github.com/fa-yoshinobu/plc-comm-slmp-python/issues"
|
|
34
|
-
|
|
35
|
-
[project.optional-dependencies]
|
|
36
|
-
dev = [
|
|
37
|
-
"build>=1.2",
|
|
38
|
-
"mypy>=1.10",
|
|
39
|
-
"pre-commit>=3.7",
|
|
40
|
-
"pytest>=8.0",
|
|
41
|
-
"pytest-asyncio>=0.23",
|
|
42
|
-
"pytest-cov>=5.0",
|
|
43
|
-
"ruff>=0.6",
|
|
44
|
-
"twine>=5.1",
|
|
45
|
-
]
|
|
46
|
-
|
|
47
|
-
[project.scripts]
|
|
48
|
-
slmp-connection-check = "slmp.cli:connection_check_main"
|
|
49
|
-
slmp-compatibility-probe = "slmp.cli:compatibility_probe_main"
|
|
50
|
-
slmp-compatibility-matrix-render = "slmp.cli:compatibility_matrix_render_main"
|
|
51
|
-
slmp-device-range-probe = "slmp.cli:device_range_probe_main"
|
|
52
|
-
slmp-register-boundary-probe = "slmp.cli:register_boundary_probe_main"
|
|
53
|
-
slmp-other-station-check = "slmp.cli:other_station_check_main"
|
|
54
|
-
slmp-open-items-recheck = "slmp.cli:open_items_recheck_main"
|
|
55
|
-
slmp-g-hg-extended-device-recheck = "slmp.cli:g_hg_extended_device_recheck_main"
|
|
56
|
-
slmp-g-hg-extended-device-coverage = "slmp.cli:g_hg_extended_device_coverage_main"
|
|
57
|
-
slmp-extended-device-recheck = "slmp.cli:extended_device_recheck_main"
|
|
58
|
-
slmp-pending-live-verification = "slmp.cli:pending_live_verification_main"
|
|
59
|
-
slmp-init-model-docs = "slmp.cli:init_model_docs_main"
|
|
60
|
-
slmp-device-access-matrix-sync = "slmp.cli:device_access_matrix_sync_main"
|
|
61
|
-
slmp-manual-write-verification = "slmp.cli:manual_write_verification_main"
|
|
62
|
-
slmp-manual-label-verification = "slmp.cli:manual_label_verification_main"
|
|
63
|
-
slmp-read-soak = "slmp.cli:read_soak_main"
|
|
64
|
-
slmp-mixed-read-load = "slmp.cli:mixed_read_load_main"
|
|
65
|
-
slmp-tcp-concurrency = "slmp.cli:tcp_concurrency_main"
|
|
66
|
-
slmp-regression-suite = "slmp.cli:regression_suite_main"
|
|
67
|
-
|
|
68
|
-
[tool.setuptools.packages.find]
|
|
69
|
-
include = ["slmp*"]
|
|
70
|
-
exclude = ["tests*", "scripts*", "
|
|
71
|
-
|
|
72
|
-
[tool.setuptools]
|
|
73
|
-
include-package-data = true
|
|
74
|
-
exclude-package-data = { "*" = ["TODO.md", ".pre-commit-config.yaml"] }
|
|
75
|
-
|
|
76
|
-
[tool.setuptools.package-data]
|
|
77
|
-
slmp = ["py.typed"]
|
|
78
|
-
|
|
79
|
-
[tool.ruff]
|
|
80
|
-
line-length = 120
|
|
81
|
-
target-version = "py310"
|
|
82
|
-
|
|
83
|
-
[tool.ruff.lint]
|
|
84
|
-
select = ["E", "F", "I", "B", "UP"]
|
|
85
|
-
|
|
86
|
-
[tool.ruff.lint.isort]
|
|
87
|
-
known-first-party = ["slmp"]
|
|
88
|
-
|
|
89
|
-
[tool.mypy]
|
|
90
|
-
files = ["slmp"]
|
|
91
|
-
warn_unused_configs = true
|
|
92
|
-
disallow_untyped_defs = true
|
|
93
|
-
check_untyped_defs = true
|
|
94
|
-
disallow_incomplete_defs = true
|
|
95
|
-
no_implicit_optional = true
|
|
96
|
-
warn_redundant_casts = true
|
|
97
|
-
warn_unused_ignores = true
|
|
98
|
-
warn_return_any = true
|
|
99
|
-
strict_equality = true
|
|
100
|
-
|
|
101
|
-
[tool.coverage.run]
|
|
102
|
-
source = ["slmp"]
|
|
103
|
-
branch = true
|
|
104
|
-
|
|
105
|
-
[tool.pytest.ini_options]
|
|
106
|
-
testpaths = ["tests"]
|
|
107
|
-
asyncio_mode = "auto"
|
|
108
|
-
|
|
109
|
-
[tool.coverage.report]
|
|
110
|
-
show_missing = true
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=69", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "slmp-connect-python"
|
|
7
|
+
version = "0.1.6"
|
|
8
|
+
description = "SLMP Connect Python: client library for Mitsubishi SLMP binary communication"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
dependencies = []
|
|
12
|
+
authors = [{ name = "fa-yoshinobu" }]
|
|
13
|
+
license = "MIT"
|
|
14
|
+
|
|
15
|
+
license-files = ["LICENSE"]
|
|
16
|
+
keywords = ["slmp", "melsec", "mitsubishi", "plc", "3e", "4e", "binary"]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 3 - Alpha",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Programming Language :: Python :: 3.14",
|
|
26
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
27
|
+
"Topic :: System :: Networking",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/fa-yoshinobu/plc-comm-slmp-python"
|
|
32
|
+
Repository = "https://github.com/fa-yoshinobu/plc-comm-slmp-python"
|
|
33
|
+
Issues = "https://github.com/fa-yoshinobu/plc-comm-slmp-python/issues"
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
dev = [
|
|
37
|
+
"build>=1.2",
|
|
38
|
+
"mypy>=1.10",
|
|
39
|
+
"pre-commit>=3.7",
|
|
40
|
+
"pytest>=8.0",
|
|
41
|
+
"pytest-asyncio>=0.23",
|
|
42
|
+
"pytest-cov>=5.0",
|
|
43
|
+
"ruff>=0.6",
|
|
44
|
+
"twine>=5.1",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.scripts]
|
|
48
|
+
slmp-connection-check = "slmp.cli:connection_check_main"
|
|
49
|
+
slmp-compatibility-probe = "slmp.cli:compatibility_probe_main"
|
|
50
|
+
slmp-compatibility-matrix-render = "slmp.cli:compatibility_matrix_render_main"
|
|
51
|
+
slmp-device-range-probe = "slmp.cli:device_range_probe_main"
|
|
52
|
+
slmp-register-boundary-probe = "slmp.cli:register_boundary_probe_main"
|
|
53
|
+
slmp-other-station-check = "slmp.cli:other_station_check_main"
|
|
54
|
+
slmp-open-items-recheck = "slmp.cli:open_items_recheck_main"
|
|
55
|
+
slmp-g-hg-extended-device-recheck = "slmp.cli:g_hg_extended_device_recheck_main"
|
|
56
|
+
slmp-g-hg-extended-device-coverage = "slmp.cli:g_hg_extended_device_coverage_main"
|
|
57
|
+
slmp-extended-device-recheck = "slmp.cli:extended_device_recheck_main"
|
|
58
|
+
slmp-pending-live-verification = "slmp.cli:pending_live_verification_main"
|
|
59
|
+
slmp-init-model-docs = "slmp.cli:init_model_docs_main"
|
|
60
|
+
slmp-device-access-matrix-sync = "slmp.cli:device_access_matrix_sync_main"
|
|
61
|
+
slmp-manual-write-verification = "slmp.cli:manual_write_verification_main"
|
|
62
|
+
slmp-manual-label-verification = "slmp.cli:manual_label_verification_main"
|
|
63
|
+
slmp-read-soak = "slmp.cli:read_soak_main"
|
|
64
|
+
slmp-mixed-read-load = "slmp.cli:mixed_read_load_main"
|
|
65
|
+
slmp-tcp-concurrency = "slmp.cli:tcp_concurrency_main"
|
|
66
|
+
slmp-regression-suite = "slmp.cli:regression_suite_main"
|
|
67
|
+
|
|
68
|
+
[tool.setuptools.packages.find]
|
|
69
|
+
include = ["slmp*"]
|
|
70
|
+
exclude = ["tests*", "scripts*", "internal_docs*"]
|
|
71
|
+
|
|
72
|
+
[tool.setuptools]
|
|
73
|
+
include-package-data = true
|
|
74
|
+
exclude-package-data = { "*" = ["TODO.md", ".pre-commit-config.yaml"] }
|
|
75
|
+
|
|
76
|
+
[tool.setuptools.package-data]
|
|
77
|
+
slmp = ["py.typed"]
|
|
78
|
+
|
|
79
|
+
[tool.ruff]
|
|
80
|
+
line-length = 120
|
|
81
|
+
target-version = "py310"
|
|
82
|
+
|
|
83
|
+
[tool.ruff.lint]
|
|
84
|
+
select = ["E", "F", "I", "B", "UP"]
|
|
85
|
+
|
|
86
|
+
[tool.ruff.lint.isort]
|
|
87
|
+
known-first-party = ["slmp"]
|
|
88
|
+
|
|
89
|
+
[tool.mypy]
|
|
90
|
+
files = ["slmp"]
|
|
91
|
+
warn_unused_configs = true
|
|
92
|
+
disallow_untyped_defs = true
|
|
93
|
+
check_untyped_defs = true
|
|
94
|
+
disallow_incomplete_defs = true
|
|
95
|
+
no_implicit_optional = true
|
|
96
|
+
warn_redundant_casts = true
|
|
97
|
+
warn_unused_ignores = true
|
|
98
|
+
warn_return_any = true
|
|
99
|
+
strict_equality = true
|
|
100
|
+
|
|
101
|
+
[tool.coverage.run]
|
|
102
|
+
source = ["slmp"]
|
|
103
|
+
branch = true
|
|
104
|
+
|
|
105
|
+
[tool.pytest.ini_options]
|
|
106
|
+
testpaths = ["tests"]
|
|
107
|
+
asyncio_mode = "auto"
|
|
108
|
+
|
|
109
|
+
[tool.coverage.report]
|
|
110
|
+
show_missing = true
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[egg_info]
|
|
2
|
-
tag_build =
|
|
3
|
-
tag_date = 0
|
|
4
|
-
|
|
1
|
+
[egg_info]
|
|
2
|
+
tag_build =
|
|
3
|
+
tag_date = 0
|
|
4
|
+
|