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

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.4
File Size Uploaded Provenance
pylinbus-0.1.4.tar.gz 7.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 18.0 kB

Release files / pylinbus-0.1.4.tar.gz

Download URL pylinbus-0.1.4.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ebb80510fc2eb2be50af7e11bcf4094c1951ba2b00f94592044caefa5f128ee1
BLAKE2b-256 checksum
How to use checksums
1008aa239e1d7a0f8914b8d1a0a1606d6a4abb61da44e2787c7c2badc767a970
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 Oct 23, 2026.

Transparency log

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

Download URL pylinbus-0.1.4-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87b1c2c7b012e741ed9b081b84d63e345bcefe847d38c620fcb020e34b8bb5d3
BLAKE2b-256 checksum
How to use checksums
6dc226e168c4b9d3d31fb10c9c36404d98203241ed00e3469c4e6285ce563fa0
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 Oct 23, 2026.

Transparency log

Security for pylinbus 0.1.4

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pylinbus-0.1.4.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 Oct 23, 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