#!/usr/bin/env python3 """Simple HTTP server for the CoinEx Futures Scanner dashboard.""" import http.server import os import socketserver PORT = 8891 DIR = os.path.dirname(os.path.abspath(__file__)) class Handler(http.server.SimpleHTTPRequestHandler): def __init__(self, *args, **kwargs): super().__init__(*args, directory=DIR, **kwargs) def log_message(self, format, *args): pass # Quiet with socketserver.TCPServer(("", PORT), Handler) as httpd: print(f"CoinEx Scanner dashboard at http://localhost:{PORT}") httpd.serve_forever()