{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/2"}],"enrichment":{"capability":"Scans Python project source code to detect imported packages and automatically generates a requirements.txt file with pinned versions, without needing a full environment installation.","skillfed_tags":["dependency-management","requirements-automation","jupyter-support"],"use_cases":["Quickly bootstrap a requirements.txt for a new project without manually listing every import.","Audit and clean an existing requirements.txt by comparing it to actual imports in the codebase.","Generate requirements for a project you've inherited without needing to install all dependencies first.","Scan Jupyter notebooks alongside Python files to capture all notebook-based dependencies.","Use a custom PyPI server or proxy in restricted network environments."],"what_it_does":"pipreqs is a command-line tool that analyzes Python source files in a project directory and generates a requirements.txt file by detecting all imported packages. Unlike pip freeze, which lists everything installed in your environment, pipreqs reads your actual code to identify only the packages you use, making it useful for documenting dependencies in new projects or cleaning up existing requirement files.\n\nThe tool walks the abstract syntax tree of your Python files to extract imports, queries PyPI (or a custom server) to find the latest version of each package, and outputs a requirements.txt with pinned versions. It supports optional features like scanning Jupyter notebooks, comparing against existing requirements, cleaning unused entries, and dynamic versioning schemes (e.g., ~= or >=). Runtime dependencies include yarg, docopt, nbconvert, and ipython.","worth_installing":"Yes. pipreqs solves a real problem\u2014automating dependency discovery from source code\u2014with low install friction, active maintenance, no security vulnerabilities, and a permissive license. It is most valuable when you need to document or audit dependencies without a full environment setup, or when working with notebooks."},"id":"pipreqs","links":{"html":"https://skillfed.io/packages/pipreqs","md":"https://skillfed.io/packages/pipreqs.md","pypi":"https://pypi.org/project/pipreqs/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-02-18","license_spdx":null,"license_treatment":"permissive","name":"pipreqs","python_support":"capped_below_current","summary":"Pip requirements.txt generator based on imports in project"},"popularity":{"monthly_downloads":991444,"position":4560,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
