tapis_cli.project_ini package

Supports the .ini format used to configure app and actor projects

Submodules

tapis_cli.project_ini.config_file module

tapis_cli.project_ini.config_file.load_config(filename=None, as_dict=False)
tapis_cli.project_ini.config_file.save_config(config, filename='project.ini')
tapis_cli.project_ini.config_file.config_path(filename=None, working_directory=None)

tapis_cli.project_ini.templating module

tapis_cli.project_ini.templating.key_values(filename=None, as_dict=True)

Load project config file into a dict for template remdering

Keyword Arguments:
 filename (str, optional) – Path to a project config file. Defaults to $PWD/project.ini
Returns:Variables and names to support Jinja template rendering
Return type:dict
tapis_cli.project_ini.templating.generate_template_ini(passed_vals=None)
tapis_cli.project_ini.templating.update_config(config={}, values_dict=None, add_keys=False)

Recursively merge a dict onto a ConfigParser

This is used to initialize the parser with passed values, like one might do when setting up a project for the first time.