OpenPisco.CLApp.InputReaderBase module#

OpenPisco.CLApp.InputReaderBase.CheckIntegrity(GUI=False)[source]#
class OpenPisco.CLApp.InputReaderBase.InputReaderBase[source]#

Bases: ABC

ReadFromFile(filename: Union[str, PathLike]) any[source]#

Read input data from a file

Parameters

filename (Union[str, os.PathLike]) – file path

Returns

parsed input data

Return type

any

abstract ReadFromString(data: str)[source]#

Define DSL parsing strategy, to be redefined in the derived class

Parameters

data (str) – data to parse using appropriate strategy

ReplaceObjectFromAlmanac(dic: Dict, almanac: any)[source]#

Replace specific word by their equivalent in the DSL terminology

Parameters
  • dic (Dict) – parsed data

  • almanac (any) – structure to operate the replacement on