Skip to content

sarunks/python-requirements-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

python-requirements-generator

Scans all Python files recursively in a directory and prints all imports that are needed, that are not installed

Download the file
RUN: python python_requirements_generator.py <FULL FOLDER PATH>
Note: Absolute path wont work
EXAMPLE: python python_requirements_generator.py /home/johndoe/myapplicationcode
Works with python 2.6,2.7,3.0

Sample Output

2014-12-02::16:06:08 GENERATING REQUIREMENTS
2014-12-02::16:06:08 REQUIREMENTS :
ast
datetime
flask
glob
importlib
json
logging
mandrill
os
passlib
prettytable
pudb
pymongo
pytz
random
requests
string
sys
time
validate_email
xml

2014-12-02::16:07:02 CHECKING WHETHER REQUIREMENTS ARE ALREADY INSTALLED
2014-12-02::16:07:02 REQUIREMENTS TO BE INSTALLED :
prettytable

About

Scans all Python files recursively in a directory and print all imports that are needed, that are not installed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages