__init__(self,
filename,
delim=':',
usernameField=0,
passwordField=1,
caseSensitive=1,
hash=None)
(Constructor)
-
- Parameters:
filename -
The name of the file from which to read username and password
information.
(type=str )
delim -
The field delimiter used in the file.
(type=str )
usernameField -
The index of the username after splitting a line on the
delimiter.
(type=int )
passwordField -
The index of the password after splitting a line on the
delimiter.
(type=int )
caseSensitive -
If true, consider the case of the username when performing a
lookup. Ignore it otherwise.
(type=bool )
hash -
A function used to transform the plaintext password received
over the network to a format suitable for comparison against the
version stored on disk. The arguments to the callable are the
username, the network-supplied password, and the in-file version
of the password.
(type=Three-argument callable.)
|