Skip to main content

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.

Release files for usb-barcode-scanner-julz 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for usb-barcode-scanner-julz 0.2
File Size Uploaded
usb_barcode_scanner_julz-0.2.tar.gz 3.0 kB Details

Release files / usb_barcode_scanner_julz-0.2.tar.gz

Download URL usb_barcode_scanner_julz-0.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cf9ed3993dc7747ce159bb07e37c337d0d2542fa691ac752df0ea228c17659ca
BLAKE2b-256 checksum
How to use checksums
3e88ba8678647136d4f9f915d3a46946ad5caf4c16e52e76d177f6621c5cff47
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page