python-canbro
the name of the package canbro arose from can and broqer which are the two main python packages which are used in this combination. Additionaly the cantools is also a main contributer for now. But maybe will be replaced with a own implementation in future.
This package use the python-can and extend the python-cantools with the python-broqer package. There the functionality to work in a reactive style with can signals and messages will be provided.
Dependencies
canbro requires the following dependencies:
can(version 4.3.1 or later)cantools(version 39.4.4 or later)broqer(version 3.0.3 or later)
Usage
example cylce messages
from can.interface import Bus
from cantools.database import load_file
from broqer import Sink
from canbro import Node
# load dbc file
db = load_file('device_CAN.dbc')
# create ECU node with virtual bus test
bus_e= Bus('test', interface='virtual')
ecu = Node(name="ECU",bus=bus_e,database=db )
# create VCU node with virtual bus test, and connect to ECU via same name of bus -> test
bus_v= Bus('test', interface='virtual')
vcu= Node(name='CONTROL',bus=bus_v,database=db )
def show_vcu_value(value):
print( 'value={}'.format(value) , end='')
show_print = ecu.DEM._signal_operation_mode.subscribe(Sink(show_vcu_value))
vcu.DEM.start_periodic()
vcu.DEM._signal_operation_mode.notify(2)
License
canbro is licensed under the LGPL-3.0 license. See the LICENSE file for more information.
Author
canbro was created by Lukas Riegler. Contact him via a issue on github.
Version
canbro version 0.1.1 in progress.
Metadata
Release files for canbro 0.1.1
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 | Actions |
|---|---|---|---|---|
| canbro-0.1.1.tar.gz | 1.9 MB | Without provenance | Details for canbro-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canbro-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for canbro-0.1.1-py3-none-any.whl |
Total release size: 1.9 MB
Release files / canbro-0.1.1.tar.gz
| Download URL | canbro-0.1.1.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b460fdbcbe930c1aa9ab64da5d283d0199f4ab3b3bab243b5c88911451f62e7
|
|
BLAKE2b-256 checksum How to use checksums |
349115892c1351b6330321ff19b86516269ddbfc8665e4a8a99ca26584369c02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.0
|
Release files / canbro-0.1.1-py3-none-any.whl
| Download URL | canbro-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd5fd31ef3154ac6c28b01592e01486899adc98b31c34962e1960bcb074789df
|
|
BLAKE2b-256 checksum How to use checksums |
1fe90aa42505efd28acdb5245a544b2624dce3051076172f2851b2168ebbbeda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.0
|
Security for canbro 0.1.1
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.