Skip to content

Proposal: Make all HW interfaces plugins #2159

Backlog

Description

@MatinF

We are actively using python-can and it's a core library for our CANsub CAN interface end users.

However, we believe the library could become cleaner and more scalable by doing a one-time restructuring that streamlines the library towards the plugin interface route - including for existing HW interfaces.

Our suggestion would be the below restructuring:

  1. Move python-can into a GitHub org, e.g. github.com/python-can
  2. Each HW interface (excl virtual) moves to its own plugin repo
  3. Every interface is now consistently a plugin
  4. If needed, python-can could by default install very popular interfaces
  5. Docs/README would list all interfaces in one table
  6. Current maintainers are admins of all the new repos

We think this would have multiple benefits:

  • Inclusion depends on usage/activity (not on when the interface was added)
  • HW interface issues/PRs/CI move to the interface repos
  • A HW interface can ship a fix without waiting for a python-can release
  • Manufacturers can maintain their own interfaces directly

We would be happy to contribute to this restructuring work from our side at CSS Electronics. Let us know your thoughts.

Activity

  1. pierreluctg commented on Nov 30, 2026

    @pierreluctg
    Collaborator

    Since the plugin interface already exists in python-can (plugin interface documentation), the main benefits of moving hardware interfaces out of the core python-can repository would be:

    • Inclusion depends on usage/activity (not on when the interface was added)
    • HW interface issues/PRs/CI move to the interface repos (already supported)
    • A HW interface can ship a fix without waiting for a python-can release (already supported)
    • Manufacturers can maintain their own interfaces directly (already supported)
    • Users and products could install only the interfaces they actually need, avoiding unnecessary interface code and dependencies.

    For example, CSS Electronics could ship a python-can-based solution without including any Vector-specific interface code or dependencies.

    Keeping interfaces in python-can simplifies installation, compatibility testing, and discovery. Moving them out allows interfaces to evolve, release, and manage dependencies independently, but requires stronger compatibility contracts and coordination between python-can and the interface packages.

  2. MatinF commented on Dec 1, 2026

    @MatinF
    ContributorAuthor

    @pierreluctg thanks for your inputs - my initial issue could have been more specific; I was referring to 'core' hardware interfaces in my outline - e.g. PEAK, Kvaser, Ixxat etc. These HW interfaces currently drive a significant double-digit share of commits/issues in python-can - as well as requests for pushing new releases to fix interface specific issues.

    So the three bullets you dashed out do still apply to those core interfaces, in my view - and by cleaning this up, the python-can project as a whole would become much more streamlined in our opinion, essentially making those 'core' interfaces operate in the exact same way as the newer 'plugin' interfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions