CAN BUS tools.
Project description
About
CAN BUS tools.
DBC file mangling.
Installation
pip install cantools
Example usage
See the test suite: https://github.com/eerimoq/cantools/blob/master/tests/test_cantools.py
An example parsing and using a small DBC-file:
>>> import cantools
>>> db = cantools.db.File()
>>> with open('tests/files/motohawk.dbc') as fin:
db.add_dbc(fin)
>>> db.messages
[ExampleMessage]
>>> db.messages[0].comment
'Example message used as template in MotoHawk models.'
>>> db.messages[0].signals
[Temperature, AverageRadius, Enable]
>>> db.ecus
[PCM1]
>>> db.version
'1.0'
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cantools-2.0.0.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for cantools-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b919e690b5fc28e5dc4b64237d51248b407e6581986dc3f1857891d537a7f8c6 |
|
MD5 | af2f898befb3937c437c42746f9868f6 |
|
BLAKE2b-256 | bcdd99396756ed40d9b22e2eb8c23740a110eb219e2b76783c6457147ceea4b9 |