/ tools / __init__.py
__init__.py
 1  #!/usr/bin/env python3
 2  """Tools package namespace.
 3  
 4  Keep package import side effects minimal. Importing ``tools`` should not
 5  eagerly import the full tool stack, because several subsystems load tools while
 6  ``hermes_cli.config`` is still initializing.
 7  
 8  Callers should import concrete submodules directly, for example:
 9  
10      import tools.web_tools
11      from tools import browser_tool
12  
13  Python will resolve those submodules via the package path without needing them
14  to be re-exported here.
15  """
16  
17  
18  def check_file_requirements():
19      """File tools only require terminal backend availability."""
20      from .terminal_tool import check_terminal_requirements
21  
22      return check_terminal_requirements()
23  
24  
25  __all__ = ["check_file_requirements"]