Closed esven closed 4 years ago
Hi @esven!
Thank you for the PR! Indeed the Python2 example is not mentioning connecting to the device anywhere. Will correct and deprecate, as Python2 is losing/lost the support anyway. Will merge after a brief test. I plan to work on the library in the coming days.
I had trouble, communication with libnitrokey using a script running under Python 3.8.2 mainly because of changes in the ffi library. Therefore I've modified the given examples to run under Python 3.8.2 and added them to README.md as well as the "full example" to the repository.
In addition, I'm not sure if the Python2 example from the README.md will work as it does not connect to the actual NitroKey. In Python 3 I needed to connect to the stick prior to receiving HOTP tokens. Unfortunately, I do not have Python2 running anymore, so I was unable to test it at the moment.