Static analysis of Python import statements
Python Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.coveragerc
.gitignore
.travis.yml Drop Python 2.6, add Python 3.6 support Jan 2, 2017
CHANGES.rst
LICENSE Rename LICENCE to LICENSE Sep 22, 2016
MANIFEST.in
Makefile
README.rst
appveyor.yml
findimports.py
setup.cfg
setup.py
tests.py
testsuite.py
tox.ini

README.rst

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 snakefood.

Misc

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

Old project page: https://launchpad.net/findimports

Licence: GPL v2 or later (http://www.gnu.org/copyleft/gpl.html)

buildstatus appveyor coverage