Skip to content

package supporting usb handheld barcode scanner. Using python 3.

License

Notifications You must be signed in to change notification settings

ridyanto/usb_barcode_scanner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 : [email protected]

Suggestions and improvements welcome.

About

package supporting usb handheld barcode scanner. Using python 3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%