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:
- Create and activate a Python virtual environment:
python3 -m venv env
source env/bin/activate # On Windows use `env\Scripts\activate`
- Install the package from PyPI or Locally:
pip install --upgrade pip
pip install file-organizer-advanced
# Or for local development:
pip install -e .
- Run the CLI tool to organize a folder:
file-organizer-advanced /path/to/folder
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14552ec0e781955d633e4e7db5867336de22e13b0405b6eb48dbfae5149a8bf6
|
|
| MD5 |
5520da4ab3714501950c2579b7478265
|
|
| BLAKE2b-256 |
24bf8291c460d6a39b0e788c68cf8c4008174634971481009e265e1c1a1c2e87
|
File details
Details for the file file_organizer_advanced-1.0.2-py3-none-any.whl.
File metadata
- Download URL: file_organizer_advanced-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f111a724b05343edb4cae4c48186cc00b484fa4387a7323857724075d620776f
|
|
| MD5 |
02571603561a0d65e9b7750eaea31c46
|
|
| BLAKE2b-256 |
d95ffd0986096284ce24eced3ce5e0c193a3bb45c2212267f7d658fa22a55049
|