#python #txt-file #generate #tool #cli #command-line-tool #dependencies

app requirements-txt-generator

Automatically generate a requirement.txt file for Python projects

3 releases

0.1.2 Sep 21, 2024
0.1.1 Sep 16, 2024
0.1.0 Sep 8, 2024

#1217 in Network programming

Download history 166/week @ 2024-09-04 142/week @ 2024-09-11 239/week @ 2024-09-18 46/week @ 2024-09-25 26/week @ 2024-10-02 2/week @ 2024-10-09

146 downloads per month

MIT license

21KB
408 lines

requirements-txt-generator

This project aims to reduce the painful experience after done writing a python project, and then find out that you forgot to keep a requirements.txt. The project is still at its early stage, but it can now get the basic works done. Feel free to try out.

how to use

If you have Rust installed, you can pretty much use the following command to install this tool:

cargo install requirements-txt-generator

then, use this command to generate your requirements.txt

requirements-txt-generator --path `your python project path` --python-version `your python version, for example, 3.11.4 is python3.11` --env `your conda enviornment name for your project`

there you go, after the program finishes, you will see the requirements.txt under your project folder.

However, if you are Windows user, you will have to specify your Conda environment path. You can run this tool with the following command:

requirements-txt-generator.exe --path `your python project path`  --env-path `your conda enviornment path`

Contributions

All contributions are welcomed.

License

MIT.

Dependencies

~4–11MB
~106K SLoC