app.io.reader#

Module Contents#

Classes#

IoReader

Abstract class for reading posts.

StringReader

Reads a post from a string.

FileReader

Reads a post from a local file.

class app.io.reader.IoReader#

Abstract class for reading posts.

abstract read() str#

Reads a post.

class app.io.reader.StringReader(content: str)#

Bases: IoReader

Reads a post from a string.

read() str#

Reads a post.

class app.io.reader.FileReader(file_path: str)#

Bases: IoReader

Reads a post from a local file.

read() str#

Reads a post.