Full sync - all projects, memory, configs
This commit is contained in:
18
projects/crypto-signals/dashboard/server.py
Normal file
18
projects/crypto-signals/dashboard/server.py
Normal file
@ -0,0 +1,18 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user