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.3.tar.gz
(5.6 MB
view hashes)
Built Distribution
Close
Hashes for smart_imports-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee236d171a5386551ffc8697f4e163355e61f3ebf8e88ac3dad98505d4b75a6 |
|
MD5 | 7a4b5fdae9c73ade4bbee00c01bffe14 |
|
BLAKE2b-256 | c324228b452cc10a4ac22cf9c2317eadb84cf4d18a85ab838bb990369acb86c1 |