Skip to main content

A lazy way to find what's eating your disk space - by TheLazyIndianTechie

Project description

lazyscan 🚀

A lazy way to find what's eating your disk space - now with powerful cache cleaning!

Created by TheLazyIndianTechie - for the lazy developer in all of us.

Features

  • Fast disk scanning - Find the biggest files in any directory
  • Visual progress bars - See file sizes at a glance with cyberpunk-style bars
  • Interactive mode - Too lazy to type paths? Use -i to select directories
  • macOS cache cleaner - Clean system caches with --macos
  • App-specific cleaners - Clean caches for:
    • Chrome (--chrome)
    • Safari (--safari)
    • Firefox (--firefox)
    • Slack (--slack)
    • Discord (--discord)
    • Spotify (--spotify)
    • VS Code (--vscode)
    • Zoom (--zoom)
    • Microsoft Teams (--teams)
    • Perplexity AI (--perplexity)
    • Dia (--dia)

Installation

Method 1: Using pipx (Recommended for macOS/Linux)

# Install pipx if you haven't already
brew install pipx  # macOS
# or
sudo apt install pipx  # Ubuntu/Debian
# or
python3 -m pip install --user pipx  # Other systems

# Ensure pipx is in PATH
pipx ensurepath

# Install lazyscan
pipx install git+https://github.com/TheLazyIndianTechie/lazyscan.git

Method 2: Using pip

pip install git+https://github.com/TheLazyIndianTechie/lazyscan.git

Method 3: Direct download (no installation needed)

# Download the script
curl -O https://raw.githubusercontent.com/TheLazyIndianTechie/lazyscan/main/lazyscan.py

# Make it executable
chmod +x lazyscan.py

# Run it
python3 lazyscan.py

Method 4: Clone and install

git clone https://github.com/TheLazyIndianTechie/lazyscan.git
cd lazyscan
pipx install .  # or pip install .

Usage

Basic disk scanning

# Scan current directory
lazyscan

# Scan specific directory
lazyscan ~/Downloads

# Interactive directory selection
lazyscan -i

# Show top 10 files instead of 20
lazyscan -n 10

# Hide the logo
lazyscan --no-logo

Cache cleaning (macOS only)

# Clean macOS system caches
lazyscan --macos

# Clean specific app caches
lazyscan --chrome    # Chrome browser
lazyscan --slack     # Slack
lazyscan --discord   # Discord
lazyscan --spotify   # Spotify
lazyscan --vscode    # VS Code
lazyscan --zoom      # Zoom (includes recorded meetings)

# Combine operations
lazyscan --macos ~/Downloads  # Clean cache then scan Downloads

Requirements

  • Python 3.6 or higher
  • macOS (for cache cleaning features)
  • Terminal with color support (recommended)

Safety

  • All cache cleaning operations show what will be deleted before proceeding
  • User confirmation is required before any deletion
  • Only known cache directories are cleaned
  • User data (bookmarks, passwords, etc.) is preserved

Contributing

Feel free to open issues or submit pull requests on GitHub!

License

MIT License - feel free to use this in your own projects!


Made with 💜 by TheLazyIndianTechie

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

lazyscan-0.2.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

lazyscan-0.2.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file lazyscan-0.2.0.tar.gz.

File metadata

  • Download URL: lazyscan-0.2.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for lazyscan-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d259bad67f9a7cf9a43beb6434af6a59406d6481b2765f1573457ade5cac442a
MD5 735c76949a4bd8d4a6d6675449b55751
BLAKE2b-256 5e001275e2108bc8d102d9274dfbae5c30164fed09b717f08f5b06f83d04c38d

See more details on using hashes here.

File details

Details for the file lazyscan-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lazyscan-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for lazyscan-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 273c9c24aae27b42407c47658afc39596f663aedf21164aa4184d1cea7fba208
MD5 323e71866c0768efb77f02dfd0db5c5d
BLAKE2b-256 03e0264ecdb1a3fabb62469e39840cf72ca42d93f4fefbd09ef6cafb39d49af1

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