Initial framework

This commit is contained in:
2025-07-24 03:33:42 +10:00
commit 9c0ae404c8
31 changed files with 3435 additions and 0 deletions

28
src/meta/args.py Normal file
View File

@@ -0,0 +1,28 @@
import argparse
from constants import CONFIG_FILE
# ------------------------------
# Parsed commandline arguments
# ------------------------------
parser = argparse.ArgumentParser()
parser.add_argument(
'--conf',
dest='config',
default=CONFIG_FILE,
help="Path to configuration file."
)
parser.add_argument(
'--host',
dest='host',
default='127.0.0.1',
help="IP address to run the websocket server on."
)
parser.add_argument(
'--port',
dest='port',
default='5001',
help="Port to run the websocket server on."
)
args = parser.parse_args()