Skip to main content

A tool to automatically replace 'import *' imports with explicit imports in files

Project description


Build Status

Tool to automatically replace import * imports with explicit imports

Requires pyflakes. Somewhat inspired by autoflake.


  • Only works with relative imports at the moment
  • Does not work correctly with recursive star imports
  • Assumes only names in the current file are used by star imports


$ removestar # Shows diff but does not edit

$ removestar -i # Edits in-place

$ removestar module/ # Modifies every Python file in module recursively

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for removestar, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size removestar-1.0.1.tar.gz (20.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page