"""
Deprecated GAM module.

This module has been moved to a standalone package: pygeai-gam

.. deprecated:: 0.7.0
    The GAM module has been extracted to the standalone pygeai-gam package.
    Please install it separately:
    
        pip install pygeai-gam
    
    And update your imports:
    
        # Before
        from pygeai.gam.clients import GAMClient
        
        # After
        from pygeai_gam import GAMClient
    
    For automatic migration, use the migration script:
    
        migrate-pygeai-gam /path/to/your/project
    
    See the migration guide for more information:
    https://docs.globant.ai/pygeai-gam/migration
"""

import warnings


def __getattr__(name):
    """
    Intercept all attribute access to show deprecation warning.
    """
    warnings.warn(
        f"pygeai.gam.{name} is deprecated and will be removed in pygeai 1.0.0. "
        f"Please install the standalone package: pip install pygeai-gam "
        f"and update your imports to: from pygeai_gam import {name}",
        DeprecationWarning,
        stacklevel=2
    )
    
    raise ImportError(
        f"The pygeai.gam module has been moved to pygeai-gam. "
        f"Please install it with: pip install pygeai-gam\n"
        f"Then update your imports:\n"
        f"  from pygeai.gam import {name}  # Old\n"
        f"  from pygeai_gam import {name}  # New\n\n"
        f"For automatic migration, run: migrate-pygeai-gam /path/to/your/project"
    )


__all__ = []
