Infineon / BlockchainSecurity2Go-Python-Library

Python library for the Blockchain Security 2Go starter kit
https://infineon.com/blockchain
MIT License
16 stars 8 forks source link

Add feature to find card reader object via name str #4

Closed DhruvKhemani closed 5 years ago

DhruvKhemani commented 5 years ago

find_reader("name of card reader") This new command allows the user to find a smartcard reader object, which is used for consequent commands, based on its name. The entered name must resemble the name which gets outputted via the cli command blocksec2go list_readers but does not have to fully match it. So as an example instead of writing "company-name reader-name exact-modell-number etc..." you can simply write "company-name reader-name" and it should automatically find a reader with that name without writing out the full name. This is especially important for cross platform usage since on different devices the full name often doesn't match.

If there are multiple card readers with the same name the first one recognized by the program gets used!

DhruvKhemani commented 5 years ago

Changed exception to the correct type and updated it also in the comment.