EzSort
Your downloads folder is a disaster. EzSort fixes that in one command.
What does EzSort do?
It takes a messy folder and sorts every file into neat subfolders based on what kind of file it is.
Before:
Downloads/
vacation.jpg
tax-return.pdf
concert.mp4
playlist.mp3
backup.zip
setup.exe
app.py
budget.csv
presentation.pptx
.DS_Store
MyProject/
After ezsort organize ~/Downloads:
Downloads/
Images/
vacation.jpg
Documents/
tax-return.pdf
Videos/
concert.mp4
Music/
playlist.mp3
Archives/
backup.zip
Applications/
setup.exe
Code/
app.py
Spreadsheets/
budget.csv
Presentations/
presentation.pptx
MyProject/ <- untouched
No files deleted. No files overwritten. Just organized.
Install
pip install ezsort
That's it. Zero dependencies. Works on Windows, macOS, and Linux.
Quick Start
# Preview what would happen (nothing gets moved)
ezsort organize ~/Downloads --dry-run
# Actually sort the folder
ezsort organize ~/Downloads --yes
# Scan a folder to see what's in it
ezsort scan ~/Downloads
# Undo the last sort
ezsort undo
Commands
organize -- Sort a folder
ezsort organize ~/Downloads # Interactive (asks before moving)
ezsort organize ~/Downloads --yes # Skip confirmation
ezsort organize ~/Downloads --dry-run # Preview only
ezsort organize ~/Downloads -r # Include subfolders
scan -- Look without touching
ezsort scan ~/Downloads
Shows file counts by category, potential duplicates, and how many files could be organized.
watch -- Auto-sort new files
ezsort watch ~/Downloads
Keeps a folder sorted automatically. New files get moved as they appear. Press Ctrl+C to stop.
undo -- Take it back
ezsort undo
Reverses the last sort operation. Every file goes back to where it was.
history -- See what happened
ezsort history # List of past operations
ezsort history --details # Show individual files per operation
ezsort history --clear # Wipe the history
stats -- Your sorting numbers
ezsort stats
Shows total files organized and breakdown by category.
config -- View settings
ezsort config
Shows categories, custom rules, excluded directories, and preferences.
--about -- About EzSort
ezsort --about
Shows version, author, and GitHub repo info.
Flags
| Flag | What it does |
|---|---|
--help |
Show help for any command |
--version |
Print version number |
--verbose, -v |
Show detailed logs |
--quiet, -q |
Suppress extra output |
--dry-run |
Preview without moving files |
--yes, -y |
Skip confirmation prompt |
--recursive, -r |
Include subdirectories |
How it works
- Scan -- EzSort walks through your folder and finds every file
- Classify -- Each file gets matched to a category by its extension (140+ types supported)
- Plan -- It builds a list of moves, skipping files that are already in the right place
- Execute -- Files get moved into their category folders
- Record -- Everything is logged so you can undo it later
Safe by design
EzSort will never:
- Delete your files
- Overwrite existing files (duplicates get renamed:
report.pdf->report (1).pdf) - Extract archives
- Move folders (only files)
- Upload anything
- Require internet access
It skips hidden files, symlinks, and its own working directories.
Custom rules
Create a config file to add your own classification rules:
- Windows:
%APPDATA%/EzSort/config.json - Linux:
~/.config/ezsort/config.json - macOS:
~/Library/Application Support/ezsort/config.json
Example:
{
"custom_rules": [
{
"type": "extension",
"pattern": ".psd",
"category": "Design"
},
{
"type": "filename_contains",
"pattern": "invoice",
"category": "Documents/Invoices"
},
{
"type": "filename_contains",
"pattern": "college",
"category": "Education"
}
]
}
Custom rules override the default categories. Priority goes top to bottom.
Supported file types
EzSort recognizes 140+ file extensions across 12 categories:
| Category | Examples |
|---|---|
| Images | .jpg, .png, .gif, .webp, .heic, .raw, .psd |
| Videos | .mp4, .mkv, .mov, .avi, .webm |
| Music | .mp3, .wav, .flac, .m4a, .ogg |
| Documents | .pdf, .docx, .txt, .md, .rtf |
| Spreadsheets | .xlsx, .csv, .ods, .tsv |
| Presentations | .pptx, .key, .odp |
| Archives | .zip, .rar, .7z, .tar.gz, .dmg |
| Applications | .exe, .msi, .deb, .apk, .app |
| Code | .py, .js, .ts, .java, .cpp, .go, .rs, .html |
| Fonts | .ttf, .otf, .woff2 |
| Ebooks | .epub, .mobi, .azw3 |
| Torrents | .torrent |
Platform support
- Windows 10/11
- macOS 10.15+
- Linux (Ubuntu, Fedora, Debian, Arch, etc.)
- Requires Python 3.8+
Troubleshooting
"command not found: ezsort"
Make sure the package is installed:
pip install ezsort
Or run it as a Python module:
python -m ezsort organize ~/Downloads
"Permission denied"
Some system folders need elevated permissions. Try running with appropriate access for that specific folder.
Files not being organized
Add --verbose to see what's happening:
ezsort organize ~/Downloads --verbose
Development
git clone https://github.com/kritagyadubey/EzSort.git
cd EzSort
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e ".[dev]"
pytest
Contributing
Contributions welcome. See CONTRIBUTING.md for guidelines.
License
MIT License -- see LICENSE for details.
Author
Built by Kritagya Dubey
Keep Your Files Sorted, Effortlessly.
Metadata
Release files for ezsort 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ezsort-0.0.1.tar.gz | 25.6 kB | Without provenance | Details for ezsort-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ezsort-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for ezsort-0.0.1-py3-none-any.whl |
Total release size: 47.7 kB
Release files / ezsort-0.0.1.tar.gz
| Download URL | ezsort-0.0.1.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c375246d91f0114817c5a29e0a0d41049130931e690fc9df948d8afc51b346d0
|
|
BLAKE2b-256 checksum How to use checksums |
e083ca32e7eb1978d7a70efe3ae406f463ccb646139530112bc9e8c30b0d687f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / ezsort-0.0.1-py3-none-any.whl
| Download URL | ezsort-0.0.1-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ef876b69ac65b4beae88b558b6efe2e9a6c0f998b02a135de500e9b6e4fb03e
|
|
BLAKE2b-256 checksum How to use checksums |
0a54e53ddc457d894beed8ea5bd2a07da03999d076cd66436a89bcbbfc64e391
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for ezsort 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.