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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| usb_barcode_scanner_julz-0.2.tar.gz | 3.0 kB | Without provenance | Details for usb_barcode_scanner_julz-0.2.tar.gz |
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
|
Security for usb-barcode-scanner-julz 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.