Minimal CLI tool to find, classify, rename, and move video files.
Project description
video-sweep
Minimal CLI tool to find, classify (movie/series), rename, and move video files to user-specified locations. Optionally, clean up non-video files.
Features
- Finds video files (.mp4, .mkv, .avi)
- Classifies as movie or series
- Renames and moves files
- Movies:
Title [Year].extto the movie output folder - Series:
SeriesName SxxEyy.exttoseries_output/SeriesName/Season N/- Example:
SeriesName (2014) - S04E01 -EpisodeTitle.mkv→SeriesName S04E01.mkvinseries_output/SeriesName/Season 4/
- Example:
- Movies:
- Cleans up non-video files (optional)
- All paths provided via CLI arguments or config
- Basic error handling and console warnings for skipped files
- Dry run mode for safe preview
- Console table output with color-coded type column (movies: yellow, series: blue)
Installation
pip install video-sweep
Usage
video-sweep --source <source_folder> --series-output <series_folder> --movie-output <movie_folder> [--clean-up] [--dry-run] [--config <file>] [--init-config <file>]
--clean-up: Permanently delete non-video files in the source folder (shows a table of files to be deleted).--dry-run: Preview all actions without moving or deleting any files (safe to use with or without --clean-up).--config <file>: Load options from a TOML config file. If not specified, config.toml in the current directory is used if present.--init-config <file>: Generate a sample TOML config file at the given path and exit.
Example config.toml
source = "D:/Downloads"
series_output = "D:/Media/Series"
movie_output = "D:/Media/Movies"
clean_up = true
dry_run = false
Examples
video-sweep --source "D:/Downloads" --series-output "D:/Media/Series" --movie-output "D:/Media/Movies"
# Use a config file
video-sweep --config config.toml
# Generate a sample config file
video-sweep --init-config config.toml
# Preview all actions (no files moved or deleted)
video-sweep --source "D:/Downloads" --series-output "D:/Media/Series" --movie-output "D:/Media/Movies" --dry-run
# Move/rename video files and permanently delete non-video files
video-sweep --source "D:/Downloads" --series-output "D:/Media/Series" --movie-output "D:/Media/Movies" --clean-up
# Preview all actions, including cleanup (no files moved or deleted)
video-sweep --source "D:/Downloads" --series-output "D:/Media/Series" --movie-output "D:/Media/Movies" --clean-up --dry-run
License
MIT
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
video_sweep-0.1.0.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file video_sweep-0.1.0.tar.gz.
File metadata
- Download URL: video_sweep-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8352d256591b57334f6d0155b1cf94ce68ddb7fd4a408f173529c9c4e7300a90
|
|
| MD5 |
471373ba75b1362a7f5ae2ba38434bfa
|
|
| BLAKE2b-256 |
7c1e4fc1ad895294c7361f3c44cf3c802a928427ab1d739994febd314e3a3d3b
|
File details
Details for the file video_sweep-0.1.0-py3-none-any.whl.
File metadata
- Download URL: video_sweep-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6c9cdde9132f22f5e07f0a7293db8d47d50f44f6c9dfac7d4a1c3c2ba2841d0
|
|
| MD5 |
085d0f25c90cf8b49f884db7be3c0a48
|
|
| BLAKE2b-256 |
fae89a599e2e55878cb9c82cee13905b47252eef402244b1a420a8a84db1d8fa
|