Skip to content

Instantly share code, notes, and snippets.

@AlexanderNenninger
Last active August 16, 2025 11:01
Show Gist options
  • Select an option

  • Save AlexanderNenninger/c98b559ec2e65244b2740e20e0a31df0 to your computer and use it in GitHub Desktop.

Select an option

Save AlexanderNenninger/c98b559ec2e65244b2740e20e0a31df0 to your computer and use it in GitHub Desktop.
Import Fotos into your Gallery using Pythonista
@AlexanderNenninger
Copy link
Author

πŸ“Έ Import Directory to iOS Photos (Pythonista Share Extension)
This Pythonista script lets you import entire folders of images into the iOS Photos app directly from the Share Sheet.
When invoked from the Files app (or any other app that can share files/folders), it will:
Recursively scan the selected folder(s) for images.
Import them into the Photos library.
Skip duplicates by hashing files and keeping a local record (.imported_hashes.json).
Usage
Save the script in Pythonista (e.g. import_dir_to_photos_share.py).
In Pythonista, tap the wrench icon β†’ Shortcuts β†’ App Extensions and enable this script.
In the Files app, select one or more folders or images β†’ Share β†’ Run Pythonista Script β†’ choose this script.
The script will show log output in Pythonista and add all new images to the Photos app.
This gives you a simple, repeatable way to bulk-import folders of photos into the iOS gallery without manual selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment