Skip to main content

CAN BUS tools.

Project description

buildstatus coverage

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

This version

2.0.0

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)

Uploaded Source

Built Distribution

cantools-2.0.0-py2.py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page