Skip to main content

A simple CLI that organizes messy folders by sorting files into categorized subfolders.

Project description

File Organizer CLI

A simple, zero-dependency Python CLI that organizes messy folders by sorting files into categorized subfolders.

Installation

pip install fileorganizer-cli

Usage

# Organize your Downloads folder
fileorganizer ~/Downloads

# Preview changes without moving anything
fileorganizer ~/Downloads --dry-run

# Undo the last operation
fileorganizer ~/Downloads --undo

# Check version
fileorganizer --version

Example Output

  Moved: report.pdf -> Documents/
  Moved: photo.jpg -> Images/
  Moved: song.mp3 -> Audio/
  Moved: archive.zip -> Archives/

Moved 4 file(s).
Undo log saved. Run with --undo to revert.

Features

  • Sorts files into folders: Images, Documents, Videos, Audio, Archives, Code, Executables, Fonts, Data, Other
  • Dry-run mode — preview what will happen before moving anything
  • Undo — revert the last organize operation with a single command
  • Handles filename conflicts automatically
  • Skips hidden files and subdirectories
  • No external dependencies — pure Python 3.10+

Supported Categories

Category Extensions
Images jpg, jpeg, png, gif, bmp, svg, webp, ico, tiff, heic
Documents pdf, doc, docx, xls, xlsx, ppt, pptx, txt, odt, csv, rtf
Videos mp4, mov, avi, mkv, flv, wmv, webm, m4v
Audio mp3, wav, flac, aac, ogg, wma, m4a
Archives zip, tar, gz, rar, 7z, bz2, xz
Code py, js, ts, html, css, java, c, cpp, go, rs, rb, php, sh, json, yaml, yml, xml, sql, md
Executables exe, msi, dmg, app, deb, rpm, bin
Fonts ttf, otf, woff, woff2, eot
Data db, sqlite, sqlite3, parquet, feather, hdf5
Other Everything else

License

MIT

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

messy2tidy-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

messy2tidy-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file messy2tidy-0.1.0.tar.gz.

File metadata

  • Download URL: messy2tidy-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for messy2tidy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 34777847e00a3544e61e2b08fa42c21c77ab1442af44eb97995f36b4f46df5db
MD5 f728b0efef061795ce1bdf20d8993b3c
BLAKE2b-256 8a373a58427537cca28dada7c6dbd4a3d719d337d60e3defeaed625e5d59092e

See more details on using hashes here.

File details

Details for the file messy2tidy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: messy2tidy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for messy2tidy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8f4e3148036a76c1015fd84e8cc06397289c6c27d8ccf996dfe3d25fc1650e
MD5 23d553642da8f4a246b3d8468ea79af5
BLAKE2b-256 b0edede643c3821f6f49bc09b60b55ec41e0ae80b1c64388c62755c5675df1bc

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