# Path: mppsolar/outputs/baseoutput.py
# class baseoutput:
#     def __str__(self):
#         return "the base class for the output processors, not used directly"
# 
# Path: mppsolar/helpers.py
# def get_kwargs(kwargs, key, default=None):
#     if key not in kwargs or not kwargs[key]:
#         return default
#     return kwargs[key]


import logging
from .baseoutput import baseoutput
from ..helpers import get_kwargs


log = logging.getLogger("raw")


class raw(baseoutput):
    def __str__(self):
        return "outputs the raw results to standard out"

    def __init__(self, *args, **kwargs) -> None:
        log.debug(f"__init__: kwargs {kwargs}")

    def output(self, *args, **kwargs):
        log.info("Using output processor: raw")
        log.debug(f"kwargs {kwargs}")
        data = get_kwargs(kwargs, "data")
        if data is None:
            return
        _desc = "No description found"
        if "_command_description" in data:

# Path: mppsolar/outputs/baseoutput.py
# class baseoutput:
#     def __str__(self):
#         return "the base class for the output processors, not used directly"
# 
# Path: mppsolar/helpers.py
# def get_kwargs(kwargs, key, default=None):
#     if key not in kwargs or not kwargs[key]:
#         return default
#     return kwargs[key]


# Path: mppsolar/outputs/raw.py
import logging
from .baseoutput import baseoutput
from ..helpers import get_kwargs



log = logging.getLogger("raw")


class raw(baseoutput):
    def __str__(self):
        return "outputs the raw results to standard out"

    def __init__(self, *args, **kwargs) -> None:
        log.debug(f"__init__: kwargs {kwargs}")

    def output(self, *args, **kwargs):
        log.info("Using output processor: raw")
        log.debug(f"kwargs {kwargs}")
        data = get_kwargs(kwargs, "data")
        if data is None:
            return
        _desc = "No description found"
        if "_command_description" in data:

            _desc = data["_command_description"]