Automatic Python imports with autoimp, lazy ones with Importing

Jun 12, 2006 15:48 · 105 words · 1 minute read

Connelly Blog: Automatic Python imports with autoimp tries to make all modules/packages available without loading everything up. Interesting idea. Something that may also be interesting is using its recursive lazy loader in TG to not import the features you’re not using. The license is unknown, however. (Update: it’s public domain).

Update: odd to get two import-related packages in the same day. I’m uncertain about the automatic import thing, but Phillip Eby just released Importing which provides dynamic module loading (it also provides “load object Y from module X specified in python dotted notation string” utility functions, which could eliminate a utility we have in tg.util.)