Skip to content

Commit c868810

Browse files
authored
Move client/server decoder to pdu. (#2388)
1 parent 976bc05 commit c868810

32 files changed

+92
-64
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PyModbus - A Python Modbus Stack
1212
:target: https://gurubase.io/g/pymodbus
1313
:alt: PyModbus Guru
1414

15-
Pymodbus is a full Modbus protocol implementation offering client/server with synchronous/asynchronous API a well as simulators.
15+
Pymodbus is a full Modbus protocol implementation offering client/server with synchronous/asynchronous API and simulators.
1616

1717
Our releases is defined as X.Y.Z, and we have strict rules what to release when:
1818

doc/source/_static/examples.tgz

-6 Bytes
Binary file not shown.

doc/source/_static/examples.zip

-28 Bytes
Binary file not shown.

doc/source/library/pymodbus.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ Extra functions
2121
:undoc-members:
2222
:show-inheritance:
2323

24-
.. automodule:: pymodbus.factory
25-
:members:
26-
:undoc-members:
27-
:show-inheritance:
28-
2924
.. automodule:: pymodbus.payload
3025
:members:
3126
:undoc-members:
@@ -45,6 +40,11 @@ Extra functions
4540
PDU classes
4641
===========
4742

43+
.. automodule:: pymodbus.pdu.decoders
44+
:members:
45+
:undoc-members:
46+
:show-inheritance:
47+
4848
.. automodule:: pymodbus.pdu.bit_read_message
4949
:members:
5050
:undoc-members:

doc/source/repl.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Pymodbus REPL (Read Evaluate Print Loop)
33

44
.. raw:: html
55

6-
<p style="color: red;"><strong>Warning:</strong> The Pymodbus REPL documentation is not updated.</p>
6+
<p style="color: red;"><strong>Warning:</strong> The Pymodbus REPL documentation is not updated,
7+
because it lives in a different repo.</p>
78

89
Installation
910
------------

doc/source/roadmap.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ It is the community that decides how pymodbus evolves NOT the maintainers !
1616
The following bullet points are what the maintainers focus on:
1717

1818
- 3.7.4, bug fix release, hopefully with:
19-
- optimized framer, limited support for multidrop on the server side
20-
- more typing in the core
21-
- 100% test coverage fixed for all new parts (currently transport and framer)
19+
- Available on dev:
20+
- optimized framer, limited support for multidrop on the server side
21+
- more typing in the core
22+
- 100% test coverage fixed for all new parts (currently transport and framer)
23+
- Updated PDU, moving client/server decoder into pdu
24+
- better broadcast handling
2225
- better broadcast handling
23-
- 3.7.5, bug fix release, hopefully with:
24-
- Updated PDU, moving client/server decoder into pdu.
2526
- Simplify PDU classes
27+
- better retry handling (only disconnect when really needed)
28+
- 3.7.5, bug fix release, hopefully with:
29+
- 100% test coverage for pdu
30+
- better broadcast handling
2631
- 3.7.6, bug fix release, with:
2732
- Foundation for new transaction
2833
- 3.8.0, with:

examples/message_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
import textwrap
1313

1414
from pymodbus import pymodbus_apply_logging_config
15-
from pymodbus.factory import ClientDecoder, ServerDecoder
1615
from pymodbus.framer import (
1716
FramerAscii,
1817
FramerRTU,
1918
FramerSocket,
2019
)
20+
from pymodbus.pdu import ClientDecoder, ServerDecoder
2121

2222

2323
_logger = logging.getLogger(__file__)

pymodbus/client/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
from pymodbus.client.mixin import ModbusClientMixin
1010
from pymodbus.client.modbusclientprotocol import ModbusClientProtocol
1111
from pymodbus.exceptions import ConnectionException, ModbusIOException
12-
from pymodbus.factory import ClientDecoder
1312
from pymodbus.framer import FRAMER_NAME_TO_CLASS, FramerBase, FramerType
1413
from pymodbus.logging import Log
15-
from pymodbus.pdu import ModbusPDU
14+
from pymodbus.pdu import ClientDecoder, ModbusPDU
1615
from pymodbus.transaction import SyncModbusTransactionManager
1716
from pymodbus.transport import CommParams
1817
from pymodbus.utilities import ModbusTransactionState

pymodbus/client/modbusclientprotocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
from collections.abc import Callable
55

6-
from pymodbus.factory import ClientDecoder
76
from pymodbus.framer import (
87
FRAMER_NAME_TO_CLASS,
98
FramerBase,
109
FramerType,
1110
)
1211
from pymodbus.logging import Log
12+
from pymodbus.pdu import ClientDecoder
1313
from pymodbus.transaction import ModbusTransactionManager
1414
from pymodbus.transport import CommParams, ModbusProtocol
1515

pymodbus/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def __str__(self):
233233

234234

235235
class DeviceInformationFactory: # pylint: disable=too-few-public-methods
236-
"""This is a helper factory.
236+
"""This is a helper.
237237
238238
That really just hides
239239
some of the complexity of processing the device information

0 commit comments

Comments
 (0)