Skip to main content

A CLI tool to organize files based on file type and extension.

Project description

📁 file-organizer-cli

A Python command-line utility to organize messy folders — clean up files by extension into neat subfolders like Images, Documents, Code, and more.


🚀 Features

  • ✅ Organize files by extension (e.g. .jpg, .pdf, .mp3)
  • ✅ Dry-run mode (simulate before actually moving files)
  • ✅ Colored console output using rich
  • ✅ Lightweight and easy to run
  • ✅ Clean, readable CLI interface

📦 Installation

pip install rich

No need for PyPI — just clone the repo and run via Python.


💻 Usage

python main.py --path /your/folder

Example with dry-run mode:

python main.py --path ~/Downloads --dry-run

🧪 Command-Line Arguments

Argument Description
--path Target folder to organize (required)
--dry-run Show what would move, without doing it

🛠️ Extension Mapping (Default)

Category Extensions
Images .jpg, .jpeg, .png, .gif
Documents .pdf, .docx, .txt, .xlsx
Music .mp3, .wav
Code .py, .js, .html, .css
Archives .zip, .tar, .gz
Videos .mp4, .mov, .avi
Others Everything else

🧑‍💻 Developer Info


📝 License

Licensed under the MIT License.


🙌 Contributions

PRs and suggestions are welcome!
This is just the beginning — more features coming soon:

  • Recursive mode
  • Organize by date
  • Configurable mappings
  • Undo/rollback mode
  • Logging and summaries

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

folder_organizer_tool-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

folder_organizer_tool-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file folder_organizer_tool-1.0.0.tar.gz.

File metadata

  • Download URL: folder_organizer_tool-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for folder_organizer_tool-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ea90a56dfa7f9fbe665573edbca73335cfa45c3c5ce00e66d3af98add6abe7f0
MD5 cbe990d6f3618b9b716c21f9ad528f93
BLAKE2b-256 c7f422e21f0b8af525fa5146e58eb725eb278eb49d613bbd14c80118e3e87ccc

See more details on using hashes here.

File details

Details for the file folder_organizer_tool-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for folder_organizer_tool-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f18db9394d78f3d6feeaedcad2c657b332324285db3876229d7e920324d6e101
MD5 4282684c4d660edde52c978b430ecd01
BLAKE2b-256 03e07612ca59c5046389aba2433417742eb6319d61db10d2cbc7b353f25d13f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page