$npx skillfedfor your agent

cantools

CAN BUS tools.

Worth itPyPI Software DevelopmentReleased Jul 20261.2M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — cantools-42.0.3-py3-none-any.whl
v42.0.3 · released 2026-07-05 · Python >=3.10 · 5 runtime deps: bitstruct, python-can, textparser, argparse_addons, crccheck

Yes. Cantools is well-maintained, actively developed, carries no security vulnerabilities, and has low install friction. It is the standard choice for CAN bus work in Python and covers the full workflow from database parsing through encoding, decoding, and visualization. Install it if you work with automotive CAN systems, vehicle diagnostics, or need to process CAN bus captures.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.10.
  • Optional matplotlib dependency for plot subcommand must be installed separately with cantools[plot].
  • Low friction: pure Python wheel with five straightforward runtime dependencies.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.

last release 2026-07-05 (40 days) · last repo commit 2026-08-14 · 2,267 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,193,654 downloads/mo, #4,235 on PyPI

Verify before relying

pip install cantools

import cantools
db = cantools.database.load_file('motohawk.dbc')
message = db.get_message_by_name('ExampleMessage')
data = message.encode({'Temperature': 250.1, 'Enable': 1})
decoded = db.decode_message(message.frame_id, data)
  • Whether the C source code generator is production-ready or primarily for reference.
  • Performance characteristics when handling large or complex ARXML files.
  • Extent of support for ARXML 3 vs. ARXML 4 features and known limitations.
Same gist for agents: .md · .json

What it is and what it does

Cantools is a Python library for working with CAN (Controller Area Network) bus systems, primarily used in automotive applications. It reads and parses multiple database formats—DBC, KCD, SYM, ARXML 3 & 4, and CDD—that define the structure of CAN messages and signals. Once a database is loaded, the library provides high-level APIs to encode Python dictionaries into raw CAN frame bytes and decode incoming CAN frames back into human-readable signal values, handling both simple and multiplexed signals automatically.

Beyond the core encode/decode functionality, cantools includes command-line tools for real-world CAN bus work: a decoder that parses candump output (the standard Linux CAN capture format), a monitor for live bus observation, a plotter that visualizes signal values over time using matplotlib, and a C code generator for embedded systems. The library depends on bitstruct for bit-level manipulation, python-can for bus communication, textparser for format parsing, argparse_addons for CLI extensions, and crccheck for diagnostic frame validation.

Use it for

  • Decode candump logs from vehicle testing or diagnostics without manual frame parsing.
  • Build Python scripts to send and receive CAN messages on a test bench or simulator.
  • Parse automotive ARXML or DBC files to extract message and signal definitions for documentation or code generation.
  • Implement diagnostic DID (Data IDentifier) encoding/decoding for vehicle communication protocols.
  • Monitor live CAN bus traffic and plot signal trends for debugging or validation.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Cantools is well-maintained, actively developed, carries no security vulnerabilities, and has low install friction. It is the standard choice for CAN bus work in Python and covers the full workflow from database parsing through encoding, decoding, and visualization. Install it if you work with automotive CAN systems, vehicle diagnostics, or need to process CAN bus captures.

Install

cantools on PyPI

Before you install

Low friction: pure Python wheel with five straightforward runtime dependencies. Actively maintained with a recent release; last commit 2026-08-14 and 2267 repository stars indicate steady development.

Requires Python >= 3.10. Optional matplotlib dependency for plot subcommand must be installed separately with cantools[plot].

License in practice

MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.

Quickstart

pip install cantools

import cantools
db = cantools.database.load_file('motohawk.dbc')
message = db.get_message_by_name('ExampleMessage')
data = message.encode({'Temperature': 250.1, 'Enable': 1})
decoded = db.decode_message(message.frame_id, data)

Verify before relying

  • Whether the C source code generator is production-ready or primarily for reference.
  • Performance characteristics when handling large or complex ARXML files.
  • Extent of support for ARXML 3 vs. ARXML 4 features and known limitations.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
bitstructpython-cantextparserargparse_addonscrccheck
MaintenanceActively maintained 40 days since the last release
Last repo commit
First released
Downloads1,193,654 / month, #4,235 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT License

Evidence: cantools-42.0.3-py3-none-any.whl

Tags

Capabilities
CAN bus message encoding decodingDBC file parserautomotive CAN toolsCAN message multiplexingcandump decoderCAN bus monitorARXML KCD parservehicle diagnostics DID
Topics
automotivecan-busdiagnostics
PyPI keywords
cancan busarxmldbckcdautomotive

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “CAN bus message encoding decoding”

  • cantoolsCantools parses automotive CAN bus database files (DBC, KCD, SYM,…
  • odxtoolsodxtools parses and processes ODX (Open Diagnostic data eXchange)…
  • ldfparserParses LIN Description Files (LDF) to extract signal and frame…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also canmatrix · odxtools · ldfparser · powertrain-build · python-can · asammdf · vcdvcd · udsoncan · autosar-data · canopen