amoorion.plugins.dryrun.base

dryrun plugin: keeps what was posted in memory, sends nothing anywhere.

Classes

DryRun(vault[, view])

A platform that sends nothing, to try anything without an account.

class amoorion.plugins.dryrun.base.DryRun(vault, view=None)[source]

Bases: Plugin

A platform that sends nothing, to try anything without an account.

It can do everything, and keeps its messages for as long as the process runs.

Parameters:
post(post)[source]

Keep the post; its title and text become one text, as most platforms do.

Parameters:

post (Post)

Return type:

Message

read(limit=20)[source]

The kept messages, newest first.

Parameters:

limit (int)

Return type:

list[Message]

reply(to, text)[source]

Keep the answer, pointing at the message it answers.

Parameters:
Return type:

Message

delete(message)[source]

Forget a message; an unknown one is an error, as on a real platform.

Parameters:

message (Message)

Return type:

None