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.2

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.2
File Size Uploaded
pylinbus-0.1.2.tar.gz 7.1 kB Details

Built distribution (wheel)

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

Total release size: 18.0 kB

Release files / pylinbus-0.1.2.tar.gz

Download URL pylinbus-0.1.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b0312def8c49f33bfd613766357dd7ff41b88df5870affde8811854126acdfd7
BLAKE2b-256 checksum
How to use checksums
832edd0ab430b68fb61863400925bfc640f522c074d735c5ab3aad4b5be6c317
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 Aug 21, 2026.

Transparency log

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

Download URL pylinbus-0.1.2-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c1c264ca4bf50f547ecac7260123be54681689301d1ea1d304b12209d5e7d1f
BLAKE2b-256 checksum
How to use checksums
bee344cad9a4696494410f311b07ed0c229618574da194bb08596479d7c01e52
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 Aug 21, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

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