SlackLog models

SlackLog models represent the ChangeLog.txt after parsing.

class slacklog.models.SlackLog[source]

Bases: object

Container for SlackLogEntry objects.

entries

List of SlackLogEntry objects.

startsWithSeparator

True if the log started with an entry separator.

endsWithSeparator

True if the log ended with an entry separator.

class slacklog.models.SlackLogEntry(timestamp: datetime, description: str, log: SlackLog, checksum: str = None, identifier: str = None, parent: str = None, timezone: tzinfo = None, twelveHourFormat: bool = None)[source]

Bases: object

Represents a single entry in a SlackLog.

timestamp

Timestamp of the entry (with timezone).

description

Description of the entry.

log

Reference to the parent SlackLog.

checksum

SHA512 checksum identifying the entry.

identifier

SHA512 identifier including parent info.

parent

Identifier of the parent entry.

timezone

Original timezone of the entry.

twelveHourFormat

True if the original timestamp was 12-hour format.

pkgs

List of SlackLogPkg objects contained in this entry.

class slacklog.models.SlackLogPkg(pkg: str, description: str, entry: SlackLogEntry)[source]

Bases: object

Represents a single package in a SlackLogEntry.

pkg

Package identifier.

description

Package description.

entry

Reference to the parent SlackLogEntry.