app.io.writer#

Module Contents#

Classes#

IoWriter

Abstract class for writing posts.

FileWriter

Writes a post to a file.

MockWriter

Writes a post to a string.

class app.io.writer.IoWriter#

Abstract class for writing posts.

abstract write(data: str)#

Write a post

Parameters#

data: str

The post data to write

class app.io.writer.FileWriter(output_path: pathlib.Path)#

Bases: IoWriter

Writes a post to a file.

write(data: str)#

Write a post

Parameters#

data: str

The post data to write

class app.io.writer.MockWriter#

Bases: IoWriter

Writes a post to a string.

write(data: str)#

Write a post

Parameters#

data: str

The post data to write