Skip to main content

A tool to sort and copy images/videos to a defined directory structure.

Project description

mediasorter

A CLI tool to sort and copy images/videos to a defined directory structure. This will look at the metadata for each picture/video in the source directory and copy it to the target directory preserving the files metadata. The target directory is by default in the format %Y/%B/%Y_%m_%d.

For example if there is an image under ~/phonepics/someimage.jpg with a create date of 2021-10-21. If I run the following:

$ mediasorter --source ~/phonepics --target ~/images

The picture someimage.jpg will be saved under ~/images/2021/October/2021_10_21.

Installation

pip install mediasorter

Usage

Usage: mediasorter [OPTIONS]

The mediasorter Python project.

Options:
-s, --source PATH  Source directory of Images/Videos  [default: current directory]
-t, --target PATH  Target directory of Images/Videos  [required]
-f, --format TEXT  Directory format for how images/videos are saved to target  [default: %Y/%B/%Y_%m_%d]
-d, --debug
--version          Show the version and exit.
--help             Show this message and exit.

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

mediasorter-0.1.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

mediasorter-0.1.3-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mediasorter-0.1.3.tar.gz.

File metadata

  • Download URL: mediasorter-0.1.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mediasorter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 13fe65cae248af31e0adf23e34e8d436cdbd6d33dea2d9693ba08ac3881dc8b1
MD5 7c7d73f8def23736b10403bc3be0ddb6
BLAKE2b-256 52175075d21afe4faae946b8b0f7fd3291272858c01c4e36b9816ba03f4b968f

See more details on using hashes here.

File details

Details for the file mediasorter-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: mediasorter-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for mediasorter-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b121119bbabf2f711ec5c456f4092158aa3caf3c59c361658ea0bdddab4408b
MD5 1d436157dfb8ca6af4bc3555302c41bb
BLAKE2b-256 afa7e48f3a6091c5cbfcdfd63fa6ea4b37a4971d5f62e4630cf54c3f8d01943e

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