Provides controller area network support for Python developers
python-can
The Controller Area Network is a bus standard designed to allow microcontrollers and devices to communicate with each other. It has priority based bus arbitration and reliable deterministic communication. It is used in cars, trucks, boats, wheelchairs and more.
The can package provides controller area network support for Python developers; providing common abstractions to different hardware devices, and a suite of utilities for sending and receiving messages on a can bus.
The library currently supports Python 3.6+ as well as PyPy 3 and runs on Mac, Linux and Windows.
Library Version | Python |
---|---|
2.x | 2.6+, 3.4+ |
3.x | 2.7+, 3.5+ |
4.x (currently on develop) | 3.6+ |
Features
- common abstractions for CAN communication
- support for many different backends (see the docs)
- receiving, sending, and periodically