Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A fast Python dependency analyzer that automatically discovers and extracts third-party imports
A Python dependency analyzer inspired by Black's implementation that automatically discovers and extracts third-party imports from your Python projects. It scans your codebase to identify external dependencies while filtering out project-internal imports.
PIL
→ pillow
, cv2
→ opencv-python
)requirements.txt
file⚠️ Note: The tool may occasionally fail to identify some dependencies due to complex import patterns or dynamic imports.
pip install depfinder
You can use depfinder either as a module or directly as a command (like Black):
# As a command (recommended)
definder src/
definder . # Current directory
definder src/ tests/ # Multiple paths
# As a module
python -m definder src/
python -m definder .
Options:
definder src/ --no-save # Don't generate requirements file
definder src/ --workers 4 # Specify number of parallel workers
The tool will:
requirements.txt
file (or requirements-definder.txt
if the former exists)Found a bug or want to improve the package name mapping? Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A fast Python dependency analyzer that automatically discovers and extracts third-party imports
We found that definder 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.