Filer#

class dpeeg.tools.Filer(path: str | Path, mode: str = 'a', exist_ok: bool = False, verbose: str | None = None)[source]#

A simple file handler to write in realtime.

Parameters:
  • path (str | Path) – File path. Support hierarchical folder structure.

  • mode (str) – Mode of write.

  • exist_ok (bool) – Whether to allow files that already exist.

write(data: str) None[source]#