pyfileconf.pmcontext package

Submodules

pyfileconf.pmcontext.actions module

class pyfileconf.pmcontext.actions.PyfileconfActions(value)[source]

Bases: enum.Enum

An enumeration.

LOAD_FILE_AST = 'load_file_ast'
LOAD_FILE_EXECUTE = 'load_file_execute'
LOAD_PIPELINE_FILE_AST = 'load_pipeline_file_ast'
RUN = 'run'

pyfileconf.pmcontext.main module

class pyfileconf.pmcontext.main.PyFileConfContext(config_dependencies=None, active_managers=None, force_update_dependencies=None, file_is_currently_being_loaded=False, stack=None)[source]

Bases: object

__init__(config_dependencies=None, active_managers=None, force_update_dependencies=None, file_is_currently_being_loaded=False, stack=None)[source]

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

active_managers: Dict[str, ‘PipelineManager’]
add_config_dependency(dependent, depends_on, force_update=False)[source]
add_config_dependency_for_currently_running_item_if_exists(depends_on, force_update=False)[source]
add_config_dependency_if_file_is_currently_being_loaded(dependent, depends_on, force_update=False)[source]
config_dependencies: Dict[str, Set[‘SectionPath’]]
property currently_running_section_path_str
Return type

Optional[str]

property file_is_currently_being_loaded
Return type

bool

force_update_dependencies: Dict[str, Set[‘SectionPath’]]
reset()[source]
stack: PyfileconfStack

pyfileconf.pmcontext.stack module

class pyfileconf.pmcontext.stack.PyfileconfFrame(section_path, action, file_path=None)[source]

Bases: object

__init__(section_path, action, file_path=None)[source]

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

classmethod from_file_path(file_path, action)[source]
class pyfileconf.pmcontext.stack.PyfileconfStack(frames)[source]

Bases: object

__init__(frames)[source]

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

add_frame(frame)[source]
add_running_item(section_path)[source]
property currently_loading_file_section_path
Return type

Optional[ForwardRef]

property currently_running_section_path_str
Return type

Optional[str]

property file_is_currently_being_loaded
Return type

bool

frames: List[PyfileconfFrame]
pop_frame()[source]
Return type

PyfileconfFrame

pyfileconf.pmcontext.tracing module

class pyfileconf.pmcontext.tracing.StackTracker(section_path_str=None, action=<PyfileconfActions.RUN: 'run'>, file_path=None, base_section_path_str=None)[source]

Bases: object

__init__(section_path_str=None, action=<PyfileconfActions.RUN: 'run'>, file_path=None, base_section_path_str=None)[source]

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