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.2.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.2-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mediasorter-0.1.2.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.7.2

File hashes

Hashes for mediasorter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aafa39351f4acddd8e524682b08fba616cda834e80e3b0ecd67f017f77f6dc81
MD5 515dece49a83afd653f16de87e8e7dea
BLAKE2b-256 1bd02e3ffb1f8c8c9c2c2344fe36916b03a64fe9997eb404038084e8d0ee9920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mediasorter-0.1.2-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.7.2

File hashes

Hashes for mediasorter-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1f6034b4cb5e2ebc2cc157a47e49093176054fa3178d5a6cf33df4735c874f9c
MD5 84d1dd48dbf354d60738f0e5fd74f06d
BLAKE2b-256 c29c9029814c48c685cee787527a60f3f0e8b7de7a04fb728db2ec6048ce90cb

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