This is a simple library to find the recursive import link of source code
Project description
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)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file findimport-0.1.tar.gz.
File metadata
- Download URL: findimport-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fe7a0810feb02929154a373939f11d6a02414158245a1994d68d5149eff0aea
|
|
| MD5 |
9d7ecebb23d6201c8529bb1023b982f7
|
|
| BLAKE2b-256 |
d1ff015ce1a289cfb711ee0d7955e8fdc74694a2ae8630bdd73aaf813dd4c0a1
|
File details
Details for the file findimport-0.1-py2.py3-none-any.whl.
File metadata
- Download URL: findimport-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a625dabd8f73157ed8396e7490fac37f2ee36b83c9e62d20abafe81a2f6998b3
|
|
| MD5 |
e5ad44536b7ba9b809516cafed1e746e
|
|
| BLAKE2b-256 |
aa2975df486e1518e97efe0265c2daad984223c2636d1d4fc06f197eae67fdf8
|