load_qubes_records_to_nntp

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

records

Functions

nntp_pick_newsgroup(→ tuple[str, Ellipsis])

Pick a newsgroup to be the current default.

nntp_write(→ bool)

Write a payload dict as json to a InterNet News newsgroup.

nntp_read(→ dict)

Read an article from a InterNet News newsgroup and return it as a dict.

Module Contents

load_qubes_records_to_nntp.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.

load_qubes_records_to_nntp.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

load_qubes_records_to_nntp.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

load_qubes_records_to_nntp.records