Files
remnawave-bedolaga-telegram…/app/services/menu_layout/__init__.py
c0mrade 9a2aea038a chore: add uv package manager and ruff linter configuration
- Add pyproject.toml with uv and ruff configuration
- Pin Python version to 3.13 via .python-version
- Add Makefile commands: lint, format, fix
- Apply ruff formatting to entire codebase
- Remove unused imports (base64 in yookassa/simple_subscription)
- Update .gitignore for new config files
2026-01-24 17:45:27 +03:00

38 lines
1.0 KiB
Python

"""
Модуль конструктора меню.
Структура модуля:
- constants.py - константы и дефолтная конфигурация
- context.py - MenuContext для построения меню
- history_service.py - сервис истории изменений
- stats_service.py - сервис статистики кликов
- service.py - основной MenuLayoutService
"""
from .constants import (
AVAILABLE_CALLBACKS,
BUILTIN_BUTTONS_INFO,
DEFAULT_MENU_CONFIG,
DYNAMIC_PLACEHOLDERS,
MENU_LAYOUT_CONFIG_KEY,
)
from .context import MenuContext
from .history_service import MenuLayoutHistoryService
from .service import MenuLayoutService
from .stats_service import MenuLayoutStatsService
__all__ = [
'AVAILABLE_CALLBACKS',
'BUILTIN_BUTTONS_INFO',
'DEFAULT_MENU_CONFIG',
'DYNAMIC_PLACEHOLDERS',
# Константы
'MENU_LAYOUT_CONFIG_KEY',
# Классы
'MenuContext',
'MenuLayoutHistoryService',
'MenuLayoutService',
'MenuLayoutStatsService',
]