requirements-txt-generator

Crates.iorequirements-txt-generator
lib.rsrequirements-txt-generator
version0.1.2
sourcesrc
created_at2024-09-08 04:09:23.528591
updated_at2024-09-21 02:54:37.011588
descriptionAutomatically generate a requirement.txt file for Python projects
homepage
repositoryhttps://github.com/AspadaX/requirements-txt-generator
max_upload_size
id1367749
size59,840
Xinyu Bao (AspadaX)

documentation

README

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.

Commit count: 12

cargo fmt