pyinfra/pyinfra/default_objects.py

9 lines
186 B
Python

from functools import lru_cache
from pyinfra.component_factory import ComponentFactory
@lru_cache(maxsize=None)
def get_component_factory(config):
return ComponentFactory(config)