pyfileconf.data.models package

Submodules

pyfileconf.data.models.astitems module

pyfileconf.data.models.astitems.ast_dict_constructor_with_kwargs_from_dict(d)[source]
Return type

Call

pyfileconf.data.models.astitems.ast_str(string)[source]
Return type

Str

pyfileconf.data.models.collection module

pyfileconf.data.models.config module

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

Bases: pyfileconf.basemodels.config.ConfigBase

__init__(d=None, name=None, annotations=None, imports=None, _file=None, begin_assignments=None, always_import_strs=None, always_assign_strs=None, klass=None, file_path=None, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod from_obj(obj, klass, name=None, imports=None, always_import_strs=None, always_assign_strs=None, file_path=None, key_attr='name')[source]

pyfileconf.data.models.dictconfig module

class pyfileconf.data.models.dictconfig.SpecificClassDictConfig(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.data.models.dictfile.SpecificClassDictFile

pyfileconf.data.models.dictfile module

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

Bases: pyfileconf.basemodels.file.ConfigFileBase

load()[source]
Return type

dict

pyfileconf.data.models.file module

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

Bases: pyfileconf.basemodels.file.ConfigFileBase

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

Initialize self. See help(type(self)) for accurate signature.

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]
load(config_class=None)[source]
Return type

SpecificClassConfig

pyfileconf.data.models.registrar module