Polyfile

Latest version: v0.5.5

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

Scan your dependencies

Page 2 of 4

0.4.2

Updates to the command line interface to allow for greater flexibility in specifying output formats and output files. These updates are backwards-compatible, however, in the forthcoming v0.5.* release there will be a breaking change in the output: PolyFile will then default to the `mime` output format (to mimic the behavior of the `file` command) rather than the current `sbud` output.

This release also includes optimizations to the libmagic `search` and `string` tests which should result in significant speed improvements.

0.4.1

Bugfix release.

Adds better support for Windows.

Fixes bugs that could cause Kaitai Struct parsers to report incorrect offsets.

0.4.0

Major matching API refactor.

Replaces Didier Stevens' PDF parser with an instrumented version of [PDFminer](https://github.com/pdfminer/pdfminer.six), producing a significant speedup.

JavaScript optimizations for a speedup in the HTML output.

Adds an interactive debugger for the libmagic DSL as well as custom parsers.

0.3.4

Bugfix release. Various bugfixes in the PDF parser, as well as better emulation of integer overflow and underflow in libmagic.

0.3.3

Adds support for the undocumented libmagic DSL ternary operator "`${x?:}`".

Various bugfixes which have resulted in the ability to match against several hundred more MIME types.

Adds the ability to fully parse ELF executables.

API cleanup in `polyfile/magic.py`.

0.3.2

Bugfix release to correct regressions with older versions of Python.

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.