GNU Info

Info Node: (python2.1-lib.info)netrc Objects

(python2.1-lib.info)netrc Objects


Prev: netrc Up: netrc
Enter node , (file) or (file)node

netrc Objects
-------------

A `netrc' instance has the following methods:

`authenticators(host)'
     Return a 3-tuple `(LOGIN, ACCOUNT, PASSWORD)' of authenticators
     for HOST.  If the netrc file did not contain an entry for the
     given host, return the tuple associated with the `default' entry.
     If neither matching host nor default entry is available, return
     `None'.

`__repr__()'
     Dump the class data as a string in the format of a netrc file.
     (This discards comments and may reorder the entries.)

Instances of `netrc' have public instance variables:

`hosts'
     Dictionary mapping host names to `(LOGIN, ACCOUNT, PASSWORD)'
     tuples.  The `default' entry, if any, is represented as a
     pseudo-host by that name.

`macros'
     Dictionary mapping macro names to string lists.


automatically generated by info2www version 1.2.2.9