Metadata-Version: 2.0
Name: cantools
Version: 2.0.0
Summary: CAN BUS tools.
Home-page: https://github.com/eerimoq/cantools
Author: Erik Moqvist
Author-email: erik.moqvist@gmail.com
License: MIT
Keywords: CAN BUS,candb,cantools
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Dist: bitstruct (>=0.7.1)
Requires-Dist: pyparsing (>=2.0.3)

|buildstatus|_
|coverage|_

About
=====

CAN BUS tools.

- DBC file mangling.

Installation
============

.. code-block:: python

    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`_:

.. code-block:: python

   >>> 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'
   >>>

.. |buildstatus| image:: https://travis-ci.org/eerimoq/cantools.svg
.. _buildstatus: https://travis-ci.org/eerimoq/cantools

.. |coverage| image:: https://coveralls.io/repos/github/eerimoq/cantools/badge.svg?branch=master
.. _coverage: https://coveralls.io/github/eerimoq/cantools

.. _small DBC-file: https://github.com/eerimoq/cantools/blob/master/tests/files/motohawk.dbc


