{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"},{"label":"Security","url":"https://skillfed.io/packages/category/security"}],"enrichment":{"capability":"Identifies and maps the semantic and syntactic structure of files, including polyglots and embedded files, with a pure-Python libmagic implementation that can replace the `file` command and recursively extract embedded content.","skillfed_tags":["file-analysis","polyglot-detection","forensics"],"use_cases":["Analyze polyglot files to understand all embedded file types and their byte offsets within a single file.","Recursively extract and identify all files embedded within ZIP archives or PDF documents programmatically.","Generate interactive HTML hex viewers of files with semantic structure annotations for forensic analysis.","Debug why a file is not being classified with the expected MIME type using the built-in interactive debugger.","Replace the system `file` command in scripts while gaining recursive file identification capabilities."],"what_it_does":"PolyFile is a file analysis utility that identifies file types and recursively maps their internal structure, including detecting polyglots (files with multiple valid formats), chimeras, and embedded files. It includes a cleanroom pure-Python implementation of libmagic that supports 263 MIME types and can act as a drop-in replacement for the Unix `file` command, but with the added capability to recursively identify files embedded within other files\u2014similar to binwalk.\n\nThe package supports parsing and semantic mapping of PDF, ZIP, JPEG/JFIF, iNES, and any format specified in a Kaitai Struct grammar. It offers multiple output formats (including an extension of the SBuD JSON format), an interactive debugger for troubleshooting file matching and parsing, and both command-line and programmatic interfaces. The package automatically patches a known issue with Kaitai Struct's auto-generated Python code on import.","worth_installing":"Yes, if you need recursive file identification and polyglot detection. The pure-Python libmagic implementation and low install friction make it accessible, and Apache 2.0 licensing poses no restrictions. However, the aging maintenance status (204 days since last release, minimal repository activity) and 14 runtime dependencies warrant caution for production use\u2014verify that the package remains stable for your specific file formats and that dependency bloat is acceptable for your use case."},"id":"polyfile-weave","links":{"html":"https://skillfed.io/packages/polyfile-weave","md":"https://skillfed.io/packages/polyfile-weave.md","pypi":"https://pypi.org/project/polyfile-weave/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-01-22","license_spdx":null,"license_treatment":"permissive","name":"polyfile-weave","python_support":"supports_current","summary":"A utility to recursively map the structure of a file."},"popularity":{"monthly_downloads":935471,"position":4694,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.9"}
