eric.load_eric_open_records_to_nntp

Load ERIC open records from ERIC_open_records.json into the default NNTP server.

ERIC_open_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

eric.load_eric_open_records_to_nntp.nntp_pick_newsgroup(newsgroup: str = 'eric.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.

eric.load_eric_open_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

eric.load_eric_open_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

eric.load_eric_open_records_to_nntp.records