Skip to main content

A CLI tool to automatically organize files into categorized folders

Project description

File Organizer

A Python script to automatically organize files in a specified folder into categorized subfolders based on file types.

Features

  • Automatically moves files into folders like Documents, Images, Videos, Audio, Archives, Apps, and Others.
  • Supports organizing any folder by providing the path as a CLI argument or via interactive prompt.
  • Non-destructive: existing folders and files not matched by categories remain unaffected.
  • Easy to use and extend with more file type categories.
  • Installable from PyPI for easy setup.

Installation

Install the latest release from PyPI:

pip install file-organizer-advanced

Usage

Run the CLI command to organize your files:

file-organizer-advanced

By default, it organizes your Downloads folder. To specify a different folder:

Example:

file-organizer-advanced /Users/username/Downloads

Development and Testing (Optional)

If you want to contribute or test the package locally, follow these steps:

  1. Create and activate a Python virtual environment:
python3 -m venv env
source env/bin/activate   # On Windows use `env\Scripts\activate`
  1. Install the package from PyPI or Locally:
pip install --upgrade pip
pip install file-organizer-advanced
# Or for local development:
pip install -e .
  1. Run the CLI tool to organize a folder:
file-organizer-advanced /path/to/folder
  1. When done, deactivate the environment:
deactivate

How it works

  • Scans the target folder.
  • Detects file types based on extensions.
  • Moves files into corresponding folders.
  • Creates folders if they don’t exist.

Notes

  • Running the CLI multiple times will not affect already organized files.
  • The CLI does not modify files inside existing subfolders.
  • Files without known extensions are moved to the Others folder.

Sample Output:

✅ Moved: example.pdf → Documents ✅ Moved: vacation.jpg → Images ✅ Moved: project.zip → Archives ✅ Moved: app.dmg → Apps

📂 Folder '/Users/username/Downloads' organized successfully!

Screenshot

Script Output Screenshot

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

file_organizer_advanced-1.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

file_organizer_advanced-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file file_organizer_advanced-1.0.2.tar.gz.

File metadata

  • Download URL: file_organizer_advanced-1.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for file_organizer_advanced-1.0.2.tar.gz
Algorithm Hash digest
SHA256 14552ec0e781955d633e4e7db5867336de22e13b0405b6eb48dbfae5149a8bf6
MD5 5520da4ab3714501950c2579b7478265
BLAKE2b-256 24bf8291c460d6a39b0e788c68cf8c4008174634971481009e265e1c1a1c2e87

See more details on using hashes here.

File details

Details for the file file_organizer_advanced-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for file_organizer_advanced-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f111a724b05343edb4cae4c48186cc00b484fa4387a7323857724075d620776f
MD5 02571603561a0d65e9b7750eaea31c46
BLAKE2b-256 d95ffd0986096284ce24eced3ce5e0c193a3bb45c2212267f7d658fa22a55049

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