betterSIS Siscompleter Code Documentation

BETTERSIS.SISCOMPLETER: Defines an object that helps for autocompletion of commands.

bettersis.siscompleter.get_act_map_params()[source]

Returns parameters for the act_map command.

Return dict params:

dictionary with command parameters

bettersis.siscompleter.get_commands()[source]

Returns commands.

Note

TODO: Probably should put a similar function inside the siswrapper library

Return dict commands:

dictionary with commands

bettersis.siscompleter.get_files()[source]

Returns a dictionary with the files in the current directory.

Return dict res:

dictionary with files (the keys are filename, value is None)

bettersis.siscompleter.get_folders()[source]

Returns a dictionary with the folders in the current directory.

Return dict res:

dictionary with directories (the keys are directory names, value is None)

bettersis.siscompleter.get_read_blif_params()[source]

Returns parameters for the read_blif command.

Return dict params:

dictionary with command parameters

bettersis.siscompleter.get_read_eqn_params()[source]

Returns parameters for the read_eqn command.

Return dict params:

dictionary with command parameters

bettersis.siscompleter.get_siscompleter()[source]

Returns the siscompleter object.

Return prompt_toolkit.completion.nested.NestedCompleter siscompleter:

contains SIS commands with their parameters

bettersis.siscompleter.get_source_params()[source]

Returns parameters for the source command.

Return dict params:

dictionary with command parameters