refactoring

This commit is contained in:
2026-02-09 18:47:19 +01:00
Unverified
parent c191718814
commit 1e4320c2a1
15 changed files with 223 additions and 195 deletions

5
src/__main__.py Normal file
View File

@@ -0,0 +1,5 @@
from app import App
if __name__ == "__main__":
app = App()
app.main()

View File

@@ -1,7 +1,7 @@
from argparse import *
from src.prometheus_metrics_server import *
from src.metrics_source import *
from src.metric import *
from prometheus_metrics_server import *
from metrics_source import *
from metric import *
class App:
args: Namespace

View File

@@ -1,5 +1,5 @@
from abc import ABC, abstractmethod
from src.metric import Metric, CommandMetric, CustomMetric
from metric import Metric, CommandMetric, CustomMetric
import os

View File

@@ -1,6 +1,6 @@
import time
import prometheus_client
from src.metrics_source import MetricsSource
from metrics_source import MetricsSource