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.2.tar.gz
(5.6 MB
view hashes)
Built Distribution
Close
Hashes for smart_imports-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f933b896071db58f9a2796fc11b2f132df7486a56c14c84a3756bfcb508a54 |
|
MD5 | 860968a0a9f48bf95afb1d0b5a9e3323 |
|
BLAKE2b-256 | af4fcd31fc2260b75f41b50fd0947987f1d95e742d0cbb0040b3534e9c305888 |