Skip to content

Using pyxcp as a library #211

@akermu

Description

@akermu

Thank you very much, for bringing xcp to the python world!

We want to use this package as a library and we have currently two issues:

  • There's a pretty harsh constraint on the dependencies:
    traitlets = "<=5.11.2"
  • There's currently unconditionally pretty printing installed:

    pyxcp/pyxcp/__init__.py

    Lines 9 to 16 in 36843fd

    pretty.install()
    from .master import Master # noqa: F401, E402
    from .transport import Can, Eth, SxI, Usb # noqa: F401, E402
    console = Console()
    tb_install(show_locals=True, max_frames=3) # Install custom exception handler.
  • It is very difficult to make a PyXCP object programmatically as it expects to read from a file (can be worked around)

I would provide patches for both of these, if you're interested?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions