Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Black Mamba PythonNew to Visual Studio Code? Get it now.
Black Mamba Python

Black Mamba Python

ms.blackmamba.phython

|
7 installs
| (0) | Free
Scan Python dependencies for security vulnerabilities with AI-powered breaking change analysis
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Black Mamba VS Code Extension

Scan Python requirements.txt files for CVE vulnerabilities with AI-powered breaking change analysis.

Features

  • Inline vulnerability decorations - see CVE counts per package with hover details and osv.dev links
  • File explorer badge - files with vulnerabilities are marked with a warning icon
  • One-click upgrades - upgrade individual or all vulnerable packages via PyPI
  • Full workflow - upgrade packages, run tests in isolated venv, AI-powered breaking change analysis, auto-apply fixes, re-run tests
  • HTML security report - auto-generated report with CVE findings, breaking changes, and test results
  • Multi-model AI - works with GitHub Copilot, Anthropic Claude, and OpenAI via VS Code Language Model API
  • Cross-file consistency check - detect conflicting package versions across multiple requirements files

How it works

When you open a requirements file, the extension:

  1. Parses all packages and their pinned versions
  2. Queries OSV.dev for known CVE vulnerabilities (batched, cached)
  3. Shows inline decorations with CVE details
  4. Offers code actions to upgrade vulnerable packages

Commands

  • Black Mamba: Scan Requirements for Vulnerabilities - scan all requirements files in the workspace
  • Black Mamba: Clear Vulnerability Cache - reset cached CVE data
  • Black Mamba: Select AI Model - choose preferred AI model for analysis
  • Black Mamba: Check Version Consistency Across Requirements Files - detect conflicting versions

Configuration

Setting Default Description
blackMamba.enableAutoScan true Auto-scan requirements files on open/change
blackMamba.scanDebounceMs 1000 Debounce delay before scanning (100-30000ms)
blackMamba.cacheExpirationMinutes 60 CVE cache TTL (1-1440 minutes)
blackMamba.aiModel auto Preferred AI model (auto/copilot/anthropic/openai)
blackMamba.enableAIAnalysis true Enable AI breaking change analysis

Requirements

  • Python 3.x (uses the interpreter selected in the VS Code Python extension)
  • VS Code 1.99.0 or later
  • Python extension (ms-python.python) - declared as a dependency

Dev quickstart

cd black-mamba-vscode
npm ci
npm run compile
npm test
npm run bundle

Press F5 to launch an Extension Development Host.

Packaging (VSIX)

npx vsce package
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft