Skip to content

This is a simple tool to scan the project's import libs.

Notifications You must be signed in to change notification settings

yangyi-li/python-import-scanner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python Header Examiner

This is a simple script to exam all the import lib of a python project.

Usage

python3 exam.py YOUR_PROJECT_PATH YOUR_RESULT_OUTPUT_PATH

Plz use abs path when you run the scripts.

Example

test1.py:

import torch as tf
import math
from torch import nn
import pandas

python3 exam.py ~/test1.py ~/results.txt

results.txt:

---------------------------
Lib: torch
Api:
	nn
---------------------------
Lib: math
---------------------------
Lib: pandas

About

This is a simple tool to scan the project's import libs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%