Files
litterbox/app/analyzers/base.py
T
BlackSnufkin 3c07874abc LitterBox v1.0
2024-12-27 05:02:19 -08:00

23 lines
518 B
Python

# app/analyzers/base.py
from abc import ABC, abstractmethod
class BaseAnalyzer(ABC):
def __init__(self, config):
self.config = config
self.results = {}
@abstractmethod
def analyze(self, target):
"""
Perform the analysis
:param target: Could be a file path or PID depending on analysis type
"""
pass
@abstractmethod
def cleanup(self):
"""Cleanup after analysis"""
pass
def get_results(self):
return self.results