This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Project Description

Imagine…

  • 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: ...

BUT:

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

THAN: this might be your solution!

install

via pip

pip install importStar

ubuntu or simular

sudo python setup.py install

windows

python setup.py install

usage

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

  • to see help: run importstar without further arguments or with -h or –help
  • OR call function importStar.importstar.run(args) directly

result

importstar add all modules and packages recursively within a given directory

in all __init__.py files that have the following comments:

#<<<importStar
[i will be substitued]
#>>>importStar

the result might look like:

#<<<importStar
import mod1
import mod2
import pkg1
#>>>importStar
Release History

Release History

0.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

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
importStar-0.1.1-py2-none-any.whl (6.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jan 14, 2015
importStar-0.1.1.zip (6.3 kB) Copy SHA256 Checksum SHA256 Source Jan 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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