Page 1 of 1

How to use pyGlobalPlatform to list smartcard readers

Posted: Wed Nov 25, 2015 8:24 am
by JavaCardOS
The following demo code shows how to use pyGlobalPlatform to list smartcard readers.

Code: Select all

# Import the module
import globalplatform as gp

# Establish context
context = gp.establishContext()

# List readers
readernames = gp.listReaders(context)

# print all the reader names
for readername in readernames:
     print readername
 
# Release context   
gp.releaseContext(context)

Re: How to use pyGlobalPlatform to list smartcard readers

Posted: Tue Dec 01, 2015 4:00 am
by rainly
what's the types of the file? it also python?

Re: How to use pyGlobalPlatform to list smartcard readers

Posted: Tue Dec 01, 2015 10:11 pm
by kuafu
Life is short ,use python.