Lines Matching refs:NNTP

1 """An NNTP client class based on:
3 - RFC 2980: Common NNTP Extensions
8 >>> from nntplib import NNTP
9 >>> s = NNTP('news')
40 # - NNTP.date() returns a datetime object
41 # - NNTP.newgroups() and NNTP.newnews() take a datetime (or date) object,
43 # - NNTP.newgroups() and NNTP.list() return a list of GroupInfo named tuples
44 # - NNTP.descriptions() returns a dict mapping group names to descriptions
45 # - NNTP.xover() returns a list of dicts mapping field names (header or metadata)
47 # - NNTP.article(), NNTP.head() and NNTP.body() return a (response, ArticleInfo)
54 # - New method NNTP.getcapabilities()
55 # - New method NNTP.over()
57 # - NNTP.post() and NNTP.ihave() accept file objects, bytes-like objects and
83 __all__ = ["NNTP",
92 # reading arbitrary length lines. RFC 3977 limits NNTP line length to
129 # Standard port used by NNTP servers
299 class NNTP:
300 # UTF-8 is the character set for all NNTP commands and responses: they
310 # (e.g. NNTP gateways).
320 - port: port to connect to (default the standard NNTP port)
330 NNTP server on the local machine and intend to call
351 """Partial initialization for the NNTP protocol.
363 # arrive differs between some NNTP servers. If _setreadermode() fails
957 # Perform NNTP authentication if needed.
1018 class NNTP_SSL(NNTP):
1024 """This works identically to NNTP.__init__, except for the change
1053 help='NNTP server hostname (default: %(default)s)')
1055 help='NNTP port number (default: %s / %s)' % (NNTP_PORT, NNTP_SSL_PORT))
1059 help='use NNTP over SSL')
1066 s = NNTP(host=args.server, port=port)