Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‚ AI File Organizer

Turn a messy folder into tidy categories in one command. Images, Videos, Music, Documents, Archives, Code & more β€” pure Python, zero dependencies.

Python Dependencies Tests License CI


✨ Features

  • πŸš€ One-command cleanup β€” python organizer.py ~/Downloads and you're done
  • πŸ‘€ Dry-run mode β€” preview every move before anything changes (--dry-run)
  • πŸ›‘οΈ Never overwrites β€” collisions become file_1.ext, file_2.ext, …
  • πŸ™ˆ Smart skips β€” ignores subfolders, hidden files (unless --include-hidden) and itself
  • 🌍 Cross-platform β€” Windows, Linux, macOS
  • 🐍 Stdlib only β€” no pip install needed, ever

πŸ“¦ Categories

Folder Extensions
Images png, jpg, jpeg, gif, bmp, webp, svg, ico, heic
Videos mp4, mkv, avi, mov, webm, flv, wmv
Music mp3, wav, flac, aac, ogg, m4a
Documents pdf, docx, txt, pptx, xlsx, csv, md, epub, …
Archives zip, rar, 7z, tar, gz, bz2, xz
Code py, js, ts, html, css, java, json, sh, sql, …
Apps exe, msi, dmg, pkg, deb, apk, …
Fonts ttf, otf, woff, woff2
Others everything else

πŸš€ Quickstart

git clone https://github.com/DeveloperAmiri/AI-File-Organizer.git
cd AI-File-Organizer

# preview first (recommended)
python organizer.py ~/Downloads --dry-run

# actually organize
python organizer.py ~/Downloads --verbose

No arguments? It will simply ask for a folder path.

usage: organizer.py [--dry-run] [--include-hidden] [--verbose] [folder]

πŸ§ͺ Tests

python -m pytest tests/ -q   # 7 tests, no extra deps (uses tmp_path)

πŸ—‚οΈ Project structure

AI-File-Organizer/
β”œβ”€β”€ organizer.py        CLI + organize() / categorize() logic
β”œβ”€β”€ tests/              pytest suite (tmp_path based)
β”œβ”€β”€ requirements.txt    empty β€” stdlib only
└── README.md

🀝 Contributing

Pull requests welcome β€” fork, branch, PR. Please keep it dependency-free.

πŸ“„ License

MIT β€” see LICENSE.

About

πŸ“‚ Lightweight Python file organizer β€” auto-sort files into Images, Videos, Music, Docs & more. Zero dependencies

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages