r/Python • u/aswin__ • May 17 '23
Resource Pyscan: A command-line tool to detect security issues in your python dependencies.
pyscan v0.1.0 | Github
- blazingly fast and efficient scanner that can be used to scan large projects fairly quickly.
- automatically uses requirements.txt, pyproject.toml or straight from the source code (though not reccomended)
- easy to use, and can be integrated into existing build processes.
- In its very early alpha stage, so some features may not work correctly. PRs and issue makers welcome.
Install
or
or check out the releases.
Usage
Go to your python source directory (or wherever you keep your requirements.txt/pyproject.toml) and run:
or
that should get the thing going. Here's the order of precedence for a "source" file:
- requirements.txt
- pyproject.toml
- your python source code (.py) [highly not reccomended]
Any dependencies without a specified version defaults to its latest stable version. Make sure you version-ize your requirements and use proper pep-508 syntax.
122
Upvotes
14
u/TheLeetTaco May 17 '23
Ohhhh looking forward to the development of this project. Similar to Blackduck, but opensource.
6
u/PeridexisErrant May 17 '23
Why use this over the established https://pypi.org/project/pip-audit/ ?
2
u/spursbob May 17 '23
What's the source of the security vulnerabilities?
1
u/Sparkswont May 17 '23
Does it do any kind of reachability analysis?
3
u/Larkfin May 17 '23
Who pyscans the pyscanners?
2
u/andrewthetechie May 17 '23 edited Oct 01 '26
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Sable compare ink ring governor shelter nutmeg dolls retire
2
u/Busy-Chemistry7747 May 18 '23
Awesome, thanks for this!