Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > prospector
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
config | Directory | - | - | |
formatters | Directory | - | - | |
profiles | Directory | - | - | |
tools | Directory | - | - | |
__init__.py | File | 0 bytes | April 17 2025 13:10:59. | |
__main__.py | File | 71 bytes | April 17 2025 13:10:59. | |
autodetect.py | File | 2955 bytes | April 17 2025 13:10:59. | |
blender.py | File | 4444 bytes | April 17 2025 13:10:59. | |
blender_combinations.yaml | File | 6551 bytes | April 17 2025 13:10:59. | |
compat.py | File | 360 bytes | April 17 2025 13:10:59. | |
encoding.py | File | 1542 bytes | April 17 2025 13:10:59. | |
exceptions.py | File | 1291 bytes | April 17 2025 13:10:59. | |
finder.py | File | 4723 bytes | April 17 2025 13:10:59. | |
message.py | File | 2732 bytes | April 17 2025 13:10:59. | |
pathutils.py | File | 1306 bytes | April 17 2025 13:10:59. | |
postfilter.py | File | 2235 bytes | April 17 2025 13:10:59. | |
run.py | File | 8102 bytes | April 17 2025 13:10:59. | |
suppression.py | File | 4467 bytes | April 17 2025 13:10:59. |
import os from pathlib import Path def is_python_package(path: Path) -> bool: return path.is_dir() and (path / "__init__.py").exists() def is_python_module(path: Path) -> bool: # TODO: is this too simple? return path.suffix == ".py" def is_virtualenv(path: Path) -> bool: if os.name == "nt": # Windows! clues = ("Scripts", "lib", "include") else: clues = ("bin", "lib", "include") try: # just get the name, iterdir returns absolute paths by default dircontents = [obj.name for obj in path.iterdir()] except (OSError, TypeError): # listdir failed, probably due to path length issues in windows return False if not all(clue in dircontents for clue in clues): # we don't have the 3 directories which would imply # this is a virtualenvironment return False if not all((path / clue).is_dir() for clue in clues): # some of them are not actually directories return False # if we do have all three directories, make sure that it's not # just a coincidence by doing some heuristics on the rest of # the directory if len(dircontents) > 7: # if there are more than 7 things it's probably not a virtualenvironment return False return True
SILENT KILLER Tool