Crates.io | requirements-txt-generator |
lib.rs | requirements-txt-generator |
version | 0.1.2 |
source | src |
created_at | 2024-09-08 04:09:23.528591 |
updated_at | 2024-09-21 02:54:37.011588 |
description | Automatically generate a requirement.txt file for Python projects |
homepage | |
repository | https://github.com/AspadaX/requirements-txt-generator |
max_upload_size | |
id | 1367749 |
size | 59,840 |
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.
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`
All contributions are welcomed.
MIT.