
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
dependency-detective
Advanced tools
DependencyDetective is a powerful tool for analyzing Python project dependencies. It scans your project to identify installed packages, compare them with requirements.txt (if it exists), and analyze usage across files. This tool helps maintain clean and efficient Python projects by providing insights into package usage and potential issues.
pip install dependency-detective
dependency-detective /path/to/your/project [options]
Optional arguments:
--requirements
, -r
: Specify a custom path to the requirements.txt file (default: requirements.txt)--output
, -o
: Specify an output file for the analysis report--new-requirements
, -n
: Generate a new requirements.txt with only necessary packages--exclude
, -e
: Specify directories to exclude from analysis (default: venv .venv env .env)--verbose
, -v
: Enable verbose loggingdependency-detective /path/to/your/project -r custom_requirements.txt -o analysis_report.txt -n new_requirements.txt -e venv example_dir
This command will:
/path/to/your/project
custom_requirements.txt
as the requirements fileanalysis_report.txt
new_requirements.txt
with only necessary packagesvenv
and example_dir
directories from the analysisDependencyDetective generates a report that includes:
The new requirements file (if requested) will contain only the packages directly used in your project, helping to minimize unnecessary dependencies.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A tool to analyze Python project dependencies
We found that dependency-detective demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.