Skip to content

Static analysis of Python import statements

License

Notifications You must be signed in to change notification settings

dg-pb/findimports

 
 

Repository files navigation

FindImports

FindImports extracts Python module dependencies by parsing source files. It can report names that are imported but not used, and it can generate module import graphs in ASCII or graphviz formats.

A distinguishing feature of findimports used to be that it could parse doctest code inside docstrings.

Note that not all cases are handled correctly, especially if you use 'import foo.bar.baz'.

If you need to find unused imports in your codebase, I recommend Pyflakes instead -- it's better maintained and more reliable. For import graphs consider pydeps.

Misc

Home page: https://github.com/mgedmin/findimports

Licence: MIT (https://mit-license.org/)

buildstatus appveyor coverage

About

Static analysis of Python import statements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.8%
  • Makefile 10.2%