SlackLog formatters¶
SlackLog formatter takes an in-memory representation of a Slackware ChangeLog.txt and produces different representations of it (TXT, RSS, Atom, JSON).
- class slacklog.formatters.SlackLogFormatter[source]¶
Bases:
objectBase class for SlackLog formatters.
- format_entry(entry: SlackLogEntry, is_first: bool, is_last: bool) str[source]¶
- format_entry_preamble(entry: SlackLogEntry) str[source]¶
- format_entry_postamble(entry: SlackLogEntry) str[source]¶
- format_pkg(pkg: SlackLogPkg, is_first: bool, is_last: bool) str[source]¶
- format_pkg_preamble(pkg: SlackLogPkg) str[source]¶
- format_pkg_postamble(pkg: SlackLogPkg) str[source]¶
- class slacklog.formatters.SlackLogTxtFormatter[source]¶
Bases:
SlackLogFormatterRecreate original ChangeLog.txt format.
- format_entry_preamble(entry: SlackLogEntry) str[source]¶
- format_pkg_preamble(pkg: SlackLogPkg) str[source]¶
- class slacklog.formatters.SlackLogRssFormatter[source]¶
Bases:
SlackLogFormatterGenerate an RSS feed from SlackLog.
- format_entry_preamble(entry: SlackLogEntry) str[source]¶
- format_entry_postamble(entry: SlackLogEntry) str[source]¶
- format_pkg_preamble(pkg: SlackLogPkg) str[source]¶
- class slacklog.formatters.SlackLogJsonFormatter[source]¶
Bases:
SlackLogFormatterGenerate JSON output from SlackLog.