nntplib
index
/home/ping/python/nntplib.py

# An NNTP client class.  Based on RFC 977: Network News Transfer
# Protocol, by Brian Kantor and Phil Lapsley.

 
Modules
            
re
socket
string
 
Classes
            
NNTP
 
class NNTP
       
   Methods defined here:
__init__(self, host, port=119, user=None, password=None)
artcmd(self, line)
# Internal: process a HEAD, BODY or ARTICLE command
article(self, id)
body(self, id)
date(self)
debug = set_debuglevel(self, level)
getline(self)
# Internal: return one line from the server, stripping CRLF.
# Raise EOFError if the connection is closed
getlongresp(self)
# Internal: get a response plus following text from the server.
# Raise various errors if the response indicates an error
getresp(self)
# Internal: get a response from the server.
# Raise various errors if the response indicates an error
getwelcome(self)
group(self, name)
head(self, id)
help(self)
ihave(self, id, f)
last(self)
list(self)
longcmd(self, line)
# Internal: send a command and get the response plus following text
newgroups(self, date, time)
newnews(self, group, date, time)
next(self)
post(self, f)
putcmd(self, line)
# Internal: send one command to the server (through putline())
putline(self, line)
# Internal: send one line to the server, appending CRLF
quit(self)
set_debuglevel(self, level)
shortcmd(self, line)
# Internal: send a command and get the response
slave(self)
stat(self, id)
statcmd(self, line)
# Internal: process a STAT, NEXT or LAST command
statparse(self, resp)
# Internal: parse the response of a STAT, NEXT or LAST command
xgtitle(self, group)
xhdr(self, hdr, str)
xover(self, start, end)
xpath(self, id)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'nntplib'
 
Functions
            
_test()
# Minimal test function
 
Data
             CRLF = '\r\n'
LONGRESP = ['100', '215', '220', '221', '222', '224', '230', '231', '282']
NNTP_PORT = 119
__file__ = '/home/ping/python/nntplib.py'
__name__ = 'nntplib'
error_data = 'nntplib.error_data'
error_perm = 'nntplib.error_perm'
error_proto = 'nntplib.error_proto'
error_reply = 'nntplib.error_reply'
error_temp = 'nntplib.error_temp'