Pigar

Latest version: v2.1.7

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

2.0.3

- Bump certifi from 2022.9.24 to 2022.12.7 (ref: https://github.com/advisories/GHSA-43fp-rhv2-5gv8)
- Fixed os.path.commonpath raises ValueError for different drives.

See what’s changed in detail [between v2.0.2 and v2.0.3](https://github.com/damnever/pigar/compare/v2.0.2...v2.0.3).

2.0.2

Not secure
- Ignore absolute path in [distributions' installed files](https://peps.python.org/pep-0627/#clarifications-in-the-record-file).
- Ignore vcs exception when parsing information for EggInfoDistribution.
- Sort searched results, print unknown if version not found.
- Fix dirty records in the index database.

2.0.1

Not secure
Make absolute import more reliable by searching parent directory as well.

2.0.0

Not secure
This version has changed a lot of things, most of them are **BREAKING CHANGE**s!

- **Dropped support for Python versions older than 3.7.**
- **Redesigned the command line interface.**
- `pigar generate` to generate requirements.txt.
- `pigar search` to search packages/distributions by the top level module names.
- `pigar check` to check the latest versions of requirements.
- `pigar -h` to explore more.
- `pigar` accepts a prefix for a command, such as `pigar gen`, `pigar c`.
- **Refactored a lot of code and interfaces.**
- [Vendoring](https://github.com/pradyunsg/vendoring) the [pip](https://github.com/pypa/pip) to access more sophisticated utilities(`pip` named it's module as `_internal` so vendoring technology is introduced).
- Fixed a lot of issues when parsing the requirements file, e.g. [113](https://github.com/damnever/pigar/issues/113).
- Fixed the issues for editable requirements, e.g. [60](https://github.com/damnever/pigar/issues/60).
- Tweaked some default actions and introduced more options for better user experience.
- `pigar` will ask user to choose the right packages/distributions if `pigar` has found multiple packages/distributions for the same module names. With `--auto-select` enabled, `pigar` will guess the best matched one or choose all possible packages/distributions automatically.
- Added an option `--dry-run` which allows `pigar` to not write a requirements.txt file, just print it.
- Added an option `--follow-symbolic-links/--dont-follow-symbolic-links` to let user decide whether to follow the symbolic links, fixed [89](https://github.com/damnever/pigar/issues/89).
- Added an option `-i/--index-url` to allow the custom URL of the Python Package Index, fixed [52](https://github.com/damnever/pigar/issues/52).
- Removed the spaces from requirements specifier, fixed [86](https://github.com/damnever/pigar/issues/86).
- Added an option `--show-differences/--dont-show-differences` to enable or disable showing the differences when the requirements file is overwritten.
- Introduced `asyncio` to synchronize distributions' metadata with the PyPI, the process is much faster now.
- Refactored the code to make the index database more reliable.
- Add unique contstraints to avoid duplicate records, fixed [119](https://github.com/damnever/pigar/issues/119).
- Store versions in the database to do incremental index synchronization.

1.0.2

Not secure
- Fix requirements list in setup.py [122](https://github.com/damnever/pigar/pull/122).

1.0.1

Not secure
- Support `*.ipynb` magics and shell command, fixed [87](https://github.com/damnever/pigar/issues/87). See [#102](https://github.com/damnever/pigar/pull/102), [#117](https://github.com/damnever/pigar/pull/117), [#118](https://github.com/damnever/pigar/pull/118) for details.
- Parse requirements file with the more sophisticated utility, fixed [48](https://github.com/damnever/pigar/issues/48), [#113](https://github.com/damnever/pigar/issues/113). See [#115](https://github.com/damnever/pigar/pull/115) for details.
- Fixed [99](https://github.com/damnever/pigar/issues/99), continue if a local package isn't exists. See [#107](https://github.com/damnever/pigar/pull/107) for details.
- Fixed too many values to unpack error when parsing git config. See [97](https://github.com/damnever/pigar/pull/97) for details.

Page 3 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.