{"repo":"damnever/pigar","free":true,"listed":false,"github":"https://github.com/damnever/pigar","clone":"git clone https://github.com/damnever/pigar.git","description":":coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)","language":"Python","stars":1794,"topics":["pip","requirements","python","pypi","denpendenies","importerror","distribution-search"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"pigar - Generating requirements.txt for Python project. - Handling the difference between different Python versions. - Jupyter notebook ( .ipynb ) support. - Including the import statements/magic from exec / eval / importlib , doctest of docstring, etc. - Searching ditributions(packages) by the top level import/module names. - Checking the latest versions of requirements. NOTE : Pipenv or uv or other tools is recommended for improving your development flow. Installation pigar can run on Python 3.7+. To install it with pip , use: To install it with conda , use: To get the newest code from GitHub: Usage - pigar can consider most kinds of complicated situations(see FAQ). For example, pigar v1 has py2 requirements.txt and py3 requirements.txt for different Python versions. pigar gen --with-referenced-comments can list all files which referenced the package/distribution(the line numbers for Jupyter notebook may be a bit confusing), for example: If the requirements.txt is overwritten, pigar will show the difference between the old and the new, use --dont-show-differences to disable it. NOTE , pigar will search the packages/distributions in local environment first, then it will do further analysis and search missing packages/distributions on PyPI. See also: EXPERIMENTAL FEATURES. - If you do not know the import name that belongs to a specific distribution (more generally, does Import Error: xxx drive you crazy?), such as bs4 which may come from beautifulsoup4 or MySQLdb which could ","default_branch":null,"files":null,"tree":[],"storefront":"/r/damnever","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/damnever/pigar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}