{"library":"pipreqs","title":"pipreqs","description":"pipreqs is a Python utility that automatically generates a `requirements.txt` file for a project based on the import statements found in its Python files and Jupyter notebooks. It aims to create a clean, minimal list of direct dependencies, avoiding the inclusion of unused packages or the entire environment as `pip freeze` does. The current version is 0.5.0, and releases occur irregularly, with significant updates like Jupyter support recently added.","language":"python","status":"active","last_verified":"Sun Apr 12","install":{"commands":["pip install pipreqs"],"cli":{"name":"pipreqs","version":"0.4.13"}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Navigate to your project's root directory\n# Generate requirements.txt for Python files:\npipreqs .\n\n# Generate requirements.txt including Jupyter notebooks:\npipreqs . --scan-notebooks\n\n# To print to console without saving to file:\npipreqs . --print","lang":"bash","description":"To generate a `requirements.txt` file, navigate to your project's root directory and run `pipreqs .`. If your project includes Jupyter notebooks, use the `--scan-notebooks` flag. You can also preview the requirements without saving by using `--print`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}