Skip to main content

pylinbus

LIN (Local Interconnect Network) interface module for Python with transport-layer support and multiple hardware backends. Inspire by python-can

Features

  • Abstract bus interface - implement your own hardware driver by subclassing LinBus.
  • LIN Transport Protocol - ISO-TP-style segmentation and reassembly (LinTp) over LIN diagnostic frames (0x3C / 0x3D).
  • udsoncan connection adapter - drop-in LinTpConnection for the popular udsoncan UDS library.
  • Hardware backends:
    • Toomoss USB-LIN adapters (toomoss_py)
    • Vector XL API (pyvxlapi, Windows)
  • Master mode only – Optimized for LIN Master operation (Slave support planned for future releases).

Installation

pip install pylinbus

Quick start

from pylinbus import LinTp
from pylinbus.backends import ToomossLin

# Open the bus
bus = ToomossLin(channel=0, bitrate=19200)
tp = LinTp(bus, nad=0x01)

# Send / receive using the transport layer
tp.send(bytes([0x10, 0x01]))
rx = tp.recv(timeout=0.5)
print(rx.hex())

bus.shutdown()

Using udsoncan

from udsoncan.client import Client
from udsoncan.configs import default_client_config

from pylinbus.backends import ToomossLin
from pylinbus.connection import LinTpConnection

bus = ToomossLin(channel=0, bitrate=19200)
conn = LinTpConnection(bus, nad=0x01)

cfg = dict(default_client_config)
cfg["standard_version"] = 2006

with Client(conn, config=cfg) as client:
    response = client.change_session(1)
    print(response)

License

MIT

Metadata

Release files for pylinbus 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylinbus 0.1.3
File Size Uploaded
pylinbus-0.1.3.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylinbus 0.1.3
File Interpreter ABI Platform
pylinbus-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / pylinbus-0.1.3.tar.gz

Download URL pylinbus-0.1.3.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d294ce5135788efd0e709e28d254e09c16efafa343475351d49451e312f746
BLAKE2b-256 checksum
How to use checksums
1bd997d38a9d3df560c36503c934414a2a46f5be910ef4aca0ca0ef5b54fb0c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release files / pylinbus-0.1.3-py3-none-any.whl

Download URL pylinbus-0.1.3-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76e8cbed04dabca4ca18fbbde8a1fe97c058684ba0fad6c958b694ab0ca98717
BLAKE2b-256 checksum
How to use checksums
1e0a9d7fa1cf267eabc07113338906a6638f6aed1ae68604a4021db866f8a979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page