OpenPisco.Unstructured.AppExecutableTools module#

class OpenPisco.Unstructured.AppExecutableTools.AppExecutableBase(app_name)[source]#

Bases: object

Base class for a file-exchange-based interface to external tools.

Parameters

app_name (str) – Human-readable name of the tool.

DeleteFiles(filesToDelete)[source]#
GetAppName()[source]#
GetBinaryFlag()[source]#
GetWorkingDirectory()[source]#

Get the absolute path to the directory where temporary files will be located.

If the location is not yet set, a temporary directory is created beforehand.

SetBinaryFlag(value)[source]#
Parameters

value (bool) – It True, binary files are used. Otherwise, ASCII files are used.

SetFilename(filename)[source]#
SetWorkingDirectory(wd)[source]#
OpenPisco.Unstructured.AppExecutableTools.CheckIntegrity(GUI=False)[source]#
class OpenPisco.Unstructured.AppExecutableTools.CommandLineBuilder(executable_name)[source]#

Bases: object

Simple helper class to build command lines.

Parameters

executable_name (str) – The name of the executable file, prepended to the command line.

argumentAdd(arg)[source]#

Append an argument to the command line

Parameters

arg (str) –

optionAdd(keyword, prefix='-', arg=None)[source]#

Append an option to the command line

Parameters
  • keyword (str) – Textual keyword identifying the option.

  • prefix (str, optional) – The symbol(s) intoducing the option (default is a single hyphen).

  • arg (str, optional) – Argument appended to the option.

result()[source]#
Returns

The command line

Return type

str