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.

Source Distribution

starless-0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starless-0.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file starless-0.3.tar.gz.

File metadata

  • Download URL: starless-0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for starless-0.3.tar.gz
Algorithm Hash digest
SHA256 ab3ce9161904a54c33a99b91f04605bc1836031fd1e3850bced397cb03c0549e
MD5 dd42d9fae384cb6172bbb77686a4ec6f
BLAKE2b-256 5ea1ecfe7f34dd734fc9d633277a0437eb5f57a14436c264aa68b0af5b315e77

See more details on using hashes here.

File details

Details for the file starless-0.3-py3-none-any.whl.

File metadata

  • Download URL: starless-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for starless-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7da6de85af4c2f52d3db79127a4c8441ace95fbda6a709751e6c7c9d1463a0f8
MD5 08e001a53736f40afa9700286c85795d
BLAKE2b-256 52fdbe4631c388c33a1ed9b05a39048f66a9311d81ebae2895bc7cd1fae5c6d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page