Writer
Sub classes
| Name |
Children |
Inherits |
_FrameWriter datacook.engine.formats
|
|
|
WriteScript datacook.engine.formats The generated Python script for the node (or the whole tree). |
|
|
WriteProject datacook.engine.formats The whole session as a project file. |
|
|
🛈 DocStrings
Source code in src/datacook/engine/formats.py
| class Writer:
id: ClassVar[str]
title: ClassVar[LazyText]
extensions: ClassVar[tuple[str, ...]]
Params: ClassVar[type[BaseParams]]
requires: ClassVar[tuple[str, ...]] = ()
extra: ClassVar[str | None] = None
@classmethod
def write(cls, session: Session, node_id: str, path: str | pathlib.Path, params: Any) -> None:
raise NotImplementedError
@classmethod
def available(cls) -> bool:
return all(importlib.util.find_spec(mod) is not None for mod in cls.requires)
|
:fa-brands-github: Show source on GitHub