Automatic Python imports with autoimp
I got sick of writing "
(Module Website)
import X" in Python. So, I created the public domain module autoimp, which imports all modules automatically:>>> from autoimp import *Thus one no longer needs to write "
>>> os.stat('.')
>>> Image.open('test.bmp')
>>> pylab.plot([1,2],[3,4])
>>> scipy.linalg.eig([[1,2],[3,4]])
>>> ...
import X". It would take too long to load every module when one writes "from autoimp import *", so the imported modules are actually proxy objects which lazily load when they are first used.(Module Website)

2 Comments:
Cool, that looks useful
See also Philip Eby's package Importing, described on Kevin Dangoor's blog post [1].
Post a Comment
<< Home