How arm362/osdp-pt works
OSDP Packet Tester is a small Python library for validating individual or queued OSDP packets. The documented workflow is to pass packet bytes to PacketTester, or save packets and run the batch test; callers can also inspect or clear the saved set. The core excerpt confirms structural, command/reply payload, CRC/checksum, and error-reporting logic, but omits much of the runner wiring, so uncertain internal call edges are not shown.
Main entry points: core.py PacketTester · __init__.py Package Export
Components 8
Public API
- Package Export
osdp_pt/__init__.py - PacketTester
osdp_pt/core.py - Saved Packets
osdp_pt/core.py
Packet Validation
- Structure Checks
osdp_pt/core.py - Command Reply Checks
osdp_pt/core.py - CRC CSUM Checks
osdp_pt/core.py - Error Reporting
osdp_pt/core.py
Other components
- Library Caller
Connections 5
- Package Export → PacketTester: exports
- Library Caller → Package Export: imports
- Library Caller → PacketTester: tests packets
- PacketTester → Saved Packets: queues packets
- PacketTester → PacketTester: runs each packet