Skip to main content

pylinbus

A Python package for LIN bus communication with transport-layer support and multiple hardware backends.

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)

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

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.0
File Size Uploaded
pylinbus-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

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

Total release size: 17.7 kB

Release files / pylinbus-0.1.0.tar.gz

Download URL pylinbus-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
40059fcd832716dd7191f81a8711b47809d6d63bbdabcc306ffd27441f3fd688
BLAKE2b-256 checksum
How to use checksums
f1e74cf8d52dec96da8d846c2f2000fd810e2a00afada0714090aa5e2e93ef79
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 20, 2026.

Transparency log

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

Download URL pylinbus-0.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95282b3e04a93ef7b8e6f426a5af2ba53c1b82828c4b7a06cb7468fa14cc0fca
BLAKE2b-256 checksum
How to use checksums
6c1409a2872fec9397665017cb3a9c04120b682b9b2a97be9da0d01f8e2fb700
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 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.0 This release

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