MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / check_python_version

Method check_python_version

Scripts/Network Tools/Sod.py:46–52  ·  view source on GitHub ↗

Check if Python version is sufficient

(self)

Source from the content-addressed store, hash-verified

44 }
45
46 def check_python_version(self):
47 """Check if Python version is sufficient"""
48 if sys.version_info < (3, 6):
49 print(f"{Colors.RED}[!] Python 3.6 or higher is required{Colors.RESET}")
50 return False
51 print(f"{Colors.GREEN}[+] Python {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro} detected{Colors.RESET}")
52 return True
53
54 def is_package_installed(self, package_name):
55 """Check if a package is installed"""

Callers 1

Calls 1

printFunction · 0.85

Tested by

no test coverage detected