pydlt
A pyre-python library to handle AUTOSAR DLT.
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 pydltuv
uv add pydltpoetry
poetry add pydltInstalling 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
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
autosar-dataPython bindings for reading, writing, and…
unclear · top 15,000 on PyPI
doipclientA pure Python 3 Diagnostic over IP (DoIP)…
permissive · top 15,000 on PyPI
udsoncanImplements the Unified Diagnostic Services…
permissive · top 15,000 on PyPI
odxtoolsodxtools parses and processes ODX (Open…
permissive · top 5,000 on PyPI
tlparsetlparse parses structured PyTorch torch.compile…
permissive · top 15,000 on PyPI
databricks-dltProvides type hints, API specs, and IDE…
unclear · top 5,000 on PyPI
tomlrtReads and writes TOML files while preserving…
permissive · top 15,000 on PyPI
dncildncil is a Python library for disassembling…
permissive · top 15,000 on PyPI
dltdlt automates extraction, schema inference, and…
permissive · top 5,000 on PyPI
dagster-dltIntegrates dlt data loading into Dagster…
permissive · top 15,000 on PyPI