π§Ή One Click System Cleaner App using Python – Clean Temp, Cache, and Log Files | FuzzuTech
Demo :
Click Video πππ
App Name: One Click System Cleaner – FuzzuTech
Tech Stack: Python, CustomTkinter, Tkinter, OS, Shutil
Purpose: Clean Temp Files, Cache, and Log Files with a Single Click
Highlights:
-
π» Dark Hacker GUI
-
π§Ή Clean Windows Cache, Chrome Cache, and .log files
-
π§ Useful for Developers, Coders, and PC Users
-
π§ Fully Offline Utility
-
⚡ Fast Execution | Smooth UI | 100% Python
✨ Created by [FuzzuTech] – Subscribe on YouTube for more Viral Python Projects!
π₯ Watch the full demo
Code :
import customtkinter as ctk
import os, shutil
from tkinter import messagebox
# π§ UI Appearance Setup
ctk.set_appearance_mode("dark")
ctk.set_default_color_theme("green")
# ✅ Temp Cleaner
def clean_temp():
try:
temp = os.getenv('TEMP')
for root, dirs, files in os.walk(temp):
for file in files:
try: os.remove(os.path.join(root, file))
except: pass
messagebox.showinfo("Done ✅", "Temp files cleaned successfully!")
except Exception as e:
messagebox.showerror("Error", str(e))
# ✅ Cache Cleaner
def clean_cache():
try:
paths = [
os.path.expanduser("~\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cache"),
os.path.expanduser("~\\AppData\\Local\\Microsoft\\Windows\\INetCache")
]
for path in paths:
if os.path.exists(path):
shutil.rmtree(path, ignore_errors=True)
messagebox.showinfo("Done ✅", "Cache cleaned successfully!")
except Exception as e:
messagebox.showerror("Error", str(e))
# ✅ Log Cleaner
def clean_logs():
try:
log_path = os.path.expanduser("~\\AppData\\Local\\Temp")
count = 0
for file in os.listdir(log_path):
if file.endswith(".log"):
try:
os.remove(os.path.join(log_path, file))
count += 1
except:
pass
messagebox.showinfo("Done ✅", f"{count} log files deleted!")
except Exception as e:
messagebox.showerror("Error", str(e))
# π₯️ App Layout
app = ctk.CTk()
app.geometry("500x420")
app.title("π§Ή One Click System Cleaner - FuzzuTech")
ctk.CTkLabel(app, text="π§Ό System Cleanup Utility", font=ctk.CTkFont(size=24, weight="bold")).pack(pady=20)
ctk.CTkButton(app, text="π Clean Temp Files", command=clean_temp, width=280, height=45).pack(pady=10)
ctk.CTkButton(app, text="π§© Clean Browser Cache", command=clean_cache, width=280, height=45).pack(pady=10)
ctk.CTkButton(app, text="π§Ύ Clean Log Files", command=clean_logs, width=280, height=45).pack(pady=10)
ctk.CTkLabel(app, text="✨ Developed by FuzzuTech", font=ctk.CTkFont(size=14)).pack(pady=20)
app.mainloop()
Comments
Post a Comment