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. Apache-2.0.
- Adapters: every interface python-can supports:
- USB, PCI and network adapters: 8devices USB2CAN, CANalyst-II, candleLight and other gs_usb devices, 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, XCP and CCP DAQ lists or 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, measured by polling or by DAQ lists, curves, maps and cuboids as tables and graphs, calibration sets saved, loaded and compared as DCM, 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 Install and 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.
Full details in the manual, which is also under Help > Documentation in the application. What each version added, changed and fixed is in the changelog, which is part of the manual too.
There are three options:
-
With pip -- from PyPI, into whichever Python environment you choose. Python 3.12 or newer is needed.
To install it:
pip install pycanguiTo run it:
pycanguiTo update it:
pip install --upgrade pycanguiIt is an ordinary Python package with an ordinary entry point, so the choice of environment is yours.
On Linux, Qt needs one system library first: see On Linux below.
-
The Windows installer --
pycangui-<version>-setup.exefrom the latest release. Nothing else is needed: not even Python. It installs a self-contained application, offers a desktop shortcut, and uninstalls cleanly. This is the one for somebody who wants a CAN tool rather than a Python package.It asks first who it is for: everybody who uses the computer, which needs administrator rights, or only you, which does not.
-
From a Git clone -- clone the repository, then double-click
pycangui.cmd(Windows) or run./pycangui.sh(Linux). This is the way to have the latest changes before they are released, or to contribute. Python 3.12 or newer must be on the PATH.The first run sets itself up: it creates a virtual environment -- a folder called
.venvholding its own copy of Python and only the libraries pycangui needs, so nothing else on the machine is touched -- and downloads a couple of hundred megabytes into it. That takes a few minutes once; every later start is immediate, and deleting.venvundoes the whole thing. Ifuvis installed it is used instead of pip, which makes rebuilding that folder a matter of seconds.If the Python
.venvwas made with is uninstalled -- or replaced by a newer version -- the launcher says so, and offers to delete.venvand set it up again with the Python installed now. Workspaces and settings are not in.venv, and are kept.On Linux, run it from a terminal, so its messages can be read:
./pycangui.shDebian, Ubuntu, Linux Mint and the like often leave out the package that lets Python create
.venv. The launcher names it if it is missing:sudo apt install python3-venvDouble-clicking
pycangui.shin a file manager works too: choose Run in Terminal when it asks, for the same reason.For a shortcut, Tools > Settings > Add shortcut to Start menu (the applications menu on Linux) and, on Windows, Add shortcut to desktop. The entry starts the launcher, so a start from it after a pull still picks up new libraries.
The launcher keeps its own
.venvon purpose and will not use an environment you already have. That is the point of it: it is the way in for somebody who does not want to think about Python environments, and one that sometimes used yours and sometimes did not would be worse than one that never does. To run a checkout in an environment of your own instead,pip install -e .installs it there, reading the source.
On Linux, however pycangui is installed -- with pip or from a clone -- 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
Without it pycangui stops as it starts, with a message about the xcb platform plugin.
Where your own files are kept is the same whichever way it was installed: your workspaces, hooks, EDS files and settings are in %APPDATA%\pycangui on Windows, ~/.config/pycangui on Linux and ~/Library/Application Support/pycangui on macOS. Upgrading and uninstalling leave that folder alone. How to uninstall, for each of the three, is in the manual.
| System | Tested with |
|---|---|
| Windows 10 or 11, x86-64 | Python 3.12 to 3.15 |
| Windows 10 or 11, x86-64, with the installer | its own Python 3.14: nothing else to install |
| Linux, x86-64 | Python 3.12 to 3.15 |
| Linux, ARM64 (glibc 2.39 or later: Ubuntu 24.04, Debian 13, Raspberry Pi OS trixie) | Python 3.14 |
| macOS, Apple silicon or Intel, installed with pip | Python 3.14 |
Each is tested by CI for each release. Linux and macOS have not yet been tried on real CAN hardware.
On Python 3.15 the MDF reader needs a C compiler to install, as some libraries it uses are not yet published ready-made for 3.15.
Any adapter python-can supports, listed under What it does above. Which interface to pick for each adapter on each system, and the maker's driver to install where one is needed, are in the table of adapters.
pycangui is Apache-2.0 and is a pure-Python application on top of these packages, each used unmodified under its own licence (licence text as declared in the package metadata). The LGPL components stay separate, replaceable packages, as the LGPL requires.
| Package | Used for | Licence |
|---|---|---|
| Python | Runtime | PSF-2.0 |
| PySide6-Essentials | GUI toolkit (Qt for Python) | LGPL-3.0 (used under LGPL) |
| shiboken6 | Qt binding runtime used by PySide6 | LGPL-3.0 (used under LGPL) |
| python-can | CAN adapter abstraction | LGPL-3.0 |
| canopen | CANopen protocol stack | MIT |
| cantools | DBC / KCD / SYM / ARXML decoding | MIT |
| pyqtgraph | Plotting | MIT |
| numpy | Numeric arrays for plotting | BSD-3-Clause (with 0BSD / MIT / Zlib / CC0 parts) |
| python-can-j1939 | J1939 transport and address claim | MIT |
| pywin32 | Finding USB2CAN adapters through python-can, on Windows | PSF-2.0 |
| udsoncan | UDS client | MIT |
| can-isotp | ISO-TP transport for UDS | MIT |
| bincopy | Intel HEX / S-record / binary firmware files | MIT |
| msgpack | Packing frames for UDP multicast, on Windows | Apache-2.0 |
| python-can-cansub | The CSS Electronics CANsub, as a python-can interface | MIT |
| zeroconf | Finding a CANsub on the network (mDNS), for python-can-cansub | LGPL-2.1-or-later |
| gs_usb | candleLight and other gs_usb adapters through python-can, on Windows and macOS | MIT |
| python-can-candle and candle_api | candleLight adapters as a python-can interface that lists them, on Windows and macOS up to Python 3.14 | LGPL-2.1 |
| canalystii | CANalyst-II adapters, through python-can | BSD |
| pyusb | USB access for gs_usb and canalystii | BSD-3-Clause |
| libusb-package | A copy of libusb (LGPL-2.1-or-later) for pyusb, on Windows and macOS, which lack one | Apache-2.0 |
| python-ics and filelock | Intrepid neoVI and ValueCAN adapters, through python-can | MIT |
| nixnet | NI-XNET adapters through python-can, on Windows | MIT |
| asammdf | Reading MDF / MF4 measurement files | LGPL-3.0 |
The icons beside the words on buttons and menu items are Microsoft's Fluent UI System Icons, MIT, shipped with pycangui as files rather than a package.
asammdf, the MDF and MF4 reader, is currently the only optional entry: the Windows installer includes it, and a pip installation fetches it the first time a measurement file is opened. pip install pycangui[all] includes it up front. On Python 3.15, three of the libraries the reader uses (numexpr, lz4 and zstd) are not yet published ready to install, so pip builds them, which needs a C compiler.
Only LGPL Qt modules are used (QtCore, QtGui, QtWidgets). pycangui depends on PySide6-Essentials, the package that holds them. Adapter drivers (PCAN, Kvaser, Vector, ...) are not included: install the vendor's driver and python-can loads it at run time. The table of adapters says which ones need one.
The Windows releases are not code-signed for now, so Windows SmartScreen warns about the
installer: More info > Run anyway goes past it. Where an unsigned program is a problem --
a company machine that blocks them, say -- install with pip instead (pip install pycangui,
above), which SmartScreen does not apply to. Signing is intended, and
CODE_SIGNING.md is the policy -- what will be signed and how, the team
roles, and the privacy policy.
See CONTRIBUTING.md: the policy for changes, setting up to work on pycangui, running the tests, and building the Windows installer. Everyone taking part is asked to follow the code of conduct.
What is aimed for with a keyboard, a screen reader, large text and high contrast, what has been checked, and how to report a barrier, is in ACCESSIBILITY.md.
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.
If you find pycangui doing something unsafe -- sending to a bus or a device without being asked, or not stopping what it says it stopped -- open an issue.
pycangui is free software, provided under the Apache License 2.0, without warranty of any kind; see LICENSE and NOTICE.
The hook and simulated-node templates in pycangui/hooks and pycangui/nodes are the exception. They are copied into your workspace to be edited, and are released under MIT-0 (LICENSES/MIT-0.txt) with no copyright claimed, so what you write in them carries no conditions.
Development has made use of Anthropic's Claude.

