Skip to main content

pycangui icon: a CAN bus with four node taps and a terminating resistor at each end

pycangui

CI release PyPI python platform license

A graphical CAN bus tool: live trace and plots, transmit, CANopen, UDS, J1939, XCP and CCP, and Python scripting, on any adapter supported by python-can -- PEAK, Vector, Kvaser, IXXAT, SocketCAN and low-cost SLCAN adapters among them.

pycangui on its demo device: the CAN Trace, CAN Transmit and Event Log above, and engine and vehicle speed plotted in Signals and Plot below

Install and run

To install it:

pip install pycangui

To run it (python -m pycangui does the same):

pycangui

To update it:

pip install --upgrade pycangui

Python 3.12 or newer, on Windows, Linux or macOS.

On Linux, Qt needs a system library to draw the window, and Debian, Ubuntu, Linux Mint and the like often leave it out:

sudo apt install libxcb-cursor0

To include everything optional up front -- currently that is only the reader for MDF and MF4 measurement files -- install all. Without it, pycangui offers to install the reader the first time a measurement file is opened.

pip install "pycangui[all]"

What it does

  • Adapters: every interface python-can supports:
    • USB, PCI and network adapters: 8devices USB2CAN, CANalyst-II, candleLight and other gs_usb devices, CANtact, CSS Electronics CANsub, ETAS, Intrepid neoVI, isCAN, IXXAT, Kvaser, Neousys, NI-CAN and NI-XNET, PEAK PCAN, SYS TEC and Vector.
    • Serial: SLCAN (CANable, Lawicel), Robotell, Seeed Studio and other serial adapters.
    • Linux: SocketCAN, socketcan_vcan from the CANsub plugin, and socketcand to reach a Linux machine's SocketCAN over the network.
    • UDP multicast, to share frames with other python-can programs on the same computer or the local network.
  • Live trace of every connected channel on one timebase, CAN FD included, with recording to six log formats and replay of a log onto a bus. Filtering is at two levels: an acceptance filter on a channel, which drops frames before they arrive, and a filter on the trace, which hides them and discards nothing.
  • Transmit raw frames, DBC messages edited by signal, or a CANopen RPDO, once or repeating, with a rolling counter and a checksum -- XOR, sums, CRC-8, CRC-16 or your own -- worked out for every frame.
  • Signals and Plot from DBC decode, CANopen TPDOs or XCP and CCP polling, with export to CSV and import of MDF and MF4 measurement files.
  • Database: every message and signal in the loaded DBC files, with each message's bits drawn out -- a multiplexed one for one value of its multiplexer at a time -- and a message sent to Transmit or the trace, or a signal to the plot, from there.
  • CANopen: node list, object dictionary, PDO configuration, EMCY, LSS, SYNC, DCF save, apply and compare, firmware download (CiA 302-3), and the network's PDOs, heartbeats and emergencies saved as a DBC.
  • UDS over ISO-TP: sessions, security access, DIDs, DTCs, routines, and firmware transfer in either direction.
  • J1939: nodes from address claims, DM1 faults with lamp status and the failure mode in words, multi-packet messages (TP.BAM and TP.CM), requesting and sending PGNs, and SPNs decoded from a J1939 DBC.
  • XCP and CCP on CAN: connect, seed and key, reading and writing A2L measurements and characteristics by polling, curves and maps as tables, and flashing.
  • Custom panes: the values a job needs -- CANopen objects, XCP and CCP measurements and characteristics by their A2L names, or UDS data identifiers -- laid out as a form with labels and units. Built with no code, and polled into Signals and Plot.
  • ASCII Log: reads any CAN identifier as text, for devices that print a console into the data bytes.
  • CAN off an oscilloscope: frames that pyscopegui, also on PyPI, decodes from a scope's channel arrive by UDP multicast, and are traced, decoded and plotted like frames from an adapter. The other way, pycangui sends its signals to pyscopegui, to show beside its instruments and to trigger on.
  • Python hooks with hot reload, replaceable components (your own CAN interface, ISO-TP transport, or XCP or CCP engine), a live console and Run script.
  • Plugins that add a pane of their own, from the plugin lists in Manage plugins or a zip:
    • Motor control (CiA 402): drives a motor controller -- its state, its mode, its target and what it is doing.
    • EtherCAT: scans a ring, sets the slaves' states, reads and writes their objects, and runs their process data. Its drives can be run from the CiA 402 plugin.
    • A2L generator: creates an A2L file from the ECU's ELF, updates it after a rebuild, and checks it.
  • Simulated nodes: devices written as Python files, on a virtual bus or standing on a real adapter, and gateways between channels. A demo device that answers CANopen, UDS, J1939, XCP and CCP comes with pycangui.
  • Workspaces: one for each device or project you work on, holding its hooks, EDS files, databases, channels and layout, and exported as one zip.

The manual covers each of these, and is also under Help > Documentation in the application.

Adapters

Any adapter python-can supports, as listed above. Install the adapter maker's driver and python-can finds it at run time.

More

Safety notice and licence

pycangui talks to real equipment. It is intended only for people trained and experienced in working with CAN networks and the equipment connected to them.

Joining a bus at the wrong bitrate makes a controller signal an error on every frame it sees, which can impact the nodes that are already on the bus. Transmitting, replaying a log, writing parameters, enabling a drive and downloading firmware all change what equipment does, and not all of them can be undone.

Know what is on the bus before you join it, and what a device will do before you write to it. Like any software, pycangui can have faults, so do not rely on it to keep anything off the bus. Where a mistake could hurt someone or damage equipment, keep a way to stop that equipment within reach.

The hook and simulated-node templates copied into a workspace are under MIT-0, so what you write in them carries no conditions. pycangui itself is provided under the Apache License 2.0, without warranty of any kind.

Metadata

Release files for pycangui 0.7.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 pycangui 0.7.0
File Size Uploaded Provenance Actions
pycangui-0.7.0.tar.gz 1.5 MB With provenance Details for pycangui-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.7 MB

Release files / pycangui-0.7.0.tar.gz

Download URL pycangui-0.7.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f59138f265772d7af7947970684c418aa66975207b62e600777b23f026329611
BLAKE2b-256 checksum
How to use checksums
5e2a7f36d5c8a3b2fb2653c61eebb09ef0618f807bb06f38680955e2a4b4f78b
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 Dec 1, 2026.

Transparency log

Release files / pycangui-0.7.0-py3-none-any.whl

Download URL pycangui-0.7.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
968310d95186da6cad501a2bbd002b10b60fee213d8e844cf535222e1fd8c3ef
BLAKE2b-256 checksum
How to use checksums
0e1ff363df84c1a6a4cbc638edd2cfc71b1c5c9cc24561f6f9a0728041438496
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 Dec 1, 2026.

Transparency log

Security for pycangui 0.7.0

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 pycangui-0.7.0.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 Dec 1, 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