Skip to main content

Import media files from your iPhone to a local directory.

Project description

import-iphone-media

A fast, efficient CLI tool that imports photos and videos directly from your iPhone to your computer via USB. Preserves original timestamps, skips duplicates, and works without iCloud or iTunes sync.

Quick Start

  1. Connect your iPhone via USB
  2. Unlock your iPhone and trust your computer if prompted.
  3. Install and run:
uv tool install import-iphone-media  # Recommended
pip install import-iphone-media      # Alternative

import-iphone-media ~/Pictures/iPhone

Table of Contents

Features

  • Connects to your iPhone via USB (no iCloud required)
  • Preserves original modification and creation times (file timestamps are synced to match your iPhone)
  • Imports only new media (photos, videos) to a local directory and keeps a database of imported files
  • Cross-platform (Windows, macOS, Linux)

Installation

Requirements

We recommend you to install using uv:

uv tool install import-iphone-media

Alternatively, you can install using pip:

pip install import-iphone-media

Usage

usage: import-iphone-media [-h] [--dcim-path DCIM_PATH] [--db-path DB_PATH] [--include-extensions INCLUDE_EXTENSIONS] [--verbose] output

Import media files from iPhone

positional arguments:
  output                Directory where media files should be downloaded to

options:
  -h, --help            show this help message and exit
  --dcim-path DCIM_PATH
                        Directory on iPhone to scan for media files
  --db-path DB_PATH     Path to the database file where information on imported media will be stored
  --include-extensions INCLUDE_EXTENSIONS
                        List of file extensions to include (comma-separated)
  --verbose             Enable verbose output

Troubleshooting

  • Ensure your iPhone is unlocked and you have trusted the computer
  • If you see connection errors on Windows, make sure iTunes/Apple Devices is running
  • Try reconnecting the USB cable or restarting your iPhone

Development

Clone the repo and install in editable mode:

git clone https://github.com/artificiadrian/import-iphone-media.git
cd import-iphone-media
uv sync

Acknowledgements

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

import_iphone_media-0.1.0.tar.gz (151.0 kB view details)

Uploaded Source

Built Distribution

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

import_iphone_media-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: import_iphone_media-0.1.0.tar.gz
  • Upload date:
  • Size: 151.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.10

File hashes

Hashes for import_iphone_media-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2f3ec9ce74bae482458666fe90d5a89250ae2cce95f6d31c8ad8c86c9cfc7e1
MD5 b25fb9dcca276eb86914b13fccb704fd
BLAKE2b-256 081da93f7930281f5b8318d87beae3906ca6a779f7176419e9747a4273db0251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for import_iphone_media-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bfe1a5eae46cd47a56d89a137774f5999101229d85e7bb6ff54763fddc6de6
MD5 56c255625a3d4edb52faf7d8809f7f43
BLAKE2b-256 43c9694ebb059c6eb0547cc37cc2609575b1f25236af9cb3527a054e4e781553

See more details on using hashes here.

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