https://github.com/null-none/barcode-scanner
Linux Python code to read from a USB barcode scanner directly.
https://github.com/null-none/barcode-scanner
barcode barcode-scanner python scanner
Last synced: 23 days ago
JSON representation
Linux Python code to read from a USB barcode scanner directly.
- Host: GitHub
- URL: https://github.com/null-none/barcode-scanner
- Owner: null-none
- License: mit
- Created: 2023-05-11T20:44:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T12:40:04.000Z (about 3 years ago)
- Last Synced: 2025-01-26T09:28:31.798Z (over 1 year ago)
- Topics: barcode, barcode-scanner, python, scanner
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Reading information from Dymo USB scale.
=======
Install
=======
.. code-block:: bash
# sudo apt-get install python libusb-1.0-0
.. code-block:: bash
pip install barcode-scanner
=======
Example
=======
.. code-block:: python
from barcode import scanner
usb = scanner.USB(vendor_id=0x0922, product_id=0x8003)
print(scanner.get_code())
=======
Donation
=======
.. image:: https://img.shields.io/badge/Donate-PayPal-green.svg
:target: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YYZQ6ZRZ3EW5C