Name | canbro JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | This package extend the python-can with the broqer package. This provides the functionality to work in a reactive style with can signals and messages. |
upload_time | 2024-03-08 09:52:39 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2023 Lukas Riegler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
arxml
dbc
can
reactive
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```python
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 MIT 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.0.1 in progress.
Raw data
{
"_id": null,
"home_page": "",
"name": "canbro",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Lukas Riegler <lukasantonriegler@gmail.com>",
"keywords": "ARXML,DBC,can,reactive",
"author": "",
"author_email": "Lukas Riegler <lukasantonriegler@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/e1/69/3497aa8bf16307fcdf3b07e7b422ceef902ce8689b9194c4fda807b5d81a/canbro-0.1.0.tar.gz",
"platform": null,
"description": "# python-canbro\n\nthe 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.\n\nThis 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.\n\n## Dependencies\n\n`canbro` requires the following dependencies:\n\n- `can` (version 4.3.1 or later)\n- `cantools` (version 39.4.4 or later)\n- `broqer` (version 3.0.3 or later)\n\n\n## Usage\n\n### example cylce messages\n\n```python\nfrom can.interface import Bus\nfrom cantools.database import load_file\nfrom broqer import Sink\nfrom canbro import Node\n\n# load dbc file\ndb = load_file('device_CAN.dbc')\n\n# create ECU node with virtual bus test\nbus_e= Bus('test', interface='virtual')\necu = Node(name=\"ECU\",bus=bus_e,database=db )\n\n# create VCU node with virtual bus test, and connect to ECU via same name of bus -> test\nbus_v= Bus('test', interface='virtual')\nvcu= Node(name='CONTROL',bus=bus_v,database=db )\n\ndef show_vcu_value(value):\n print( 'value={}'.format(value) , end='')\n\nshow_print = ecu.DEM._signal_operation_mode.subscribe(Sink(show_vcu_value))\n\nvcu.DEM.start_periodic()\n\nvcu.DEM._signal_operation_mode.notify(2)\n```\t\n\n\n## License\ncanbro is licensed under the MIT License. See the LICENSE file for more information.\n\n## Author\ncanbro was created by Lukas Riegler.\nContact him via a issue on github.\n\n## Version\ncanbro version 0.0.1 in progress.",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Lukas Riegler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "This package extend the python-can with the broqer package. This provides the functionality to work in a reactive style with can signals and messages.",
"version": "0.1.0",
"project_urls": {
"Bug Tracker": "https://github.com/lki1354/python-canbro/issues",
"Documentation": "https://readthedocs.org",
"Homepage": "https://github.com/lki1354/python-canbro",
"Repository": "https://github.com/lki1354/python-canbro.git"
},
"split_keywords": [
"arxml",
"dbc",
"can",
"reactive"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fc126aa4ed811bc3ba21ada584855dea3ffb5cd26ec00a14a0fc973e774a169c",
"md5": "24c84c047f232e9c14d40605fbbdc07e",
"sha256": "742721f85c35ade93ef34a1e8da42d0044a7d9492dc3e91a76c06796fecf5b95"
},
"downloads": -1,
"filename": "canbro-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24c84c047f232e9c14d40605fbbdc07e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 9786,
"upload_time": "2024-03-08T09:52:36",
"upload_time_iso_8601": "2024-03-08T09:52:36.563466Z",
"url": "https://files.pythonhosted.org/packages/fc/12/6aa4ed811bc3ba21ada584855dea3ffb5cd26ec00a14a0fc973e774a169c/canbro-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e1693497aa8bf16307fcdf3b07e7b422ceef902ce8689b9194c4fda807b5d81a",
"md5": "921d91cdf58deb5facf02aee9599308a",
"sha256": "e0803c6fa56746a0cbe5ee36ee0123e98c860408e46477a033e5566953cde07e"
},
"downloads": -1,
"filename": "canbro-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "921d91cdf58deb5facf02aee9599308a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 1889868,
"upload_time": "2024-03-08T09:52:39",
"upload_time_iso_8601": "2024-03-08T09:52:39.073974Z",
"url": "https://files.pythonhosted.org/packages/e1/69/3497aa8bf16307fcdf3b07e7b422ceef902ce8689b9194c4fda807b5d81a/canbro-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-08 09:52:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lki1354",
"github_project": "python-canbro",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "canbro"
}