skillfed

pydlt

A pyre-python library to handle AUTOSAR DLT.

pydlt v0.3.5 129.1K downloads/30d#11,680 on PyPI15
Permissive license MIT AGING released

What it is and what it does

PyDLT is a Python library for reading and writing AUTOSAR DLT (Diagnostic Log and Trace) protocol messages, following the AUTOSAR Specification V1.2.0 R4.0. It provides APIs to construct both verbose messages (with typed arguments like strings) and non-verbose messages (raw binary payloads), serialize them to DLT files with storage headers, and parse DLT files back into message objects for inspection and analysis.

The library has no external runtime dependencies and installs as a pure Python wheel, making it lightweight for automotive diagnostic tooling. However, it does not yet support all DLT type formats—notably TYPE_LENGTH_128BIT, TYPE_ARRAY, VARIABLE_INFO, FIXED_POINT, TRACE_INFO, and TYPE_STRUCT are documented as unsupported, which may limit its applicability to certain diagnostic data streams.

Use it for:

  • Write diagnostic log messages from an embedded system or test harness into a DLT file for later analysis.
  • Parse and inspect existing DLT log files from automotive ECUs to extract diagnostic events and trace data.
  • Build automotive diagnostic tooling that needs to generate or consume AUTOSAR-compliant DLT protocol messages.
  • Integrate DLT logging into Python-based vehicle simulation or testing frameworks.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

PyDLT reads and writes AUTOSAR DLT (Diagnostic Log and Trace) protocol messages to and from files, implementing the AUTOSAR DLT V1.2.0 R4.0 specification.

Yes, if you work with AUTOSAR DLT protocol and your message types fall within the supported format subset. The permissive MIT license, zero runtime dependencies, and straightforward API make it a practical choice for automotive diagnostic workflows. Be aware that maintenance is aging (last commit 525 days ago) and several DLT type formats remain unsupported; verify that your use case does not rely on the documented limitations before committing to production use.

Install

pydlt on PyPI

pip

pip install pydlt

uv

uv add pydlt

poetry

poetry add pydlt

Installing pydlt

Before you install

Low install friction with no runtime dependencies. Maintenance status is aging—last commit was 2025-03-07 and the project has not seen active development for several months, though the repository remains active and not archived.

License in practice

MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions, provided you include the license notice.

Quickstart

from pydlt import DltFileWriter, DltMessage, ArgumentString, MessageType, MessageLogInfo, StorageHeader

msg = DltMessage.create_verbose_message(
    [ArgumentString("hello")],
    MessageType.DLT_TYPE_LOG,
    MessageLogInfo.DLT_LOG_INFO,
    "App", "Ctx",
    message_counter=0,
    str_header=StorageHeader(0, 0, "Ecu")
)
with DltFileWriter("output.dlt") as writer:
    writer.write_messages([msg])

Verify before relying

  • Whether the aging maintenance status and 525 days since last release affect stability or compatibility with current AUTOSAR specifications.
  • Whether the documented limitations (TYPE_LENGTH_128BIT, TYPE_ARRAY, VARIABLE_INFO, FIXED_POINT, TRACE_INFO, TYPE_STRUCT) impact your specific DLT message types.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance aging — 525 days since the last release
Last repo commit
First released
Downloads 129,130/month — #11,680 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pydlt-0.3.5-py3-none-any.whl

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

AUTOSAR DLT protocoldiagnostic log and traceDLT file reader writerautomotive loggingDLT message parsing
automotivediagnosticsprotocol-parser

More Software Development packages