server.ome_node =============== .. py:module:: server.ome_node Attributes ---------- .. autoapisummary:: server.ome_node.AUSTIN_PORT server.ome_node.BOSTON_PORT server.ome_node.DEFAULT_NEWSGROUP_NAMES server.ome_node.CLIENT server.ome_node.nntp_client Functions --------- .. autoapisummary:: server.ome_node.get_client server.ome_node.channels server.ome_node.channel_summary server.ome_node._to_metadata server.ome_node.channel_cards server.ome_node.create_post server.ome_node.import_post Module Contents --------------- .. py:data:: AUSTIN_PORT :value: 119 .. py:data:: BOSTON_PORT :value: 1119 .. py:data:: DEFAULT_NEWSGROUP_NAMES :type: set[str] .. py:data:: CLIENT :type: nntp.NNTPClient | None :value: None .. py:function:: get_client(port: int = 119) -> nntp.NNTPClient .. py:function:: 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. .. py:function:: channel_summary(channel_name: str) -> server.schemas.ChannelSummary .. py:function:: _to_metadata(x: str | bytes | bytearray) -> server.schemas.Metadata | str | bytes | bytearray .. py:function:: channel_cards(channel_name: str, start: int, end: int) -> list[server.schemas.Card] .. py:function:: create_post(card: server.schemas.NewCard) -> bool .. py:function:: import_post(channel_name: str, card_id: int) -> bool .. py:data:: nntp_client