nntp.types¶
Types used in the NNTP client API.
Attributes¶
Classes¶
A newsgroup, as returned by LIST ACTIVE and NEWGROUPS. |
|
How a TLS connection is established. |
Module Contents¶
- nntp.types.Range¶
- class nntp.types.Newsgroup¶
Bases:
NamedTupleA newsgroup, as returned by LIST ACTIVE and NEWGROUPS.
status is the posting status, usually “y” (allowed), “n” (not allowed) or “m” (moderated).
- name: str¶
- low: int¶
- high: int¶
- status: str¶
- class nntp.types.SSLMode¶
Bases:
enum.StrEnumHow a TLS connection is established.
- IMPLICIT = 'implicit'¶
Establish secure connection immediately. You need to use a different port (usually 563) in this mode.
- STARTTLS = 'starttls'¶
Establish secure connection dynamically after sending a STARTTLS command. This mode is not recommended. See <https://www.rfc-editor.org/rfc/rfc8143.html#section-2> You can use the same port (usually 119) this mode.