Skip to content

Mixins

YAPFM mixins provide modular functionality to extend file manager capabilities. Each mixin can be used independently or in combination with other mixins.

Available Mixins

Core Mixins

Performance Mixins

Analysis and Search Mixins

Transformation Mixins

Advanced Management Mixins

Usage

Mixins are automatically included in YAPFileManager and can be used directly:

from yapfm import YAPFileManager

# All mixins are available
fm = YAPFileManager("config.json")

# Using mixin functionality
fm.set_key("value", dot_key="database.host")  # KeyOperationsMixin
fm.set_value("key", "value")  # CacheMixin
fm.get_stats()  # AnalysisMixin
fm.search_in_values("localhost")  # SearchMixin

Architecture

Mixins follow the composition pattern and are designed to be: - Modular: Each mixin has a specific responsibility - Composable: Can be combined as needed - Thread-safe: Safe for concurrent usage - Performant: Optimized for frequent operations