- secubox_frontend.py: Full-featured Textual TUI application - Multi-device dashboard with real-time status monitoring - Device discovery (network scan, mDNS, mesh API) - SSH-based remote command execution and backup orchestration - Tabbed interface: Dashboard, Alerts, Mesh, Settings - Graceful degradation: Textual → Rich → Simple CLI - Support files: - install.sh: One-line installer with dependency handling - requirements.txt: Python dependencies (textual, paramiko, httpx, rich) - secubox-frontend: Launcher script with path detection - Updated README.md: Documents both CLI console and TUI frontend Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
644 B
Python
26 lines
644 B
Python
#!/usr/bin/env python3
|
|
# SecuBox Frontend Launcher
|
|
# Install: pip install textual paramiko httpx rich
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add lib path
|
|
lib_path = Path(__file__).parent / "lib" / "secubox-console"
|
|
if lib_path.exists():
|
|
sys.path.insert(0, str(lib_path))
|
|
|
|
# Try local path
|
|
local_path = Path(__file__).parent / "secubox_frontend.py"
|
|
if local_path.exists():
|
|
sys.path.insert(0, str(local_path.parent))
|
|
|
|
try:
|
|
from secubox_frontend import main
|
|
main()
|
|
except ImportError as e:
|
|
print(f"Import error: {e}")
|
|
print("\nInstall dependencies:")
|
|
print(" pip install textual paramiko httpx rich")
|
|
sys.exit(1)
|