load_qubes_records_to_nntp ========================== .. py:module:: load_qubes_records_to_nntp .. autoapi-nested-parse:: Load QUBES records from qubes_records.json into the default NNTP server. qubes_records.json must exist in the same directory as this script. Attributes ---------- .. autoapisummary:: load_qubes_records_to_nntp.records Functions --------- .. autoapisummary:: load_qubes_records_to_nntp.nntp_pick_newsgroup load_qubes_records_to_nntp.nntp_write load_qubes_records_to_nntp.nntp_read Module Contents --------------- .. py:function:: nntp_pick_newsgroup(newsgroup: str = 'qubes.public') -> tuple[str, Ellipsis] Pick a newsgroup to be the current default. Args: newsgroup: name of an nntp newsgroup Returns: tuple(total, first, last, group) -- See pynntp docs. .. py:function:: nntp_write(payload: dict, newsgroup: str = '') -> bool Write a payload dict as json to a InterNet News newsgroup. Args: payload: Description of payload newsgroup: Description of newsgroup Returns: test.inews.a253222105b64597b9afd10e4f4c6740@inn2.packages.debian.org .. py:function:: nntp_read(newsgroup: str = '') -> dict Read an article from a InterNet News newsgroup and return it as a dict. Args: article_id: Description of article_id newsgroup: Description of newsgroup Returns: Description of return value .. py:data:: records