Package smartcard :: Module Card :: Class Card
[hide private]
[frames] | no frames]

Class Card

source code

Card class.

Instance Methods [hide private]
 
__init__(self, reader, atr)
Card constructor.
source code
 
__repr__(self)
Return a string representing the Card (atr and reader concatenation).
source code
 
__eq__(self, other)
Return True if self==other (same reader and same atr).
source code
 
__ne__(self, other)
Return True if self!=other (same reader and same atr).Returns False otherwise.
source code
 
__hash__(self)
Returns a hash value for this object (str(self) is unique).
source code
 
createConnection(self)
Return a CardConnection to the Card object.
source code
Method Details [hide private]

__init__(self, reader, atr)
(Constructor)

source code 

Card constructor. reader: reader in which the card is inserted atr: ATR of the card

__eq__(self, other)
(Equality operator)

source code 

Return True if self==other (same reader and same atr). Return False otherwise.