automatic importing for Python modules
Project description
Automatically discovers & imports entities, used in current module.
No magic or monkey patching. Only standard Python functionality.
Before |
After |
---|---|
|
|
Short summary
Get source code of module, from which smart_imports has called;
Parse it, find all not initialized variables;
Search imports, suitable for found variables;
Import them.
Process only modules, from which smart_imports called explicitly.
See also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smart_imports-0.2.4.tar.gz
(5.6 MB
view hashes)