An ultra-modern, terminal-based cache cleaner and disk monitoring tool for developers. Built with Python, it not only cleans up gigabytes of junk (__pycache__, .pyc, pip cache, Temp files) but also acts as a beautiful visual disk monitor with OS-level notifications.
- 🎨 Stunning UI: Powered by
rich, featuring beautiful tables, colors, and smooth progress bars. - 💽 Disk Monitoring: Real-time visual drive storage status across all mounted drives.
- 🔔 OS Notifications: Alerts you instantly if any drive is running dangerously low on space (< 10% or < 5GB).
- 🧹 Deep Cleaning: Safely identifies and removes:
- Python
__pycache__folders - Python
.pyccompiled files pipcache- System and User
Tempfolders
- Python
- 🛡️ Safe Operations: Built-in
--dry-runmode to see what would be deleted without actually touching your files. - ⏱️ Smart Estimations: Calculates estimated deletion time based on cache size.
- 📝 Logging: Automatically logs all cleanup activities to
cache_cleanup_log.txt.
- Clone the repository:
git clone https://github.com/iamnomandra/advanced-cache-cleaner.git cd advanced-cache-cleaner - Install the required dependencies:
pip install rich psutil plyer
Use these arguments to automate the cleaning process or integrate it into your scripts:
| Argument | Description | Example Usage |
|---|---|---|
--dry-run |
Preview what will be deleted without actually deleting anything. | python clear_cache.py --all --dry-run |
--all |
Clean all available caches automatically without any prompts. | python clear_cache.py --all |
--only [TARGET] |
Target a specific cache. Choices: pip, temp, pyc, pycache. |
python clear_cache.py --only temp |
--silent |
Suppress success messages (best for background/cron jobs). | python clear_cache.py --all --silent |
- Feel free to open an Issue or start a Discussion on GitHub.
🚀 Ready to improve your
CLI debugging?
💡 Found this useful? Give it a ⭐ and share with your
Python friends!
🖂 Contact me any help
- MIT License
Free to use, modify, and enhance in your own projects.
