fastdev.io.handlers.base_handler

Module Contents

class fastdev.io.handlers.base_handler.BaseFileHandler[source]
str_or_bytes: Literal['str', 'bytes'] = 'bytes'[source]
abstractmethod load_from_fileobj(file: IO, **kwargs) Any[source]
Parameters:

file (IO)

Return type:

Any

abstractmethod dump_to_fileobj(obj: Any, file: IO, **kwargs)[source]
Parameters:
  • obj (Any)

  • file (IO)

abstractmethod load_from_str(s: str, **kwargs) Any[source]
Parameters:

s (str)

Return type:

Any

abstractmethod dump_to_str(obj: Any, **kwargs) str[source]
Parameters:

obj (Any)

Return type:

str