I am trying to create a program that will accept input from a usb barcode reader and then perform an HTML request to a website forming a url based on the input
Looking around I found out that using pyusb library, I can lock a specific USB device and accept input from it.
Also using urllib2.urlopen i can perform the html request.
Firstly, how can I make the python script to continuously wait for user input ( the first barcode card is scanned, the url is formed and then again make the script return to wait for user input? )
Secondly, is it possible to create an executable of that script. Not having experience with python I searched and found that there is py2exe. Because this script depends on 3rd party libraries, is py2exe going to automatically package these libraries eg pyusb ( windows installation says that for pyusb to work you need cygwin ...? does that still makes sense if i develop and package under linux) or do i have to do something specific.
PS: if anyone else is aware of other libraries or a better way of doing what I am trying please let me know.