{"id":13398324,"url":"https://github.com/bndr/pipreqs","last_synced_at":"2025-05-13T15:02:10.648Z","repository":{"id":30844927,"uuid":"34402403","full_name":"bndr/pipreqs","owner":"bndr","description":"pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.","archived":false,"fork":false,"pushed_at":"2025-04-10T08:14:54.000Z","size":458,"stargazers_count":7174,"open_issues_count":204,"forks_count":409,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-05-05T22:15:42.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bndr.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-04-22T16:38:14.000Z","updated_at":"2025-05-05T18:45:45.000Z","dependencies_parsed_at":"2024-10-25T17:32:12.978Z","dependency_job_id":"afb0b0f9-0fe8-4a11-ad72-a10cbdcc5457","html_url":"https://github.com/bndr/pipreqs","commit_stats":{"total_commits":254,"total_committers":61,"mean_commits":4.163934426229508,"dds":0.7322834645669292,"last_synced_commit":"a1f83d27d9a42aa95b481e2fa94716702266110c"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndr%2Fpipreqs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndr%2Fpipreqs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndr%2Fpipreqs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bndr%2Fpipreqs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bndr","download_url":"https://codeload.github.com/bndr/pipreqs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253967997,"owners_count":21992252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:22.832Z","updated_at":"2025-05-13T15:02:10.594Z","avatar_url":"https://github.com/bndr.png","language":"Python","readme":"=============================================================================\n``pipreqs`` - Generate requirements.txt file for any project based on imports\n=============================================================================\n\n.. image:: https://github.com/bndr/pipreqs/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/bndr/pipreqs/actions/workflows/tests.yml\n\n\n.. image:: https://img.shields.io/pypi/v/pipreqs.svg\n        :target: https://pypi.python.org/pypi/pipreqs\n\n\n.. image:: https://codecov.io/gh/bndr/pipreqs/branch/master/graph/badge.svg?token=0rfPfUZEAX\n        :target: https://codecov.io/gh/bndr/pipreqs\n\n.. image:: https://img.shields.io/pypi/l/pipreqs.svg\n        :target: https://pypi.python.org/pypi/pipreqs\n\n\n\nInstallation\n------------\n\n.. code-block:: sh\n\n    pip install pipreqs\n\nObs.: if you don't want support for jupyter notebooks, you can install pipreqs without the dependencies that give support to it. \nTo do so, run:\n\n.. code-block:: sh\n\n    pip install --no-deps pipreqs\n    pip install yarg==0.1.9 docopt==0.6.2\n\nUsage\n-----\n\n::\n\n    Usage:\n        pipreqs [options] [\u003cpath\u003e]\n\n    Arguments:\n        \u003cpath\u003e                The path to the directory containing the application files for which a requirements file\n                              should be generated (defaults to the current working directory)\n\n    Options:\n        --use-local           Use ONLY local package info instead of querying PyPI\n        --pypi-server \u003curl\u003e   Use custom PyPi server\n        --proxy \u003curl\u003e         Use Proxy, parameter will be passed to requests library. You can also just set the\n                              environments parameter in your terminal:\n                              $ export HTTP_PROXY=\"http://10.10.1.10:3128\"\n                              $ export HTTPS_PROXY=\"https://10.10.1.10:1080\"\n        --debug               Print debug information\n        --ignore \u003cdirs\u003e...    Ignore extra directories, each separated by a comma\n        --no-follow-links     Do not follow symbolic links in the project\n        --ignore-errors       Ignore errors while scanning files\n        --encoding \u003ccharset\u003e  Use encoding parameter for file open\n        --savepath \u003cfile\u003e     Save the list of requirements in the given file\n        --print               Output the list of requirements in the standard output\n        --force               Overwrite existing requirements.txt\n        --diff \u003cfile\u003e         Compare modules in requirements.txt to project imports\n        --clean \u003cfile\u003e        Clean up requirements.txt by removing modules that are not imported in project\n        --mode \u003cscheme\u003e       Enables dynamic versioning with \u003ccompat\u003e, \u003cgt\u003e or \u003cnon-pin\u003e schemes\n                              \u003ccompat\u003e | e.g. Flask~=1.1.2\n                              \u003cgt\u003e     | e.g. Flask\u003e=1.1.2\n                              \u003cno-pin\u003e | e.g. Flask\n        --scan-notebooks      Look for imports in jupyter notebook files.\n\nExample\n-------\n\n::\n\n    $ pipreqs /home/project/location\n    Successfully saved requirements file in /home/project/location/requirements.txt\n\nContents of requirements.txt\n\n::\n\n    wheel==0.23.0\n    Yarg==0.1.9\n    docopt==0.6.2\n\nWhy not pip freeze?\n-------------------\n\n- ``pip freeze`` only saves the packages that are installed with ``pip install`` in your environment.\n- ``pip freeze`` saves all packages in the environment including those that you don't use in your current project (if you don't have ``virtualenv``).\n- and sometimes you just need to create ``requirements.txt`` for a new project without installing modules.\n","funding_links":[],"categories":["Python","Python (144)","Uncategorized","Package Management","Dependency \u0026 Package Managers"],"sub_categories":["Uncategorized","For Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbndr%2Fpipreqs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbndr%2Fpipreqs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbndr%2Fpipreqs/lists"}