Using the smartcard framework is the preferred way to write python smart card application. You can however use the smartcard.scard library to write your python smart card application if you want to write your own python framework, or if you want to access some features of the SCardXXX C API not available in the smartcard framework.
The smartcard.scard module is a native extension module wrapping Windows smart card base components (also known as PCSC) on Windows, and pcsc-lite on linux and Mac OS X, whereas the smartcard framework is a pure python framework hiding scard complexity and PCSC.
send a Control Code to a card or reader | view source |
get the ATR of a card | view source |
get the attributes of a card | view source |
wait for card insertion/removal | view source |
list the cards introduced in the system | view source | list the interfaces supported by a card | view source |
locate cards in the system | view source |
manage readers and reader groups | view source |
list smart card readers | view source |
select the DF_TELECOM of a SIM card | view source |
perform a simple smart card transaction | view source |
This file is part of pyscard.
pyscard is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
pyscard is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with pyscard; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA