pyscard - python for smart cards¶
pyscard - python smart card library - is a python module adding smart cards support to python.
download pyscard from sourceforge.net.
Report bugs, patches and feature requests using the sourceforge pyscard bug tracking system.
Pyscard consists of:
- smartcard.scard, an extension module wrapping the WinSCard API (smart card base components) also known as PC/SC, and
- smartcard, a higher level python framework built on top of the raw PC/SC API.

Documentation¶
smartcard reference (python smart card library)
scard reference (python PCSC wrapper), the python wrapper around PCSC
Samples¶
High level API samples: See pyscard smartcard framework samples
Low level API samples: See PCSC wrapper samples
Index¶
Contents:
- pyscard user’s guide
- pyscard smartcard framework samples
- Display the ATR of inserted cards
- Selecting the DF_TELECOM of a card
- A simple apdu tracer and interpreter
- Tracing connection events
- Decorating Card Connections to add custom behavior
- Detecting response apdu errors
- Implementing a custom ErrorChecker
- Implementing a custom card type
- Monitoring smartcard readers
- Monitoring smartcard insertion/removal
- APDU/ATR byte to string utilities
- PCSC wrapper samples
- send a Control Code to a card or reader
- get the ATR of a card
- get the attributes of a card
- wait for card insertion/removal
- list the cards introduced in the system
- list the interfaces supported by a card
- locate cards in the system
- manage readers and reader groups
- list smart card readers
- select the DF_TELECOM of a SIM card
- perform a simple smart card transaction
- License