doot.reporters._interface
Type Aliases
Protocols
Base class for protocol classes. |
|
A Re-entrant ctx manager, |
|
Reporter Methods for general user facing messages |
|
Base class for protocol classes. |
|
Base class for protocol classes. |
|
Reporters provide attr access to any registered ReportGroup_p's, |
|
Base class for protocol classes. |
Classes
For Storing what happened, where, and why |
|
Data for storing the context of the reporter |
Module Contents
- doot.reporters._interface.Logger: TypeAlias = logmod.Logger
- class doot.reporters._interface.ReportGroup_p[source]
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- class doot.reporters._interface.WorkflowGroup_p[source]
Bases:
ReportGroup_p,ProtocolA Re-entrant ctx manager, used for reporting user-level information about a task workflow run.
- branch(
- name: str | doot.workflow._interface.TaskName_p,
- info: jgdv.Maybe[str] = None,
- Parameters:
name (str | doot.workflow._interface.TaskName_p)
info (jgdv.Maybe[str])
- Return type:
Self
- resume(
- name: str | doot.workflow._interface.TaskName_p,
- Parameters:
name (str | doot.workflow._interface.TaskName_p)
- Return type:
Self
- class doot.reporters._interface.GeneralGroup_p[source]
Bases:
ReportGroup_p,ProtocolReporter Methods for general user facing messages
- user(msg: str, *rest: Any, **kwargs: Any) Self[source]
- Parameters:
msg (str)
rest (Any)
kwargs (Any)
- Return type:
Self
- trace(msg: str, *rest: Any, **kwargs: Any) Self[source]
- Parameters:
msg (str)
rest (Any)
kwargs (Any)
- Return type:
Self
- failure(
- msg: str,
- *rest: Any,
- **kwargs: Any,
- Parameters:
msg (str)
rest (Any)
kwargs (Any)
- Return type:
Self
- detail(
- msg: str,
- *rest: Any,
- **kwargs: Any,
- Parameters:
msg (str)
rest (Any)
kwargs (Any)
- Return type:
Self
- warn(msg: str, *rest: Any, **kwargs: Any) Self[source]
- Parameters:
msg (str)
rest (Any)
kwargs (Any)
- Return type:
Self
- error(msg: str, *rest: Any, **kwargs: Any) Self[source]
- Parameters:
msg (str)
rest (Any)
kwargs (Any)
- Return type:
Self
- class doot.reporters._interface.TreeGroup_p[source]
Bases:
ReportGroup_p,ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- class doot.reporters._interface.SummaryGroup_p[source]
Bases:
ReportGroup_p,ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...
- class doot.reporters._interface.Reporter_p[source]
Bases:
ProtocolReporters provide attr access to any registered ReportGroup_p’s, for formatted printing of workflow information
- _fmt: ReportFormatter_p
- _logger: Logger
- _stack: list[ReportStackEntry_d]
- property state: ReportStackEntry_d[source]
- Return type:
- property wf: WorkflowGroup_p[source]
- Return type:
- property gen: GeneralGroup_p[source]
- Return type:
- property tree: TreeGroup_p[source]
- Return type:
- property summary: SummaryGroup_p[source]
- Return type:
- class doot.reporters._interface.ReportFormatter_p[source]
Bases:
ProtocolBase class for protocol classes.
Protocol classes are defined as:
class Proto(Protocol): def meth(self) -> int: ...
Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing).
For example:
class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:
class GenProto[T](Protocol): def meth(self) -> T: ...