Skip to main content

Pictures from Google Photos, ICloud, or your Camera... all sorted!

Project description

Pictures from Google Photos, ICloud, or your Camera... all sorted!

CI codecov.io Language grade: Python Pypi pyversions Code style: black

Install the library with

pip install sortpics

and normalize your image collection with

sortpics

in your picture folder.

Note that the above only proposes a file renaming, it does not impact the file. If you agree with the proposal, you can run the script generated by sortpics, or run sortpics --no-test.

Images and movies are renamed based on their creation date. For instance, an image taken on Dec 25th, 2019 at 15:07:12 will be moved to 2019-12/2019-12-25 15.07.12.jpg.

Additional features:

  • The library only renames (moves) images. No deletion or copy occurs.
  • When two or more images have identical timestamp at the resolution of a second, the name will include the millisecond.
  • If, despite the above, two files have the same target, only the file with the largest file on disk is moved.
  • Animated movies (joint .JPG/.MOV files) are moved in pair.
  • Custom names are preserved, e.g. My cute cat.jpg is renamed to e.g. 2019-12/2019-12-12 19.06.44 My cute cat.jpg.
  • And, in case you change your mind, sortpics generates a undo script :smiley:

Useful links

Develop in this package

To develop in this package, clone the project, and then create a dedicated Python environment with

conda env create --file environment.yml

and activate it with

conda activate sortpics

Then install the development version with

pip install -e .

If you want to contribute back** your changes, please install the pre-commit package with

pre-commit install

The tests for this package are in the tests folder, and can be run with

pytest

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

sortpics-0.1.1.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file sortpics-0.1.1.tar.gz.

File metadata

  • Download URL: sortpics-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1.post20200515 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.0

File hashes

Hashes for sortpics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7621319edbd307aba73e904fa4c0f3900a7fbeb79035fcdd409ee634eda053bf
MD5 1f98ee22b854c503cbb8ca3ee5111607
BLAKE2b-256 847da2f24c1314a6ff18f55372b897326c2b41a82507d3fdefccb2e251c71d26

See more details on using hashes here.

Supported by

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