exatomic.core.editor module

Atomic Editor

This module provides a text file editor that can be used to transform commonly found file formats directly into Universe objects.

class exatomic.core.editor.Editor(path_stream_or_string, as_interned=False, nprint=30, name=None, description=None, meta=None, encoding=None, ignore=False)[source]

Bases: Editor

Base atomic editor class for converting between file formats and to (or from) Universe objects.

Note

Functions defined in the editor that generate typed attributes (see below) should be names “parse_{data object name}”.

See also

For a list of typed attributes, see Universe.

parse_frame()[source]

Create a minimal Frame from the (parsed) Atom object.

to_universe(**kws)[source]

Convert the editor to a Universe object.

Parameters:
  • name (str) – Name

  • description (str) – Description of parsed file

  • meta (dict) – Optional dictionary of metadata

  • verbose (bool) – Verbose information on failed parse methods

  • ignore (bool) – Ignore failed parse methods