First commit

This commit is contained in:
2023-10-26 20:58:33 +03:00
commit f067b12619
7 changed files with 279 additions and 0 deletions

19
main.py Normal file
View File

@@ -0,0 +1,19 @@
import json
import os
from endpoint import Endpoint
import journal
CONFIG_DIR = "nodes/"
def start():
configs = os.listdir(CONFIG_DIR)
for config in configs:
journal.log(f"Creating {CONFIG_DIR}{config}")
with open(CONFIG_DIR + config, "r") as f:
endpoint = Endpoint(json.load(f))
endpoint.start()
if __name__ == '__main__':
start()