Skip to content

aleksejs-fomins/python-dependency-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

python-dependency-list

A primitive library for finding external dependencies of a python project.

Usage: python deplst.py pwd where pwd is the root path to the folder containing the python project. The code will:

  • Find all .py files within the folder
  • Extract dependencies by parsing import X and from X import statements
  • Return minimal set

Known shortcomings:

  • Code is not aware of standard libraries, so it may return libraries like os which are installed by default
  • Code does not attempt to infer library versions
  • Occasionally multiline comments ''' aaa ''' may be parsed as dependencies. Currently fixed by manually deleting fake libraries from the final list, optimally should remove all comments from file prior to parsing

About

Find dependencies of python project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages