{"id":24319,"library":"pydlt","title":"pyDlt","description":"A Python library to handle AUTOSAR DLT (Diagnostic Log and Trace) messages. Version 0.3.5 supports reading/writing DLT files and network streaming. Released irregularly, latest in 2024.","status":"active","version":"0.3.5","language":"python","source_language":"en","source_url":"https://github.com/mikiepure/pydlt","tags":["dlt","autosar","diagnostic","logging","automotive"],"install":[{"cmd":"pip install pydlt","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"wrong":"from pydlt import DltFile","symbol":"DltMessage","correct":"from pydlt import DltMessage"},{"wrong":"from pydlt import DltFile","symbol":"DltFileReader","correct":"from pydlt import DltFileReader"},{"wrong":"from pydlt import DltFile","symbol":"DltFileWriter","correct":"from pydlt import DltFileWriter"}],"quickstart":{"code":"from pydlt import DltFile\n\ndlt = DltFile()\ndlt.open('example.dlt')\nfor msg in dlt:\n    print(msg.payload)\ndlt.close()","lang":"python","description":"Read and iterate over DLT messages from a file."},"warnings":[{"fix":"Explicitly call dlt.close() or wrap in try/finally.","message":"DltFile does not close automatically; always call .close() or use a context manager (not yet supported) to avoid resource leaks.","severity":"gotcha","affected_versions":"all"},{"fix":"Decode payload manually: payload = msg.payload.decode('utf-8', errors='replace')","message":"DltLine payload might be bytes; decoding to string requires specifying encoding (e.g., msg.payload.decode('utf-8'))","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.3.5':15 '2024':27 'automot':32 'autosar':7,29 'diagnost':9,30 'dlt':8,18,28 'file':19 'handl':6 'irregular':24 'latest':25 'librari':4 'log':10,31 'messag':13 'network':21 'pydlt':1 'python':3 'reading/writing':17 'releas':23 'stream':22 'support':16 'trace':12 'version':14","created_at":"2026-05-01T08:12:26.698601+00:00","updated_at":"2026-05-01T08:12:26.698601+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.3.5","cli_name":"","cli_version":null,"type":"library","homepage":"https://mikiepure.github.io/","github":"https://github.com/mikiepure/pydlt","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pydlt/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}