Get modules name from your python code
Project description
modules-name-from-code
Get modules name from your python code
Example
/home/mycode.py :
import module1
import module2, module3
from module4 import module
...
import getmodules.get_modules
print(get_modules("/home/mycode.py"))
Result :
['module2', 'module1', 'module4', 'module3']
Or
import getmodules.get_modules
print(get_modules("/home/mycode.py", sort=True))
Result :
['module1', 'module2', 'module3', 'module4']
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
Built Distribution
Close
Hashes for modules-name-from-code-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b527e51a8394455c5db79632dbc7cdca91c2274ae6fec5c4b80364bde7eb9f1 |
|
MD5 | 68db47514790a81f3da091b5ad117db5 |
|
BLAKE2b-256 | b5b47168ac56cda7d139a5ce81dcfa7243881874336e2ca304f5047aa9303d2b |
Close
Hashes for modules_name_from_code-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5c420181ca75a4f91c1f33ec61bbbedee9d8c9ac1dfd4093ecd20f56076221 |
|
MD5 | d78aff0b217c4bf8e772810681d66d72 |
|
BLAKE2b-256 | ceae0ff6b967b029a9d5d83d7e769e88266960a888df056a748f5820077f5f8f |