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

Class Reader

source code


Reader abstract class.

The reader class is responsible for creating connections with a card.

Known subclasses: PCSCReader

Instance Methods [hide private]
 
__init__(self, readername)
Constructs a new reader and store readername.
source code
 
addtoreadergroup(self, groupname)
Add reader to a reader group.
source code
 
removefromreadergroup(self, groupname)
Remove reader from a reader group.
source code
 
createConnection(self)
Returns a card connection thru reader.
source code
 
__eq__(self, other)
Returns True if self==other (same name).
source code
 
__hash__(self)
Returns a hash value for this object (self.name is unique).
source code
 
__repr__(self)
Returns card reader name string for `object` calls.
source code
 
__str__(self)
Returns card reader name string for str(object) calls.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, readername)
(Constructor)

source code 

Constructs a new reader and store readername.

Overrides: object.__init__

__hash__(self)
(Hashing function)

source code 

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

Overrides: object.__hash__

__repr__(self)
(Representation operator)

source code 

Returns card reader name string for `object` calls.

Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

Returns card reader name string for str(object) calls.

Overrides: object.__str__