Skip to main content

A fantastic tool to generate requirements for your Python project, and more than that.

Project description

  • Generating requirements.txt for Python project.
    • Handling the difference between different Python versions.
    • Jupyter notebook (*.ipynb) support.
    • Including the import statements from exec/eval, doctest of docstring, etc.
  • Searching packages by import name.
  • Checking the latest versions for Python project.

You can find more information on GitHub.

Change Logs

Version 1.0.2 (2022.11.12)

  • Fix requirements list in setup.py #122.

Version 1.0.1 (2022.11.12)

  • Support *.ipynb magics and shell command, fixed #87. See #102, #117, #118 for details.
  • Parse requirements file with the more sophisticated utility, fixed #48, #113. See #115 for details.
  • Fixed #99, continue if a local package isn't exists. See #107 for details.
  • Fixed too many values to unpack error when parsing git config. See #97 for details.

Version 1.0.0 (2022.06.22)

  • BREAKING CHANGE: Disable the comments which contain filenames and line numbers by default, use --with-referenced-comments to enable this feature.
  • Skip if local package (edit-mode project) not found, fixed #99.

Version 0.10.0 (2020.03.14)

  • Refactored the main logic, the interface has been changed, be careful if you are using pigar as a library.
  • Handle the HTTP error, fixed #61.
  • Ignore local packages quietly, fixed #47, #58 and #65.

Thank @bganglia for the following contributions:

  • Add Jupyter notebook(.ipynb) support, refer to #69.
  • Option to turn off filenames and line numbers in requirements.txt, refer to #65.
  • Fix check path, refer to #64.
  • And more.

Version 0.9.2 (2019.04.11)

  • Make version comparison operator configurable, fixed #37

Version 0.9.1 (2019.02.17)

  • Fixed potential security vulnerabilities by updating requests.
  • Fixed #49

Version 0.9.0 (2018.08.12)

  • Reuse connections.
  • Update database.
  • Fixed #44

Version 0.7.2 (2018.04.24)

Version 0.7.1 (2017.11.07)

Version 0.7.0 (2017.07.03)

  • Fixed the .egg suffix which caused by sudo pip install ... on Ubuntu.
  • Workaround for special packages, such as #29

Version 0.6.10 (2016.06.17)

  • Fixed #26
  • Fixed relative import issue.

Version 0.6.9 (2016.05.08)

  • Fixed ImportError.

Version 0.6.8 (2016.05.08)

  • Supported flask extension.
  • Sorted requirements.
  • Use gevent if possible.

Version 0.6.7 (2015.12.13)

  • If modules in the try...except... block, assume they are optional.

Version 0.6.6 (2015.11.22)

  • Fixed IndexError.

Version 0.6.5 (2015.11.22)

  • Fixed AttributeError.
  • Fixed PEP8 warning.

Version 0.6.4 (2015.11.22)

  • Removed useless code.
  • Cache modules, to avoid duplication of inspection.

Thank @spacewander for the following contributions:

  • Fixed error for Python 2.7.6.
  • Fixed error when using './xxx' as relative path.
  • Support importlib.import_module and __import__.

Version 0.6.3 (2015.11.09)

  • Sort files, make comments more clearer.
  • Fixed grammar, to make the README clearer. Thank @roryokane and @flyingfisch.
  • Make it work with python -m pigar. Thank @lilydjwg.
  • Fixed the pep8 warnings: #15.
  • Make output more clearer: #12.
  • Fixed UnicodeDecodeError for Python 3.

Version 0.6.2 (2015.11.05)

  • If requirements file is overwritten over, show difference between old and new.
  • Adjust the structure of the code.

Version 0.6.1 (2015.11.03)

  • Fixed typo.
  • Follow symlinks.

Version 0.6.0 (2015.10.30)

  • Enhancement: issue #7, show imported module come from which files.
  • Consider package installed via Git.
  • Add command "-i", used to ignore a list of directory.

Version 0.5.5 (2015.10.21)

Version 0.5.2-0.5.4 (2015.10.6)

  • Fixed issue #1.
  • Make version compare more effective.
  • Removed useless code.

Version 0.5.1 (2015.10.01)

  • Available in PyPI(https://pypi-hypernode.com/pypi/pigar).
  • Generate requirements for Python project.
  • Can consider different for different Python versions.
  • Search package names by imported names.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pigar-1.0.2.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

pigar-1.0.2-py2.py3-none-any.whl (12.9 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file pigar-1.0.2.tar.gz.

File metadata

  • Download URL: pigar-1.0.2.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pigar-1.0.2.tar.gz
Algorithm Hash digest
SHA256 875ad66c66dfd1ff4d23b0ee3629edd264e67e6510c328ec6c6454f09f04ddf0
MD5 990e0c69579eb6021348dacf1cbc6909
BLAKE2b-256 f8d6f01c005d78e9b48d69150e605cfdd3ed199cfb18ee7ab6ec10689993948b

See more details on using hashes here.

File details

Details for the file pigar-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pigar-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.9 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pigar-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c66e2b32a5a85b4afc7b27bcb393b02d3e6fb8f4487366152088f954e0f49ad
MD5 02d44c3096d68b591e4f10c1d67ac2b1
BLAKE2b-256 42348d79f6f7c93f2e2cf03e06cf692f9d1a403ef1579fcec50f33c23ac06f58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page