Tons of fixes, improvements and ideas...

This commit is contained in:
Johannes Findeisen 2023-02-03 04:17:40 +01:00
commit d7192913e0
44 changed files with 71 additions and 78 deletions

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import configparser
import glob

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import datetime
import importlib

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import atexit
import os

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import logging
import os

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import configparser
import hashlib

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import configparser
import copy

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
#see http://stackoverflow.com/questions/42558/python-and-the-singleton-pattern

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from queue import Queue
from threading import Event, Thread

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.notification import Notification

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.notification import Notification

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import gammu

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.notification import Notification

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import xmpp

View file

@ -0,0 +1,8 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE.txt (MIT license).
"""
# TODO: Make this a backend API using the modern FastAPI framework as a replacement for the
# traditional RPC plugin. Maybe it makes sense to maintain the RPC plugin too for simple usage by
# the Lish but I believe it makes sense to only create one backend for all clients.

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import cherrypy
import json

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.plugin import Plugin

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.service import Service

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.service import Service

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.service import Service

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT)
See LICENSE.txt (MIT license).
"""
from fritzconnection.lib.fritzstatus import FritzStatus

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT)
See LICENSE.txt (MIT license).
"""
from fritzconnection.lib.fritzstatus import FritzStatus

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.service import Service

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import socket

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import calendar
import requests

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
import os
import paramiko

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.service import Service

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from pysnmp.entity.rfc3413.oneliner import cmdgen

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task

View file

@ -1,7 +1,7 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE (MIT license)
See LICENSE.txt (MIT license).
"""
from linspector.core.task import Task