Skip to content

xiaoyao1991/PythonDependencyExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Python Package Dependency Extractor

This script will extract the dependencies of a python file, or a directory that contains python files. This will be useful in either using third-party package that doesn't come with a "requirement.txt", or creating your own "requirement.txt" when porting to server.

Usage:

./extract-dependencies.py [-r] > requirement.txt

Note:

Currently this script only supports python 2.7. If you want support for other versions of python, just extract the builtin modules list from http://docs.python.org/2.7/py-modindex.html and assign the list to the builtin_modules in the DependencyExtractor class. Or even easier, simply uncomment the get_builtin_packages method.

TODO:

  1. Avoid comment area (Done)
  2. Eliminate project modules (Done)

About

Python Package Dependency Extractor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages