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

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

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

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return a string representing the Card (atr and reader concatenation).

Overrides: object.__repr__

__eq__(self, other)
(Equality operator)

source code 

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

__hash__(self)
(Hashing function)

source code 

Returns a hash value for this object (str(self) is unique).

Overrides: object.__hash__