findimport-0.1
توضیحات
This is a simple library to find the recursive import link of source code
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | findimport-0.1 |
| نام | findimport |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | VigneshAmudha |
| ایمیل نویسنده | vigneshgig@gmail.com |
| آدرس صفحه اصلی | https://github.com/vigneshgig/Python-Find-imported-Module |
| آدرس اینترنتی | https://pypi.org/project/findimport/ |
| مجوز | MIT |
# Python Find imported Module
pip3 install findimport
# Example:
# findownimportfile
if the source file in /mnt/c/workspace/example/source_code.py
## Input:
python3 -m findimport --source source_code.py --path /mnt/c/workspace/ or /mnt/c/workspace/example
## Output:
/mnt/c/workspace/example/own_import_find.txt
## Input:
python3 -m findimport --source source_code.py --path /mnt/c/workspace/ or /mnt/c/workspace/example --save_text /mnt/c/workspace/imported_file.txt
## Ouput:
/mnt/c/workspace/imported_file.txt
$ python3.7
>> import findimport
>> import_list = findimport.find_own_import(source,path)
>> print(import_list)
['/mnt/c/workspace/example/other_code.py',...]
# findownimportfile
python3 -m findimport --source source_code.py --path 'dummystring' --find_all_import
S$ python3.7
>> import findimport
>> import_list = findimport.find_all_import(source)
نحوه نصب
نصب پکیج whl findimport-0.1:
pip install findimport-0.1.whl
نصب پکیج tar.gz findimport-0.1:
pip install findimport-0.1.tar.gz