server.ome_node

Attributes

AUSTIN_PORT

BOSTON_PORT

DEFAULT_NEWSGROUPS

CLIENT

Functions

get_client(→ nntp.NNTPClient)

enable_a_default_channel(→ None)

channels(...)

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_NEWSGROUPS: dict[str, str]
server.ome_node.CLIENT: nntp.NNTPClient | None = None
server.ome_node.get_client(port: int = 119) nntp.NNTPClient
server.ome_node.enable_a_default_channel(channel_name: str = 'local.test') None
server.ome_node.channels() collections.abc.Iterator[server.schemas.Channel]
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