pyfileconf.pipelines.models package

Submodules

pyfileconf.pipelines.models.collection module

pyfileconf.pipelines.models.config module

class pyfileconf.pipelines.models.config.FunctionConfig(d=None, name=None, annotations=None, imports=None, _file=None, begin_assignments=None, klass=None, always_import_strs=None, always_assign_strs=None, **kwargs)[source]

Bases: pyfileconf.basemodels.config.ConfigBase

config_file_class

alias of pyfileconf.pipelines.models.file.FunctionConfigFile

for_function(func)[source]

Strips out items of config which are not applicable to function. Returns dictionary of config items for passing to the function.

Args:

func: func for which to filter out config items

Returns: dict, applicable config for func

Return type

dict

classmethod from_file(filepath, name=None, klass=None, always_import_strs=None, always_assign_strs=None)[source]

pyfileconf.pipelines.models.dictconfig module

class pyfileconf.pipelines.models.dictconfig.PipelineDictConfig(d=None, name=None, annotations=None, imports=None, _file=None, begin_assignments=None, klass=None, always_import_strs=None, always_assign_strs=None, **kwargs)[source]

Bases: pyfileconf.basemodels.config.ConfigBase

as_imports_and_assignments()[source]
Return type

Tuple[ImportStatementContainer, AssignmentStatementContainer]

config_file_class

alias of pyfileconf.pipelines.models.dictfile.PipelineDictFile

pyfileconf.pipelines.models.dictfile module

class pyfileconf.pipelines.models.dictfile.PipelineDictFile(filepath, name=None, klass=None, always_import_strs=None, always_assign_strs=None)[source]

Bases: pyfileconf.basemodels.file.ConfigFileBase

always_imports: List[pyfileconf.assignments.models.statement.AssignmentStatement] = []
load()[source]
Return type

dict

pyfileconf.pipelines.models.file module

class pyfileconf.pipelines.models.file.FunctionConfigFile(filepath, name=None, klass=None, always_import_strs=None, always_assign_strs=None)[source]

Bases: pyfileconf.basemodels.file.ConfigFileBase

Represents config file on filesystem. Handles low-level functions for writing and reading config file

always_assign_with_names_dict: Dict[str, List[pyfileconf.assignments.models.statement.AssignmentStatement]] = {'DataPipeline': [mixins.repr.ReprMixin]}
always_assigns: List[pyfileconf.assignments.models.statement.AssignmentStatement] = [mixins.repr.ReprMixin]
always_imports: List[Union[pyfileconf.imports.models.statements.module.ModuleImportStatement, pyfileconf.imports.models.statements.obj.ObjectImportStatement]] = [mixins.attrequals.EqOnAttrsMixin]
save(config)[source]

pyfileconf.pipelines.models.interfaces module

pyfileconf.pipelines.models.registrar module