pyimg4
A Python library/CLI tool for parsing Apple's Image4 format.
Decision gist · record as of 2026-08-14
Yes, if you work with Apple firmware analysis or Image4 format manipulation. Low install friction, active maintenance, MIT license, no known vulnerabilities, and a focused feature set make it a straightforward choice. Not relevant for general Python development—install only if you have a specific need to parse or work with Image4 files.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- LZFSE compression uses apple-compress on macOS and lzfse on other platforms; set PYIMG4_FORCE_LZFSE environment variable to override platform selection if needed.
- Low install friction with a pure-wheel distribution.
License · maintenance · safety
permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution with only attribution and liability disclaimer required—suitable for both open-source and commercial projects.
last release 2025-04-01 (500 days) · last repo commit 2026-08-10 · 67 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 331,214 downloads/mo, #7,520 on PyPI
Alternatives
Verify before relying
pip install pyimg4
python3 -c "from pyimg4 import img4; help(img4)"- Whether the package handles all current Apple firmware versions and edge cases.
- Performance characteristics when processing large or complex Image4 files.
- Completeness of command coverage for all Image4 operations beyond the four main commands shown.
What it is and what it does
PyIMG4 is a Python library and CLI tool for reading and working with Apple's Image4 binary format, which is used in iOS firmware and related Apple systems. It exposes four main command groups (im4m for manifests, im4p for payloads, im4r for restore info, and img4 for full Image4 files) and handles compression transparently—using apple-compress on macOS and lzfse elsewhere, with an override environment variable available if needed.
The package targets developers and researchers working with Apple firmware analysis. It requires Python 3.9 or later and depends on pycryptodome, asn1, lzfse, apple-compress, pylzss, and click. The library is in Beta status but has been actively maintained since its first release, with no known security vulnerabilities.
Use it for
- Extract and inspect Image4 manifest metadata from Apple firmware files for reverse engineering.
- Decompress and parse Image4 payloads to analyze firmware components programmatically.
- Automate Image4 format validation in firmware analysis pipelines.
- Retrieve restore info from Image4 files for device compatibility research.
- Build custom tools that read or transform Apple firmware using the library API.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with Apple firmware analysis or Image4 format manipulation.
Low install friction, active maintenance, MIT license, no known vulnerabilities, and a focused feature set make it a straightforward choice. Not relevant for general Python development—install only if you have a specific need to parse or work with Image4 files.
Install
pyimg4 on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 2026-08-10 with 67 repository stars. Six runtime dependencies including cryptographic and compression libraries are all available on PyPI.
Requires Python 3.9 or later. LZFSE compression uses apple-compress on macOS and lzfse on other platforms; set PYIMG4_FORCE_LZFSE environment variable to override platform selection if needed.
License in practice
MIT License permits unrestricted use, modification, and distribution with only attribution and liability disclaimer required—suitable for both open-source and commercial projects.
Quickstart
pip install pyimg4
python3 -c "from pyimg4 import img4; help(img4)"
Verify before relying
- Whether the package handles all current Apple firmware versions and edge cases.
- Performance characteristics when processing large or complex Image4 files.
- Completeness of command coverage for all Image4 operations beyond the four main commands shown.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesapple-compressasn1clicklzfsepycryptodomepylzss |
| Maintenance | Actively maintained 500 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 331,214 / month, #7,520 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Science/ResearchProgramming Language :: Python :: 3.9Topic :: Utilities |
Evidence: pyimg4-0.8.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “apple image4 parser”
- pyimg4PyIMG4 parses Apple's Image4 format through a Python library and CLI…
- pycrashreportParses Apple crash reports (iOS, macOS) into a readable format,…
- numbers-parserRead, edit, and write Apple Numbers spreadsheet files (.numbers) from…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also developer-disk-image · ipsw-parser · apple-compress · la-panic · pyaxmlparser · pymobiledevice3 · wallet-py3k · pyiosbackup · pyapns-client · pycrashreport