symconf.template module

Support for basic config templates

class symconf.template.FileTemplate(path, key_pattern='f{{(\\\\S+?)}}', exe_pattern='x{{(.*)}}')[source]

Bases: Template

__init__(path, key_pattern='f{{(\\\\S+?)}}', exe_pattern='x{{(.*)}}')[source]
class symconf.template.TOMLTemplate(toml_path, key_pattern='f{{(\\\\S+?)}}', exe_pattern='x{{(.*)}}')[source]

Bases: FileTemplate

__init__(toml_path, key_pattern='f{{(\\\\S+?)}}', exe_pattern='x{{(.*)}}')[source]
fill(template_dict)[source]
Return type:

str

static stack_toml(path_list)[source]
Return type:

dict

class symconf.template.Template(template_str, key_pattern='f{{(\\\\S+?)}}', exe_pattern='x{{(.*)}}')[source]

Bases: object

__init__(template_str, key_pattern='f{{(\\\\S+?)}}', exe_pattern='x{{(.*)}}')[source]
fill(template_dict)[source]
Return type:

str