Get modules name from your python code
Project description
modules-name-from-code
Get modules name from your python code
How to install?
PYPI : https://pypi.org/project/modules-name-from-code/1.0.0/
pip install modules-name-from-code
Example
/home/mycode.py :
import module1
import module2, module3
from module4 import module
...
import getmodules
print(getmodules.get_modules("/home/mycode.py"))
Result :
['module2', 'module1', 'module4', 'module3']
Or
import getmodules
print(getmodules.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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5788f98237c5cacd9b6166d09315bd0e4ef51b7a3c569565f91aec47d3391096 |
|
MD5 | 5059c8b5551c4e821d608ca03ee098c9 |
|
BLAKE2b-256 | 1b2100438b5ca1e98d2690019f9ac7e4890be15ec36e62ec8ee23310cfcb3864 |
Close
Hashes for modules_name_from_code-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01704b1e9fbf547ffa1d464e037d71781785030754e5fc2cd6e3f8b61854f81f |
|
MD5 | df8036c1266f7ab3247b851906f91425 |
|
BLAKE2b-256 | ca3abb0bcee642cce06f2b4c8dc48f1760bfb8a1f2b7bd883622c7ae8422237e |