Handheld USB Scanner package
Project description
usb_barcode_scanner
Support input from a hand-held USB scanner in python - such as this one:
https://www.amazon.co.uk/gp/product/B0736NNZNV/
Usage:
The library is very simple to use: just import it and in case, wait for input.
from usb_scanner.scanner import barcode_reader
if __name__ == '__main__':
try:
while True:
upcnumber = barcode_reader()
print(upcnumber)
except KeyboardInterrupt:
logging.debug('Keyboard interrupt')
except Exception as err:
logging.error(err)
Installation
pypi homepage : https://pypi.org/project/usb-barcode-scanner/ github : https://github.com/julzhk/usb_barcode_scanner
install with:
pip install usb-barcode-scanner
Compatibility
Tested and working in Linux and Raspberry Pi, using Python 3.6, but should work with Python 2.7 too.
License
The software is provided "As is", without warranty of any kind, express or implied. Please see the MIT license attached.
Support & Contribution
Questions? Drop me a line : usb_barcode_scanner_support.20.learningfuture@spamgourmet.com
Suggestions and improvements welcome.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file usb_barcode_scanner_julz-0.2.tar.gz
.
File metadata
- Download URL: usb_barcode_scanner_julz-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9ed3993dc7747ce159bb07e37c337d0d2542fa691ac752df0ea228c17659ca |
|
MD5 | 8b592d4de91016131783aa83bd681617 |
|
BLAKE2b-256 | 3e88ba8678647136d4f9f915d3a46946ad5caf4c16e52e76d177f6621c5cff47 |