whylogs.api.writer.writer
#
Module Contents#
Classes#
Helper class that provides a standard way to create an ABC using |
|
Elide the Writable argument |
|
Attributes#
- whylogs.api.writer.writer.Writable#
- class whylogs.api.writer.writer.Writer#
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- check_interval(interval_seconds: int) None #
Validate an interval configuration for a given writer.
Some writers only accepts certain interval configuration. Raise BadConfigError for an unacceptable interval.
- abstract write(file: _Writable, dest: Optional[str] = None, **kwargs: Any) Tuple[bool, Union[str, List[Tuple[bool, str]]]] #
Calls Writable::write() to serialize the Wriable file to temporary file(s), then “sends” the temporary file(s) to dest according to the type of Writer. If dest is None, it uses the Writer’s default destination.
- kwargs:
zip: bool Create a ZipFile containing the Writable’s file(s) if the Writer supports it zip_name: str Name of the ZipFile, will be auto-generated if None
- class whylogs.api.writer.writer.WriterWrapper(writable: _Writable, writer: Writer)#
Elide the Writable argument
- Parameters
writable (_Writable) –
writer (Writer) –
- option(**kwargs: Any) WriterWrapper #
- Parameters
kwargs (Any) –
- Return type
- class whylogs.api.writer.writer.Writers#
- static get(name: str, writable: Optional[_Writable] = None, **kwargs) Union[Writer, WriterWrapper] #
- Parameters
name (str) –
writable (Optional[_Writable]) –
- Return type
Union[Writer, WriterWrapper]