Skip to main content

importStar - auto modify all in a package to import all modules

Project description


  • you need all modules in a package imported
  • … maybe because you want to access them via inspect.getmembers
  • … or want to do sth. like for module in package: ...


  • you are to lazy to update all your
  • you dont want/can’t to use automodinit <>
  • AND/OR you cannot use dynamic imports (maybe because you want to create an application with pyinstaller)

THAN: this might be your solution!


via pip

pip install importStar

ubuntu or simular

sudo python install


python install


either: * use as a script: importstar [directorypath]

  • to see help: run importstar without further arguments or with -h or –help
  • OR call function directly


importstar add all modules and packages recursively within a given directory

in all files that have the following comments:

[i will be substitued]

the result might look like:

import mod1
import mod2
import pkg1

Project details

Release history Release notifications

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
importStar-0.1.1-py2-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 (6.3 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