tessl install tessl/pypi-safety@3.6.0Scan dependencies for known vulnerabilities and licenses.
Agent Success
Agent success rate when using this tile
61%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.39x
Baseline
Agent success rate without this tile
44%
A utility that scans Python environments for security vulnerabilities and generates summary reports.
@generates
def scan_environments(target_paths=None):
"""
Scans Python environments for vulnerabilities.
Args:
target_paths (list, optional): List of directory paths to scan.
If None, performs system-wide scan.
Returns:
dict: A report containing vulnerability information with keys:
- 'total_packages': int
- 'total_vulnerabilities': int
- 'vulnerabilities_by_severity': dict mapping severity to count
"""
pass
def format_report_json(report):
"""
Formats the vulnerability report as a JSON string.
Args:
report (dict): The vulnerability report from scan_environments
Returns:
str: JSON-formatted report string
"""
passProvides Python dependency vulnerability scanning functionality.
@satisfied-by