Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using pyxcp as a library #211

Open
akermu opened this issue Feb 28, 2025 · 0 comments
Open

Using pyxcp as a library #211

akermu opened this issue Feb 28, 2025 · 0 comments

Comments

@akermu
Copy link

akermu commented Feb 28, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant