Skip to main content

Star import eliminator

Project description

Starless

Modern Python sanity checkers choke on star imports, e.g.

from sys import *

stdin.write("foo")

wouldn't it be nicer to have the code look like:

from sys import stdin

stdin.write("foo")

automatically? This is what this tool is all about.

# pip3 install starless

to get started, and run just starless *.py or something.

This is primarily personal amusement tool that I needed when I used it to convert some old PyQt code to PySide2. I hope someone else finds it useful too.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
starless-0.2-py3-none-any.whl (5.0 kB) Copy SHA256 hash SHA256 Wheel py3
starless-0.2.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None

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