An editor for CAN bus database files like dbc or sym, based on cantools and urwid
Project description
dbc-editor
An editor for CAN bus database files like dbc or sym, based on cantools and urwid.
Usage
Pass the file that you want to open as command line argument. You can also pass the name of a not existing file in order to create a new file.
When you open the program a list of all messages defined in the passed file is displayed. If it is a new file this list is empty.
How to navigate in the list view:
- 'arrow up' / 'arrow down' to select a message
- 'G'/'_' to jump to last/first line
- 'arrow right' to display the signals of the currently selected message
- 'arrow left' to return from the list of signals to the list of messages
- 'i' to edit the selected message (if you are in the list of messages) / signal (if you are in the list of signals)
- 'v' to get a visualization of the message layout
- '+' to create a new message/signal
- '-' to delete the selected message/signal
- 'w' to write/save
- 'q' to quit
- '1' if you are in the list of messages: sort by message id
- '2' if you are in the list of messages: sort by message name
- '0' if you are in the list of messages: sort by the order how they appear in the dbc file
How to navigate in the edit view:
-
'arrow up' / 'arrow down' to select the entry field
-
'arrow left' / 'arrow right' to select a radio button. Be careful to not press these buttons too often:
- If you are on the left most position, pressing 'arrow left' returns to the list view. If you have made changes it will ask you whether you want to save the changes. You can press 'escape' in this dialog to return to the edit view.
- If you are on the right most position, pressing 'arrow right' saves the changes and returns to the list view. (Same like 'enter')
Maybe I will change this in the future but this does not have a priority.
-
'enter' to save changes and return to the list of messages/signals
-
'escape' to discard changes and return to the list of messages/signals
Installation
$ pipx install dbc-editor
TODO
Missing message attributes:
- senders
- send_type
- cycle_time
Missing signal attributes:
- initial
- minimum
- maximum
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dbc_editor-0.6.1.tar.gz
.
File metadata
- Download URL: dbc_editor-0.6.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa09a7ecb7444116eb36b6c69da9aa866f1205be09769746c11f30263abbeda7 |
|
MD5 | 16c02a51f0ded10b65af03e39e916c08 |
|
BLAKE2b-256 | 76d219952ba8b181413fcf2888c6e54b14893e27d15c31ef50501f1fdb9c5c79 |
File details
Details for the file dbc_editor-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: dbc_editor-0.6.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da44c2739f8b81619807caee51137578720f84c3e7f6b688cf6fe72112df5478 |
|
MD5 | 195c83ee9338244715dc8a850f01b57c |
|
BLAKE2b-256 | 27acd416336f6f0bb7d360468c6e8b76138ad3d9d170902c2ddd109245a66d7b |