The `snyk-python-plugin` is an npm package that serves as a vital extension for the Snyk Command Line Interface (CLI), enabling it to detect and report known vulnerabilities within Python projects. Currently stable at version 3.2.1, this plugin integrates seamlessly with common Python dependency management tools such as `pip` (via `requirements.txt`), `pipenv` (with `Pipfile`), and `poetry` (using `pyproject.toml` and `poetry.lock`). It focuses on providing comprehensive dependency metadata to the Snyk CLI, which then performs vulnerability analysis. The package maintains a frequent release cadence, typically issuing bug fixes and minor feature enhancements multiple times a month, as evidenced by its recent update history. Its key differentiator is the specialized support for various Python ecosystem nuances, offering deep scanning capabilities that complement the Snyk CLI's broader security analysis.
npm install snyk-python-pluginVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the Snyk CLI with the Python plugin to scan a Python project's `requirements.txt` for vulnerabilities and parse the JSON output.
Upgrade your Node.js environment to version 20 or later before using `snyk-python-plugin` v3.0.0 and above. Use `nvm install 20` and `nvm use 20` or similar version management tools.
Ensure you have the Snyk CLI installed globally (`npm install -g snyk`) and authenticated (`snyk auth`). Then, use `snyk test` or `snyk monitor` commands to leverage the plugin.
Verify that Python, pip, pipenv, or poetry (depending on your project type) are correctly installed and accessible in your system's PATH. Use `python --version`, `pip --version`, etc., to confirm.
Always use the latest stable version of the `snyk-python-plugin` to benefit from bug fixes. If encountering Python 2.7 specific issues, ensure your Python installation is consistent and try isolating the environment.
Upgrade your Node.js environment to version 20 or later. For example, using nvm: `nvm install 20 && nvm use 20`.
Install the Snyk CLI globally via npm: `npm install -g snyk`. Ensure your system's PATH includes the directory where npm installs global executables.
Ensure you are running the `snyk test` command from the root of your Python project, or explicitly specify the target file using the `--file=<path/to/manifest>` option.
Install Python and ensure its executable (`python` or `python3`) is added to your system's PATH environment variable. Verify with `python --version`.
No dependency data recorded yet.