Skip to main content

CLI utilities for listing and downloading Apple IPSW firmware.

Project description

ipsw-storage

ipsw-storage is a small Python CLI for listing Apple IPSW firmware records from the ipsw.me API and AppleDB, and for interactively downloading selected firmware.

Installation

python -m pip install .

For local development:

python -m pip install -e ".[dev]"

The interactive pull and devices --interactive commands shell out to fzf — install it separately if you want terminal selection.

Usage

List firmware

Firmware records are merged from ipsw.me and AppleDB by default. Pick a single source with --source:

ipsw-storage list
ipsw-storage list --source ipsw
ipsw-storage list --source appledb

Filter to signed firmware for one device:

ipsw-storage list --device iPhone16,2 --signed-only

Machine-readable output:

ipsw-storage list --device iPhone16,2 --json-output

Browse devices (AppleDB)

List every AppleDB device, including simulators and internal identifiers:

ipsw-storage devices
ipsw-storage devices --type Simulator
ipsw-storage devices --device iPhone99,11

Pick a device interactively with fzf and print its summary:

ipsw-storage devices --interactive

AppleDB metadata

Show a single device or OS build:

ipsw-storage appledb device iPhone16,2
ipsw-storage appledb firmware iOS 22A3354

Download an IPSW

Interactively select and download a firmware. The fzf picker shows merged records from both sources by default:

ipsw-storage pull ./downloads --device iPhone16,2 --signed-only

To browse AppleDB devices first, then pick firmware for the chosen device:

ipsw-storage pull ./downloads --pick-device

Skip fzf entirely by pinning to a specific firmware — when --device / --version / --build narrow the catalog to a single record, pull downloads it directly:

ipsw-storage pull ./downloads --device iPhone99,11 --version 26.1
ipsw-storage pull ./downloads --device iPhone99,11 --build 23B85

If the filter still matches multiple records (e.g. one version with several builds) pull falls back to fzf so you can pick the right one.

Downloads show a progress bar with transferred size, speed, and ETA.

You can also run the package module directly:

python -m ipsw_storage list --signed-only

Module layout

Module Responsibility
ipsw_storage.api Orchestrator: Firmware type, fetch_ipsws, AGENTS registry
ipsw_storage.api.ipsw_me ipsw.me agent (NAME = "ipsw")
ipsw_storage.api.appledb AppleDB agent (NAME = "appledb") + device/build metadata
ipsw_storage.api.types Shared Firmware / FirmwareSource types
ipsw_storage.download Streaming file download with progress callbacks
ipsw_storage.cli click command surface

Agent contract

Every API agent under ipsw_storage.api exposes the same two symbols:

NAME: str  # "ipsw", "appledb", ...
def fetch_ipsws(
    device: str | None = None,
    *,
    signed_only: bool = False,
) -> list[Firmware]: ...

The orchestrator in ipsw_storage.api.fetch_ipsws looks up agents by AGENTS[name], calls each one with the same arguments, then merges, dedupes, and sorts the combined result. Adding a new source means dropping a new module into ipsw_storage/api/ that conforms to this contract.

Development

Run the checks used by CI:

python -m ruff check .
python -m pytest
python -m build

Versioning

The package version is derived from git via setuptools_scm. Tag a release as vX.Y.Z and the next build wheel will pick that up automatically — no need to edit pyproject.toml. Between tags, dev builds get a PEP 440-compliant X.Y.Z.devN+g<sha> suffix.

setuptools_scm writes the resolved value to ipsw_storage/_version.py at build time; that file is gitignored. At runtime, ipsw_storage.__version__ reads from it (or falls back to importlib.metadata for installed wheels).

License

This project is released under the Mozilla Public License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipsw_storage-0.1.0.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipsw_storage-0.1.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file ipsw_storage-0.1.0.tar.gz.

File metadata

  • Download URL: ipsw_storage-0.1.0.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ipsw_storage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a912e46aef5cfea196257e4ce387a1e7ad6cd8f326772de32f48288e49be65e8
MD5 ee30e07b841078c1e364ff1763f499f5
BLAKE2b-256 e0ca7da5353fcf9a1e07a7e92fce40fca91f4faf9464fdd4d08e7e405a090e3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipsw_storage-0.1.0.tar.gz:

Publisher: release.yml on Garefild/ipsw-storage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ipsw_storage-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipsw_storage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ipsw_storage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b157a34ee941dbe301ce1d6ab8cd1a833724bfa226a08597ac85c51eef9e667e
MD5 eedb3614d6e664e48ee9561b7e66d2de
BLAKE2b-256 701b52a666ccb60c512ada1cb1e7e76d8c445ebd5636a9328036a9707516b782

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipsw_storage-0.1.0-py3-none-any.whl:

Publisher: release.yml on Garefild/ipsw-storage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page