Skip to main content

Handheld USB Scanner package

Project description


Support input from a hand-held USB scanner in python - such as this one:


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__':
        while True:
            upcnumber = barcode_reader()
    except KeyboardInterrupt:
        logging.debug('Keyboard interrupt')
    except Exception as err:


pypi homepage : github :

install with:

pip install usb-barcode-scanner


Tested and working in Linux and Raspberry Pi, using Python 3.6, but should work with Python 2.7 too.


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 :

Suggestions and improvements welcome.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for usb-barcode-scanner, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size usb barcode scanner-0.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page