DEV Community

Junaid Rahman
Junaid Rahman

Posted on

ImportLess – Trim unused Python dependencies with a single command

πŸš€ ImportLess – Detect the Python dependencies you actually use

Ever looked at a requirements.txt and thought:

"Do I really use all of these packages?"

You're not alone. Most tools like pip freeze include everything installed in your environment, not just what your project imports. This leads to:

  • ❌ Bloated requirements
  • 🐒 Slower deployments
  • πŸ” Higher security risk surface

🧰 Meet ImportLess

ImportLess is a reverse dependency scanner that walks your codebase and builds a minimal list of actually used packages.

pip install importless

importless scan
importless export 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)