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

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.5
File Size Uploaded Provenance Actions
pylinbus-0.1.5.tar.gz 7.2 kB With provenance Details for pylinbus-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 18.1 kB

Release files / pylinbus-0.1.5.tar.gz

Download URL pylinbus-0.1.5.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5bdeecec9560aabdae1e67489201221fb88d3cd7a48df2e01c0a5550e3ed0d2a
BLAKE2b-256 checksum
How to use checksums
138569f2475afe7f75b7ec92c71804df91604888ee145d21229c6953afaf7d74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

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

Download URL pylinbus-0.1.5-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ff0796f8f1133fcafa7130ed768ea3887b716ccdafdb44f356bbcf055ce3c37
BLAKE2b-256 checksum
How to use checksums
e6e2d38bf73f8db12819595af2f21af89a9129303843cca38712df1fa7740f99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for pylinbus 0.1.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pylinbus-0.1.5.tar.gz

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 Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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