""" Module to store dynamically created functions from config.json. These functions are created at runtime and made available globally across all modules that need to use them. """ # This dictionary will store all dynamically created functions _function_registry = {} def register_function(name, func): """Register a dynamically created function.""" _function_registry[name] = func def get_function(name): """Get a dynamically created function by name.""" return _function_registry.get(name) def get_all_functions(): """Get all registered functions (for debugging).""" return _function_registry.copy() # This will be used as the namespace for eval() to add functions directly # Functions added here will be accessible via get_function() or directly as attributes __all__ = []