Skip to content

A helper script that can locate the usage of a function/api invocation within the input file

Notifications You must be signed in to change notification settings

StefanusAgus/python_api_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python API Filter

This is a Python helper script that can locate the usage of a function/api invocation within the input file. Given inputs in the form of the path to the Python file and the name of the function/API, this script will locate and print the line number of the corresponding function/API invocation within the given file.

Usages

python api_filter.py FILENAME FUNCTION_NAME

Requirements

  • Python 3

Examples

test.py: test.py code

Run command:

python api_filter.py test.py KMeans

Output:

Searching for: 'KMeans' API invocation in:
test.py file...

Found API invocation in line: 18
Found API invocation in line: 21
Found API invocation in line: 28

About

A helper script that can locate the usage of a function/api invocation within the input file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages