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

Don't hardcode display support #5

Closed
thijstriemstra opened this issue Jan 17, 2017 · 3 comments
Closed

Don't hardcode display support #5

thijstriemstra opened this issue Jan 17, 2017 · 3 comments

Comments

@thijstriemstra
Copy link
Collaborator

The arguments in the example options parser should be dynamically populated. Basically every lib should advertise what display modes/interfaces are available.

@thijstriemstra
Copy link
Collaborator Author

thijstriemstra commented Jan 25, 2017

This also requires some sort of API coming from luma.core I imagine. Any library or simple plugin system we can use here? I have some of these escpos printers and I'm thinking of creating luma.escpos just for fun, that basically provides an emulator that prints every frame directly to a thermal printer. So I'd create such a package and then luma.examples should somehow know (like django) that there's an escpos emulator available (or any other emulator/display) when a certain package is installed. Thoughts?

@rm-hull
Copy link
Owner

rm-hull commented Jan 25, 2017

i guess the first place to start looking might be the inspect module or pyclbr possibly?

Alternatively recursively check and descend into list(pkgutil.walk_packages(luma.__path__)) importing packages as you go

@rm-hull
Copy link
Owner

rm-hull commented Mar 5, 2017

Fixed in #18

@rm-hull rm-hull closed this as completed Mar 5, 2017
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

2 participants