class PythonProtector:
def __init__(
self,
debug: Optional[bool],
modules: Set[str],
logs_path: Optional[Union[Path, str]],
webhook_url: Optional[str],
on_detect: Optional[Set[str]],
) -> None:debug(bool) - Whether Or Not PythonProtector Should Log Actions.modules(Set[str]) - List Of Modules You Would Like To Enable.logs_path(Union[Path, str]) - Path For PythonProtector Logs.webhook_url(str) - Webhook URL For Reporting Remotely.on_detect(Set[str], optional) - List of Things PyProtector Does When Detections Are Caused
ModulesNotValid- Raises If Modules Are Not ValidDetectionsNotValid- Raises If on_detect parameters are invalidLogsPathEmpty- Raises If Debug Is Enabled But No Logs Path Are Provided
Main Function Of PythonProtector, Initializes Everything.
DeprecationWarning- If Python Version < 3.11
Returns The Current PythonProtector Version
Returns a Tuple of User Information
Returns The Current Users IP
Returns The Current Users WMI Computer Object
Modules: Final[Set[str]] = {
"Miscellaneous",
"AntiProcess",
"AntiDLL",
"AntiVM",
"AntiAnalysis",
}Detections: Final[Set[str]] = {"Screenshot", "Exit", "Report"}