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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mediasorter-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8a767868bf0b82d74e58856f550f3c306d4317ab73a13cef4f43645c634fcaa4
MD5 77e55b6856fa5ecf00e10006ea22708e
BLAKE2b-256 4e90c053cc14eee682b2b6d0bcd7d71a179e0280ce732cb9eebe08e1a8874ae9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mediasorter-0.1.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1b1f3d54a8cc8838b9b69155608cf23a479ac7218b2d3f8911ef445acf809e91
MD5 0f127e68a2237d08c0c0450a5aed87a8
BLAKE2b-256 b92e4485830b245c098c57667f27777c9560f87bebb045810cb406dff8a2f5b4

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