31 lines
687 B
Python
31 lines
687 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
"""
|
||
|
|
StreamLens Development Script with Debugging
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
# Add analyzer to path
|
||
|
|
sys.path.insert(0, str(Path(__file__).parent))
|
||
|
|
|
||
|
|
from analyzer.tui.textual.app_v2 import StreamLensAppV2
|
||
|
|
from analyzer.analysis.core import EthernetAnalyzer
|
||
|
|
|
||
|
|
def main():
|
||
|
|
"""Run StreamLens with debugging enabled"""
|
||
|
|
print("🚀 Starting StreamLens in debug mode...")
|
||
|
|
|
||
|
|
# Create analyzer
|
||
|
|
analyzer = EthernetAnalyzer()
|
||
|
|
app = StreamLensAppV2(analyzer=analyzer)
|
||
|
|
|
||
|
|
# Start debugging automatically
|
||
|
|
app.start_debugging(web_interface=True, port=8080)
|
||
|
|
|
||
|
|
# Run the app
|
||
|
|
app.run()
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|