server.ome_node

Attributes

AUSTIN_PORT

BOSTON_PORT

DEFAULT_NEWSGROUP_NAMES

CLIENT

nntp_client

Functions

get_client(→ nntp.NNTPClient)

channels(...)

Rename this function to channels() and remove this function below when

channel_summary(→ server.schemas.ChannelSummary)

_to_metadata(...)

channel_cards(→ list[server.schemas.Card])

create_post(→ bool)

import_post(→ bool)

Module Contents

server.ome_node.AUSTIN_PORT = 119
server.ome_node.BOSTON_PORT = 1119
server.ome_node.DEFAULT_NEWSGROUP_NAMES: set[str]
server.ome_node.CLIENT: nntp.NNTPClient | None = None
server.ome_node.get_client(port: int = 119) nntp.NNTPClient
server.ome_node.channels() collections.abc.Iterator[server.schemas.Channel]

Rename this function to channels() and remove this function below when https://github.com/greenbender/pynntp/issues/95 is fixed.

server.ome_node.channel_summary(channel_name: str) server.schemas.ChannelSummary
server.ome_node._to_metadata(x: str | bytes | bytearray) server.schemas.Metadata | str | bytes | bytearray
server.ome_node.channel_cards(channel_name: str, start: int, end: int) list[server.schemas.Card]
server.ome_node.create_post(card: server.schemas.NewCard) bool
server.ome_node.import_post(channel_name: str, card_id: int) bool
server.ome_node.nntp_client