Tired of bloated requirements.txt files? Meet genreq

Posted by TheChosenMenace@reddit | Python | View on Reddit | 48 comments

Genreq – A smarter way to generate requirements file.

What My Project Does:

I built GenReq, a Python CLI tool that:

- Scans your Python files for import statements
- Cross-checks with your virtual environment
- Outputs only the used and installed packages into requirements.txt
- Warns you about installed packages that are never imported

Works recursively (default depth = 4), ignores venv/, and supports custom virtualenv names with --add-venv-name.

Install it now:

    pip install genreq \ 
    genreq .

Target Audience:

Production code and hobby programmers should find it useful.

Comparison:

It has no dependency and is very light and standalone.