Skip to main content

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
  • '/' search
  • '?' reverse search
  • 'n' next search result
  • 'N' previous search result

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

Metadata

Release files for dbc-editor 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbc-editor 0.7.0
File Size Uploaded
dbc_editor-0.7.0.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbc-editor 0.7.0
File Interpreter ABI Platform
dbc_editor-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.6 kB

Release files / dbc_editor-0.7.0.tar.gz

Download URL dbc_editor-0.7.0.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74dc40597e5da1a4fb59c133c21fec14d26caa7525ca81cd898e6abf280f97f3
BLAKE2b-256 checksum
How to use checksums
3cf8d3be207b9f8401c5e47aad3297cdc8ab9539eefcdecc8530a56f3ec1ff37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.0

Release files / dbc_editor-0.7.0-py3-none-any.whl

Download URL dbc_editor-0.7.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00b04c1a9a3c924e8cadbf1ad9eb257622381c490c8446344390bdc756016e62
BLAKE2b-256 checksum
How to use checksums
08e06f048e6f20e0e28b1b622838f6e93f938bc10bbfb916fc63a371e8c0a1d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.0

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page