Polyfile

Latest version: v0.5.5

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

Scan your dependencies

Page 1 of 4

0.5.5

What's Changed
* to 3387: Lower bounds on dependency chardet and pdfminer.six by lucaspeng12138 in https://github.com/trailofbits/polyfile/pull/3422
* Do not use `sys.stderr.buffer` or log statuses that are not UTF-8 by ESultanik in https://github.com/trailofbits/polyfile/pull/31
* Bump actions/setup-python from 4 to 5 by dependabot in https://github.com/trailofbits/polyfile/pull/3418
* Bump actions/add-to-project from 0.5.0 to 0.6.0 by dependabot in https://github.com/trailofbits/polyfile/pull/3419

New Contributors
* lucaspeng12138 made their first contribution in https://github.com/trailofbits/polyfile/pull/3422

**Full Changelog**: https://github.com/trailofbits/polyfile/compare/v0.5.4...v0.5.5

0.5.4

This release switches to using `importlib` for loading resources. This fixes an issue if PolyFile is installed from an `sdist` into a discrete `venv` with resources stored separately from the code.

Documentation on extending PolyFile is also improved.

0.5.3

This release ends official support for Python 3.7, updates its use of [fickling](https://github.com/trailofbits/fickling) to a new API, and adds missing build dependencies to the source distribution.

0.5.2

Adds support for detecting Python pickle serializations.

0.5.1

Adds support for parsing HTTP/1.1 request headers.

0.5.0

Significant improvements to the libmagic DSL matching engine. PolyFile now supports the distinction between "text" and "binary" tests, similar to libmagic. This version of PolyFile has been validated against the ~1k file [Corkami test corpus](https://github.com/corkami/pocs).

Several new features were added to PolyFile's interactive debugger.

**Breaking Change**: Prior to this release, the default behavior of PolyFile was to output its matching results in JSON format (`--format json`). *As of version 0.5.0, PolyFile will now default to mimicking the output of libmagic's `file` command (`--format file`)*.

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.