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

Programmatically get PID and VID #555

Open
tmblog opened this issue Sep 1, 2023 · 2 comments
Open

Programmatically get PID and VID #555

tmblog opened this issue Sep 1, 2023 · 2 comments

Comments

@tmblog
Copy link

tmblog commented Sep 1, 2023

Hi, probably addressed before but I couldn't find anything obvious here nor searches.
Is there a way to get the PID and VID just for printers installed (without it being connected) programmatically in Python?
Thank you!

@patkan
Copy link
Member

patkan commented Sep 2, 2023

Hi, as far as I know, there is no way to find this out programmatically. You could research the vendor id and the product id of your device.
I have proposed a change to the printer db for this: receipt-print-hq/escpos-printer-db#81

@belono
Copy link
Contributor

belono commented Sep 3, 2023

I have proposed a change to the printer db for this: receipt-print-hq/escpos-printer-db#81

I really like this proposal, the most info we can fetch from the printers database, the best.

There's a way to find all the USB printers connected to a system, but they must be plugged in.
pyusb tutorials

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

3 participants