Refactor various things to be more seperate
This commit is contained in:
@@ -6,7 +6,8 @@ import logging
|
||||
import re
|
||||
|
||||
from iottb import definitions
|
||||
from iottb.contexts import DeviceMetadata, IottbConfig
|
||||
from iottb.models.device_metadata import DeviceMetadata
|
||||
from iottb.models.iottb_config import IottbConfig
|
||||
from iottb.definitions import CFG_FILE_PATH
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -3,7 +3,7 @@ from pathlib import Path
|
||||
import logging
|
||||
from logging.handlers import RotatingFileHandler
|
||||
import sys
|
||||
from iottb.contexts import IottbConfig
|
||||
from iottb.models.iottb_config import IottbConfig
|
||||
from iottb.definitions import DB_NAME
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
8
iottb/commands/sniff.py
Normal file
8
iottb/commands/sniff.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import click
|
||||
import logging
|
||||
from iottb import definitions
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user