This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Importchecker

What is importchecker?

Importchecker is a commandline utility to find unused imports in Python modules.

Its output is “grep-like” (and thus “emacs-friendly”), reporting both the module’s filenames and line numbers where names are imported that are not acually used in the module.

Importchecker will not modify any of the source files. Whether the import needs to be removed is left to the judgement of the developer.

Installation

The importchecker commandline utility can be installed using the easy_install command:

$ sudo easy_install importchecker

The command can then be invoked with either a directory or a Python file:

$ importchecker /path/to/a/source/tree
$ importchecker /path/to/a/source/tree/module.py

Buildout

Projects that make use of zc.buildout for development might find the following buildout.cfg. snippet useful for using the importchecker on the developed codebase:

[buildout]
...
parts = importchecker ...
...

[importchecker]
recipe = zc.recipe.egg
eggs = importchecker
arguments = "${buildout:directory}/src"

Known issues

  • One source tree path argument at the time can be passed to the command line utility.
  • Command line argument parsing is rather naïve.

Changes

1.1 (2012-01-09)

  • Applied provided by wosc enabling running the import checker on individual python modules not just directories.
  • Report the absolute path for modules when needed, relative paths (relative to the current working directory, that is) when possible.

1.0 (2008-05-06)

  • Initial packaging
  • Make the importchecker work on python 2.5

Credits

  • Martijn Faassen (original developer)
  • Philipp von Weitershausen
  • Jan-Wijbrand Kolman (packaging)
  • various comitters on svn.zope.org.

Download

Release History

Release History

1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
importchecker-1.1.tar.gz (6.8 kB) Copy SHA256 Checksum SHA256 Source Jan 9, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting