Main - Module responsible for the main program. Parses the arguments and calls the other modules.
Project description
ChangeMediaName
Tool that changes media files to its creation date.
Installation
pip install cmn
Usage
cmn -i <input-files> [options]
Options
Option 1 | Option 2 | Description |
---|---|---|
h | help | Show this help message and exit |
i | input-files | Required. File(s) or folder(s) to scan |
v | verbose | Default: False . Verbose mode |
r | recursive | Default: False . Scan folders recursively |
ni | ignored-paths | Default: None . Files or folders to be ignored |
nr | not-ignore-subfolders | Default: True . Choose to not ignore subfolders of the ignored paths |
t | file-types | Default: None . List of file types to consider |
nt | not-file-types | Default: None . List of file types to ignore |
of | only-images | Default: False . Consider only images |
ov | only-videos | Default: False . Consider only videos |
cf | create-new-folders | Default: False . Create new folders according to the new image names |
fn | name-format | Default: %Y%m%d_%H%M%S . Format of the new names |
ff | name-folder-format | Default: %Y - %m - %d . Format of the new folder names |
Supported file types
Type | Extension | Name |
---|---|---|
Image | HEIC | High Efficiency Image File Format |
Image | JPEG | Joint Photographic Experts Group File Format |
Image | JPG | Joint Photographic Group File Format |
Image | PNG | Portable Network Graphics File Format |
Image | WEBP | WebP Image File Format |
Video | AVI | Audio Video Interleave |
Video | AVI | Audio Video Interleave |
Video | MP4 | MPEG-4 Part 14 |
Requirements
- Install
exiftool
command from https://exiftool.org/. Credits to Phil Harvey.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmn-2.0.0.tar.gz
(12.1 kB
view details)
Built Distribution
cmn-2.0.0-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file cmn-2.0.0.tar.gz
.
File metadata
- Download URL: cmn-2.0.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa26db407746c9a0ae4602c1ad90ebc5aff9ea02c7fad7b643ad79f99ce10211 |
|
MD5 | 23590b533faaa8859de2438a1d23b0ad |
|
BLAKE2b-256 | 36807c67fd76a2e96b502dfb3284337e85552f64db9e5cf6f0e26a73693fe4ba |
File details
Details for the file cmn-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: cmn-2.0.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddbe5716c83fb9d662109c84741448448464be3e01ce09d0d47c1dc005935a43 |
|
MD5 | 71b937a717c393b87d834cf157d43149 |
|
BLAKE2b-256 | 010a1fb7be15321f92e34ccca526958e12859ddfa931f0c2e791321129038a75 |