GNU Info

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

(python2.1-lib.info)netrc


Next: robotparser Prev: mimify Up: Internet Data Handling
Enter node , (file) or (file)node

netrc file processing
=====================

Loading of `.netrc' files.  This module was written by Eric S. Raymond
<esr@snark.thyrsus.com>.
This manual section was written by Eric S. Raymond
<esr@snark.thyrsus.com>.
_Added in Python version 1.5.2_

The `netrc' class parses and encapsulates the netrc file format used by
the UNIX `ftp' program and other FTP clients.

`netrc([file])'
     A `netrc' instance or subclass instance encapsulates data from a
     netrc file.  The initialization argument, if present, specifies the
     file to parse.  If no argument is given, the file `.netrc' in the
     user's home directory will be read.  Parse errors will raise
     `NetrcParseError' with diagnostic information including the file
     name, line number, and terminating token.

`NetrcParseError'
     Exception raised by the `netrc' class when syntactical errors are
     encountered in source text.  Instances of this exception provide
     three interesting attributes:  `msg' is a textual explanation of
     the error, `filename' is the name of the source file, and `lineno'
     gives the line number on which the error was found.

netrc Objects

automatically generated by info2www version 1.2.2.9