Spaces:
Sleeping
Sleeping
File size: 533 Bytes
01d5a5d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | """
Space Context Manager Factory
"""
from ..space_dto import SpaceDTO
from .context_manager import SpaceContextManager
class SpaceContextManagerFactory:
"""Space Context Manager Factory"""
def create_context_manager(self, space_dto: SpaceDTO) -> SpaceContextManager:
"""
Create context manager
Args:
space_dto: Space DTO object
Returns:
SpaceContextManager: Created context manager
"""
return SpaceContextManager(space_dto)
|