AIstudioProxyAPI / gui /__init__.py
peijun1's picture
Deploy AI Studio Proxy API to Hugging Face Spaces
a5784e9
Raw
History Blame Contribute Delete
1.11 kB
"""
AI Studio Proxy API - GUI Launcher Module
This module provides a modern, user-friendly desktop GUI for managing
the AI Studio Proxy API service.
Features:
- Modern dark theme with custom styling
- Bilingual support (English/Chinese)
- System tray support (Linux/Windows/macOS)
- Account management (create, import, export)
- Port and proxy configuration
- Real-time log streaming
- Advanced settings with .env file management
Architecture:
- app.py - Main GUILauncher class
- config.py - Constants, paths, colors, defaults
- i18n.py - Translations and get_text()
- styles.py - ModernStyle theme class
- theme.py - Theme management (dark/light/system)
- tray.py - TrayIcon system tray integration
- utils.py - Tooltip, ScrollableListbox, StatusBar, helpers
- widgets.py - Custom widgets (CollapsibleFrame, SettingRow, EnvSettingsPanel)
- env_manager.py - Environment file (.env) management
Usage:
poetry run python -m gui
Or:
from gui import GUILauncher, main
main()
"""
from .app import GUILauncher, main
__all__ = ["GUILauncher", "main"]