almanac.io

class AbstractIoContext[source]

Bases: abc.ABC

An interface for input/output contexts.

abstract ansi(*args, **kwargs)None[source]

Print ANSI-escaped text.

abstract error(*args: Any, **kwargs: Any)None[source]

Print an error message.

abstract info(*args: Any, **kwargs: Any)None[source]

Print an information message.

abstract raw(*args, **kwargs)None[source]

Print formatted text without any prefix.

abstract warn(*args: Any, **kwargs: Any)None[source]

Print a warning message.

class NullIoContext[source]

Bases: almanac.io.abstract_io_context.AbstractIoContext

An input/output context for not actually printing anything.

ansi(*args, **kwargs)None[source]

Print ANSI-escaped text.

error(*args: Any, **kwargs: Any)None[source]

Print an error message.

info(*args: Any, **kwargs: Any)None[source]

Print an information message.

raw(*args, **kwargs)None[source]

Print formatted text without any prefix.

warn(*args: Any, **kwargs: Any)None[source]

Print a warning message.

class StandardConsoleIoContext[source]

Bases: almanac.io.abstract_io_context.AbstractIoContext

An input/output context for printing information to the console.

ansi(*args, **kwargs)None[source]

Print ANSI-escaped text.

error(*args: Any, **kwargs: Any)None[source]

Print an error message.

info(*args: Any, **kwargs: Any)None[source]

Print an information message.

raw(*args, **kwargs)None[source]

Print formatted text without any prefix.

warn(*args: Any, **kwargs: Any)None[source]

Print a warning message.