⚡
Listreqs
Listreqs
is a simple requirements.txt
generator. It's an alternative to pipreqs
. Where in Pipreqs, it helps you to Generate requirements.txt file for any project based on imports, but in Listreqs you need to create a virtual environment first, and do your required installations there. And when you need to create your requirements.txt
use Listreqs.
How to use:
-
Create your virtual env,
- pip install virtualenv
- mkdir TextGenEnv
- virtualenv TextGenEnv
- activate the env:
- TextGenEnv\Scripts\activate
- (for bash source ./Scripts/activate)
-
do your required installations there
-
And when you need to create your requirements.txt do these steps,
- activate the environment using above command
pip list > requirements.txt
-> it will put the output of thepip list
command inside therequirements.txt
python listreqs.py
and give the path of the previously createdrequirements.txt
-
Boom!!!
todo:
- create a single shell script to get the job done.