A collection of Python utilities to organize photos and other media
These days many of us have large, messy media libraries split between multiple drives and cloud storage. Organizing these can be very difficult, but Python can help!
- De-duplication of media files
- Correct the dates on files downloaded in bulk from Google Photos
- Consistently name files for better organization and sorting
The main entrypoint for usage is the CLI which you can access by running
python cli.py --help
- Backup all your media first
- Collect your messy media into one folder (Note that you should avoid putting too many files in one folder, so consider chunking the content you plan on processing)
- Run commands with
--dry-run
set first just to ensure nothing unwanted will happen - Run
python cli.py find-duplicates --path PATH_TO_FOLDER
. Check out the flagged files and delete any you want to! - Then run
python cli.py correct-file-types --path PATH_TO_FOLDER
- Then run
python cli.py correct-file-dates --path PATH_TO_FOLDER
- Then run
python cli.py normalize-file-names --path PATH_TO_FOLDER
pytest
or
coverage run -m pytest