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 details)
Built Distribution
File details
Details for the file cantools-2.0.0.tar.gz
.
File metadata
- Download URL: cantools-2.0.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a378048cd5602efda4a6ac879cf7039c3be0e9b2b26e2045ba653dd8ba42ef45
|
|
MD5 |
777b9c812b22d473b69fdc46c9c9b88c
|
|
BLAKE2b-256 |
aaf7b987a991d6315bd82a9c9ab51cf8d057ff438fdde0eaf210fc3e39f757bb
|
File details
Details for the file cantools-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: cantools-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b919e690b5fc28e5dc4b64237d51248b407e6581986dc3f1857891d537a7f8c6
|
|
MD5 |
af2f898befb3937c437c42746f9868f6
|
|
BLAKE2b-256 |
bcdd99396756ed40d9b22e2eb8c23740a110eb219e2b76783c6457147ceea4b9
|