Directory structure and filename refactoring. (0.20.5)

This commit is contained in:
Johannes Findeisen 2023-02-23 10:26:44 +01:00
commit 0c2c0917b2
53 changed files with 177 additions and 90 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.txt (MIT license).
See LICENSE (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.txt (MIT license).
See LICENSE (MIT license).
"""

View file

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

View file

@ -1,13 +1,13 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE.txt (MIT license).
See LICENSE (MIT license).
"""
import configparser
import glob
import os
from linspector.core.monitor import Monitor
from linspector.monitor import Monitor
# monitors may must / should be added (and maybe changed) at runtime to add new monitors without

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.txt (MIT license).
See LICENSE (MIT license).
"""

View file

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

View file

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

View file

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

View file

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

View file

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

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.txt (MIT license).
See LICENSE (MIT license).
"""

View file

@ -1,13 +1,12 @@
"""
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).
See LICENSE (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.
from fastapi import FastAPI
from linspector.core.plugin import Plugin
from linspector.plugin import Plugin
def create(configuration, environment, linspector, log):

View file

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

View file

@ -1,12 +1,12 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE.txt (MIT license).
See LICENSE (MIT license).
"""
# TODO: This plugin should become the internal Lish implemented as a plugin which does not use the
# API plugin but loads at the end when starting Linspector in interactive mode as a terminal like
# interface to the core of Linspector.
from linspector.core.plugin import Plugin
from linspector.plugin import Plugin
def create(configuration, environment, linspector, log):

View file

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

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.txt (MIT license).
See LICENSE (MIT license).
"""

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -3,7 +3,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)
"""
from linspector.core.service import Service
from linspector.service import Service
def create(configuration, environment, log):

View file

@ -3,7 +3,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)
"""
from linspector.core.service import Service
from linspector.service import Service
def get(configuration, environment, log):

View file

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

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.txt (MIT license).
See LICENSE (MIT license).
"""

View file

@ -1,12 +1,12 @@
"""
This file is part of Linspector (https://linspector.org/)
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE.txt (MIT license).
See LICENSE (MIT license).
"""
from queue import Queue
from threading import Thread
from linspector.core.singleton import Singleton
from linspector.singleton import Singleton
KEY_TYPE = "type"
KEY_ARGS = "args"

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,9 @@
"""
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).
See LICENSE (MIT license).
"""
from linspector.core.task import Task
from linspector.task import Task
def create(configuration, environment, log):

View file

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

View file

@ -1,9 +1,9 @@
"""
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).
See LICENSE (MIT license).
"""
from linspector.core.task import Task
from linspector.task import Task
def create(configuration, environment, log):