DEV Community

Cover image for πŸš€ Automate Your Daily Tasks with This Handy Python Script (Free & Open Source)
Hopeful Apprentice
Hopeful Apprentice

Posted on

πŸš€ Automate Your Daily Tasks with This Handy Python Script (Free & Open Source)

Do you often find yourself manually cleaning up your messy desktop?

I built a small Python script that organizes your desktop by sorting files into folders by type (images, docs, videos, etc). It takes a few seconds to run and instantly gives your workspace a clean look β€” no more chaos!

πŸ”§ What It Does
This script scans a folder (your desktop or any other) and moves files into categorized subfolders:

πŸ–Ό Images (PNG, JPG, JPEG, GIF)

πŸ“„ Documents (PDF, DOCX, TXT, XLSX)

🎞 Videos (MP4, MOV, AVI)

πŸ“¦ Archives (ZIP, RAR)

πŸ’» How to Use It
python desktop_cleaner.py
# β†’ Enter the path to your desktop (e.g., C:\Users\YourName\Desktop)
That’s it. It will automatically sort files into folders within that path.

πŸ’‘ Why I Made It
This is one of several utility scripts I’ve written to automate small daily tasks. The idea is to save 5–10 minutes a day on repetitive stuff and free your mind for more creative work.

I’ve bundled 5 such scripts into a free/open pack:

Script Purpose
πŸ“Š excel_analyzer.py Summarizes Excel columns (amounts, scores)
πŸ—‚ bulk_renamer.py Renames multiple files using a prefix
🌐 api_fetcher.py Fetches JSON from APIs and saves as CSV
🧹 desktop_cleaner.py Sorts files into folders
πŸ–Ό image_resizer.py Resizes all images in a folder

πŸ“¦ Get the Full Pack
GitHub (Free & Open):
πŸ‘‰ https://github.com/Lunsy/desktopCleanerPublic.git

I also made a Gumroad version with a README and one-click download:
🎁 https://lunsy.gumroad.com/l/python-automation-pack

🧠 Thoughts?
I’d love feedback, especially on what other small scripts could be useful. I plan to expand the pack over time.

Happy automating!
Lunsy

Top comments (0)