from typing import Dict, Any

class ServiceRegistry:
    _services: Dict[str, Any] = {}

    @classmethod
    def register(cls, name: str, service: Any) -> None:
        cls._services[name] = service

    @classmethod
    def get(cls, name: str) -> Any:
        if name not in cls._services:
            raise ValueError(f"Service {name} not found in registry")
        return cls._services[name]

    @classmethod
    def clear(cls) -> None:
        cls._services.clear() 