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'
>>>
Metadata
Release files for cantools 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cantools-2.0.0.tar.gz | 16.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cantools-2.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 23.6 kB
Release files / cantools-2.0.0.tar.gz
| Download URL | cantools-2.0.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a378048cd5602efda4a6ac879cf7039c3be0e9b2b26e2045ba653dd8ba42ef45
|
|
BLAKE2b-256 checksum How to use checksums |
aaf7b987a991d6315bd82a9c9ab51cf8d057ff438fdde0eaf210fc3e39f757bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cantools-2.0.0-py2.py3-none-any.whl
| Download URL | cantools-2.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b919e690b5fc28e5dc4b64237d51248b407e6581986dc3f1857891d537a7f8c6
|
|
BLAKE2b-256 checksum How to use checksums |
bcdd99396756ed40d9b22e2eb8c23740a110eb219e2b76783c6457147ceea4b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cantools 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.