slmp-connect-python 0.8.0__tar.gz → 1.0.1__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.
Files changed (24) hide show
  1. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/MANIFEST.in +2 -2
  2. {slmp_connect_python-0.8.0/slmp_connect_python.egg-info → slmp_connect_python-1.0.1}/PKG-INFO +3 -8
  3. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/README.md +30 -35
  4. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/pyproject.toml +111 -112
  5. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/__init__.py +206 -206
  6. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/_operations.py +12 -12
  7. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/async_client.py +4 -3
  8. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/cli.py +51 -49
  9. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/client.py +4 -3
  10. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/core.py +18 -0
  11. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/device_ranges.py +1 -1
  12. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/utils.py +43 -47
  13. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1/slmp_connect_python.egg-info}/PKG-INFO +3 -8
  14. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/LICENSE +0 -0
  15. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/setup.cfg +0 -0
  16. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/constants.py +0 -0
  17. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/error_codes.py +0 -0
  18. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/errors.py +0 -0
  19. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp/py.typed +0 -0
  20. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp_connect_python.egg-info/SOURCES.txt +0 -0
  21. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp_connect_python.egg-info/dependency_links.txt +0 -0
  22. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp_connect_python.egg-info/entry_points.txt +0 -0
  23. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp_connect_python.egg-info/requires.txt +0 -0
  24. {slmp_connect_python-0.8.0 → slmp_connect_python-1.0.1}/slmp_connect_python.egg-info/top_level.txt +0 -0
@@ -1,2 +1,2 @@
1
- prune tests
2
- prune internal_docs
1
+ prune tests
2
+ prune internal_docs
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: slmp-connect-python
3
- Version: 0.8.0
3
+ Version: 1.0.1
4
4
  Summary: SLMP Connect Python: client library for MELSEC SLMP binary communication
5
5
  Author: fa-yoshinobu
6
6
  License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/fa-yoshinobu/plc-comm-slmp-python
8
8
  Project-URL: Repository, https://github.com/fa-yoshinobu/plc-comm-slmp-python
9
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
10
+ Keywords: slmp,melsec,plc,3e,4e,binary
11
+ Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.10
@@ -33,14 +33,9 @@ Requires-Dist: twine>=5.1; extra == "dev"
33
33
  Dynamic: license-file
34
34
 
35
35
  [![CI](https://github.com/fa-yoshinobu/plc-comm-slmp-python/actions/workflows/ci.yml/badge.svg)](https://github.com/fa-yoshinobu/plc-comm-slmp-python/actions/workflows/ci.yml)
36
- [![Documentation](https://img.shields.io/badge/docs-GitHub_Pages-blue.svg)](https://fa-yoshinobu.github.io/plc-comm-docs-site/slmp/python/GETTING_STARTED/)
37
36
  [![PyPI](https://img.shields.io/pypi/v/slmp-connect-python.svg)](https://pypi.org/project/slmp-connect-python/)
38
37
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
39
38
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
40
- [![Static Analysis: Ruff](https://img.shields.io/badge/Lint-Ruff-black.svg)](https://github.com/astral-sh/ruff)
41
- [![Release](https://img.shields.io/github/v/release/fa-yoshinobu/plc-comm-slmp-python?label=release)](https://github.com/fa-yoshinobu/plc-comm-slmp-python/releases/latest)
42
- [![Python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white)](https://www.python.org/)
43
- [![MkDocs](https://img.shields.io/badge/MkDocs-526CFE?logo=materialformkdocs&logoColor=white)](https://www.mkdocs.org/)
44
39
 
45
40
  # MELSEC SLMP for Python
46
41
 
@@ -1,25 +1,20 @@
1
1
  [![CI](https://github.com/fa-yoshinobu/plc-comm-slmp-python/actions/workflows/ci.yml/badge.svg)](https://github.com/fa-yoshinobu/plc-comm-slmp-python/actions/workflows/ci.yml)
2
- [![Documentation](https://img.shields.io/badge/docs-GitHub_Pages-blue.svg)](https://fa-yoshinobu.github.io/plc-comm-docs-site/slmp/python/GETTING_STARTED/)
3
2
  [![PyPI](https://img.shields.io/pypi/v/slmp-connect-python.svg)](https://pypi.org/project/slmp-connect-python/)
4
3
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
5
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
- [![Static Analysis: Ruff](https://img.shields.io/badge/Lint-Ruff-black.svg)](https://github.com/astral-sh/ruff)
7
- [![Release](https://img.shields.io/github/v/release/fa-yoshinobu/plc-comm-slmp-python?label=release)](https://github.com/fa-yoshinobu/plc-comm-slmp-python/releases/latest)
8
- [![Python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white)](https://www.python.org/)
9
- [![MkDocs](https://img.shields.io/badge/MkDocs-526CFE?logo=materialformkdocs&logoColor=white)](https://www.mkdocs.org/)
10
-
11
- # MELSEC SLMP for Python
12
-
13
- Python library for MELSEC SLMP (Binary 3E/4E) PLC communication.
14
-
15
- ## Supported PLC profiles
16
-
17
- The maintained profile table is in [PLC profiles](docsrc/user/PROFILES.md). Choose one exact canonical PLC profile from that table.
18
-
19
- ## Supported device types
20
-
21
- The maintained device and range tables are in [Supported registers](docsrc/user/SUPPORTED_REGISTERS.md). Use that page for supported device families, address syntax, and profile-specific notes.
22
-
5
+
6
+ # MELSEC SLMP for Python
7
+
8
+ Python library for MELSEC SLMP (Binary 3E/4E) PLC communication.
9
+
10
+ ## Supported PLC profiles
11
+
12
+ The maintained profile table is in [PLC profiles](docsrc/user/PROFILES.md). Choose one exact canonical PLC profile from that table.
13
+
14
+ ## Supported device types
15
+
16
+ The maintained device and range tables are in [Supported registers](docsrc/user/SUPPORTED_REGISTERS.md). Use that page for supported device families, address syntax, and profile-specific notes.
17
+
23
18
  ## Installation
24
19
 
25
20
  ```bash
@@ -43,24 +38,24 @@ asyncio.run(main())
43
38
 
44
39
  ## Documentation
45
40
 
46
- | Page | Use it for |
47
- | --- | --- |
48
- | [Full documentation site](https://fa-yoshinobu.github.io/plc-comm-docs-site/) | Unified docs for all PLC communication libraries. |
49
- | [Getting started](docsrc/user/GETTING_STARTED.md) | Install the package, connect to your PLC, and run your first SLMP read/write. |
50
- | [Usage guide](docsrc/user/USAGE_GUIDE.md) | Use the high-level API and common SLMP workflows. |
51
- | [Supported registers](docsrc/user/SUPPORTED_REGISTERS.md) | Check supported device families, address syntax, and numbering rules. |
52
- | [PLC profiles](docsrc/user/PROFILES.md) | Choose the canonical MELSEC profile and frame behavior. |
53
- | [Examples](samples/README.md) | Run maintained Python samples. |
41
+ | Page | Use it for |
42
+ | --- | --- |
43
+ | [Full documentation site](https://fa-yoshinobu.github.io/plc-comm-docs-site/) | Unified docs for all PLC communication libraries. |
44
+ | [Getting started](docsrc/user/GETTING_STARTED.md) | Install the package, connect to your PLC, and run your first SLMP read/write. |
45
+ | [Usage guide](docsrc/user/USAGE_GUIDE.md) | Use the high-level API and common SLMP workflows. |
46
+ | [Supported registers](docsrc/user/SUPPORTED_REGISTERS.md) | Check supported device families, address syntax, and numbering rules. |
47
+ | [PLC profiles](docsrc/user/PROFILES.md) | Choose the canonical MELSEC profile and frame behavior. |
48
+ | [Examples](samples/README.md) | Run maintained Python samples. |
49
+
50
+ ## Hardware verified
54
51
 
55
- ## Hardware verified
56
-
57
- Live-device verification is maintained in [Latest communication verification](docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md).
58
- See that page for verified PLC models, transports, dates, limitations, and retained validation notes.
52
+ Live-device verification is maintained in [Latest communication verification](docsrc/user/LATEST_COMMUNICATION_VERIFICATION.md).
53
+ See that page for verified PLC models, transports, dates, limitations, and retained validation notes.
59
54
 
60
55
  ## License and registry
61
56
 
62
- | Item | Value |
63
- | --- | --- |
64
- | License | [MIT](LICENSE) |
65
- | Registry | [PyPI](https://pypi.org/project/slmp-connect-python/) |
66
- | Package | `slmp-connect-python` |
57
+ | Item | Value |
58
+ | --- | --- |
59
+ | License | [MIT](LICENSE) |
60
+ | Registry | [PyPI](https://pypi.org/project/slmp-connect-python/) |
61
+ | Package | `slmp-connect-python` |
@@ -1,112 +1,111 @@
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.8.0"
8
- description = "SLMP Connect Python: client library for MELSEC 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-device-range-probe = "slmp.cli:device_range_probe_main"
50
- slmp-register-boundary-probe = "slmp.cli:register_boundary_probe_main"
51
- slmp-other-station-check = "slmp.cli:other_station_check_main"
52
- slmp-open-items-recheck = "slmp.cli:open_items_recheck_main"
53
- slmp-g-hg-extended-device-recheck = "slmp.cli:g_hg_extended_device_recheck_main"
54
- slmp-g-hg-extended-device-coverage = "slmp.cli:g_hg_extended_device_coverage_main"
55
- slmp-extended-device-recheck = "slmp.cli:extended_device_recheck_main"
56
- slmp-pending-live-verification = "slmp.cli:pending_live_verification_main"
57
- slmp-init-model-docs = "slmp.cli:init_model_docs_main"
58
- slmp-manual-label-verification = "slmp.cli:manual_label_verification_main"
59
- slmp-read-soak = "slmp.cli:read_soak_main"
60
- slmp-mixed-read-load = "slmp.cli:mixed_read_load_main"
61
- slmp-tcp-concurrency = "slmp.cli:tcp_concurrency_main"
62
- slmp-regression-suite = "slmp.cli:regression_suite_main"
63
-
64
- [tool.setuptools.packages.find]
65
- include = ["slmp*"]
66
- exclude = ["tests*", "scripts*", "internal_docs*"]
67
-
68
- [tool.setuptools]
69
- include-package-data = true
70
- exclude-package-data = { "*" = ["TODO.md", ".pre-commit-config.yaml"] }
71
-
72
- [tool.setuptools.package-data]
73
- slmp = ["py.typed"]
74
-
75
- [tool.ruff]
76
- line-length = 120
77
- target-version = "py310"
78
-
79
- [tool.ruff.lint]
80
- select = ["E", "F", "I", "B", "UP"]
81
-
82
- [tool.ruff.lint.per-file-ignores]
83
- "slmp/error_codes.py" = ["E501"]
84
-
85
- [tool.ruff.lint.isort]
86
- known-first-party = ["slmp"]
87
-
88
- [tool.mypy]
89
- files = ["slmp"]
90
- warn_unused_configs = true
91
- disallow_untyped_defs = true
92
- check_untyped_defs = true
93
- disallow_incomplete_defs = true
94
- no_implicit_optional = true
95
- warn_redundant_casts = true
96
- warn_unused_ignores = true
97
- warn_return_any = true
98
- strict_equality = true
99
-
100
- [tool.coverage.run]
101
- source = ["slmp"]
102
- branch = true
103
-
104
- [tool.pytest.ini_options]
105
- testpaths = ["tests"]
106
- asyncio_mode = "auto"
107
-
108
- [tool.coverage.report]
109
- show_missing = true
110
-
111
-
112
-
1
+ [build-system]
2
+ requires = ["setuptools>=69", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "slmp-connect-python"
7
+ version = "1.0.1"
8
+ description = "SLMP Connect Python: client library for MELSEC 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", "plc", "3e", "4e", "binary"]
17
+ classifiers = [
18
+ "Development Status :: 5 - Production/Stable",
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-device-range-probe = "slmp.cli:device_range_probe_main"
50
+ slmp-register-boundary-probe = "slmp.cli:register_boundary_probe_main"
51
+ slmp-other-station-check = "slmp.cli:other_station_check_main"
52
+ slmp-open-items-recheck = "slmp.cli:open_items_recheck_main"
53
+ slmp-g-hg-extended-device-recheck = "slmp.cli:g_hg_extended_device_recheck_main"
54
+ slmp-g-hg-extended-device-coverage = "slmp.cli:g_hg_extended_device_coverage_main"
55
+ slmp-extended-device-recheck = "slmp.cli:extended_device_recheck_main"
56
+ slmp-pending-live-verification = "slmp.cli:pending_live_verification_main"
57
+ slmp-init-model-docs = "slmp.cli:init_model_docs_main"
58
+ slmp-manual-label-verification = "slmp.cli:manual_label_verification_main"
59
+ slmp-read-soak = "slmp.cli:read_soak_main"
60
+ slmp-mixed-read-load = "slmp.cli:mixed_read_load_main"
61
+ slmp-tcp-concurrency = "slmp.cli:tcp_concurrency_main"
62
+ slmp-regression-suite = "slmp.cli:regression_suite_main"
63
+
64
+ [tool.setuptools.packages.find]
65
+ include = ["slmp*"]
66
+ exclude = ["tests*", "scripts*", "internal_docs*"]
67
+
68
+ [tool.setuptools]
69
+ include-package-data = true
70
+ exclude-package-data = { "*" = ["TODO.md", ".pre-commit-config.yaml"] }
71
+
72
+ [tool.setuptools.package-data]
73
+ slmp = ["py.typed"]
74
+
75
+ [tool.ruff]
76
+ line-length = 120
77
+ target-version = "py310"
78
+
79
+ [tool.ruff.lint]
80
+ select = ["E", "F", "I", "B", "UP"]
81
+
82
+ [tool.ruff.lint.per-file-ignores]
83
+ "slmp/error_codes.py" = ["E501"]
84
+
85
+ [tool.ruff.lint.isort]
86
+ known-first-party = ["slmp"]
87
+
88
+ [tool.mypy]
89
+ files = ["slmp"]
90
+ warn_unused_configs = true
91
+ disallow_untyped_defs = true
92
+ check_untyped_defs = true
93
+ disallow_incomplete_defs = true
94
+ no_implicit_optional = true
95
+ warn_redundant_casts = true
96
+ warn_unused_ignores = true
97
+ warn_return_any = true
98
+ strict_equality = true
99
+
100
+ [tool.coverage.run]
101
+ source = ["slmp"]
102
+ branch = true
103
+
104
+ [tool.pytest.ini_options]
105
+ testpaths = ["tests"]
106
+ asyncio_mode = "auto"
107
+
108
+ [tool.coverage.report]
109
+ show_missing = true
110
+
111
+