Coverage for src / documint_mcp / utils / __init__.py: 0%
8 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-30 22:30 -0400
« prev ^ index » next coverage.py v7.13.5, created at 2026-03-30 22:30 -0400
1"""
2Utility modules for documint-mcp.
4This package contains utility functions for caching, validation, and other
5common operations used throughout the application.
6"""
8from typing import TYPE_CHECKING, Any
10from .validators import (
11 ContentValidator,
12 DocumentMetadata,
13 FilePathValidator,
14 SearchQueryValidator,
15)
17if TYPE_CHECKING:
18 from .cache import CacheManager
21async def get_cache(*args: Any, **kwargs: Any) -> "CacheManager":
22 """Lazily load and return the cache instance."""
23 from .cache import get_cache as _get_cache
25 return await _get_cache(*args, **kwargs)
28__all__ = [
29 "get_cache",
30 "FilePathValidator",
31 "ContentValidator",
32 "SearchQueryValidator",
33 "DocumentMetadata",
34]