Metadata-Version: 2.1
Name: mediasorter
Version: 0.1.3
Summary: A tool to sort and copy images/videos to a defined directory structure.
Home-page: https://github.com/shireenrao/mediasorter
Author: Srinivas Nyayapati
Author-email: shireenrao@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.6.1
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click (>=8.0.3)
Requires-Dist: tqdm (>=4.62.3)
Requires-Dist: filetype
Requires-Dist: exifread
Requires-Dist: pillow
Requires-Dist: hachoir
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'

# 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.


