Find undeclared and unused 3rd-party dependencies in your Python project.
pip install fawltydepsFawltyDeps
FawltyDeps is a dependency checker for Python that finds undeclared and/or unused 3rd-party dependencies in your Python project. The name is inspired by the Monty Python-adjacent Fawlty Towers sitcom.
📝 Full documentation available at: tweag.github.io/FawltyDeps

We invite you to join our Discord channel! It's a great place to ask questions, share your ideas, and collaborate with other contributors.
Key Concepts
- undeclared dependency: a package that's used (in particular,
imported) by a project and which lacks a corresponding declaration to ensure that it's available. For example, youimport numpy, but you've forgotten to includenumpyin yourrequirements.txt. Pragmatically, this means the project is prone to runtime errors. - unused dependency: a package that's declared as necessary for a project but which is never used by project code.
For example, you have
numpylisted in yourrequirements.txt, but you never actually . Pragmatically, this means that project installation may consume more space than needed and will be more likely to break with future software releases; in short, these are costs paid for no benefit.