Skip to main content

A powerful disk usage analyzer with iCloud support

Project description

reclaimed 🌟

A powerful and user-friendly command-line tool for analyzing disk usage, with special handling for iCloud storage on macOS. Quickly find your largest files and directories with a beautiful, color-coded interface, and manage them with an interactive terminal UI.

Features

  • 🚀 Fast recursive directory scanning, legitimately performant and batches progress updates efficiently
  • ☁️ Smart detection of iCloud vs local storage which is nice on the macbook
  • 📊 Beautiful UI (utilizing Textualize/rich and Textualize/textual libraries)
  • 🖥️ Interactive terminal UI for browsing and managing files/directories
  • 🗑️ Delete large files and directories directly from the interface
  • 💾 Export results to JSON for further analysis or batch operations
  • ⚡️ Real-time progress indication
  • 🛡️ Graceful handling of permission issues
image

Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)
  • Technically not a venv but if you aren't using a venv you're generally doing python wrong

Using pip (preferred)

pip install reclaimed

From Source

git clone https://github.com/taylorwilsdon/reclaimed.git
cd reclaimed
pip install -r requirements.txt
hatch shell

Usage

Basic usage:

reclaimed ~/Documents

Advanced options:

# Show more results
reclaimed ~/Documents --files 20 --dirs 15

# Save results to JSON
reclaimed ~/Documents --output results.json

Options

  • PATH: Directory to scan (default: current directory)
  • -f, --files N: Number of largest files to show (default: 10)
  • -d, --dirs N: Number of largest directories to show (default: 10)
  • -o, --output FILE: Save results to JSON file
  • -i, --interactive: Launch the interactive Textual UI

Output

CLI Mode

The tool provides:

  • A real-time progress indicator showing files scanned and total size
  • Two tables showing the largest files and directories
  • Clear indication of iCloud vs local storage
  • Summary of any access issues encountered

Interactive Mode

The interactive UI provides:

  • Tabbed interface to switch between files and directories views
  • Keyboard navigation (arrow keys) to browse through items
  • Ability to sort items by size, name, or path
  • File/directory deletion with confirmation dialog
  • Refresh capability to update the scan results

Development

This project uses Hatch for development workflow management.

Setup Development Environment

pip install -r requirements.txt
hatch shell

Common Commands

# Run tests
hatch run test

# Run tests with coverage
hatch run test-cov

# Run linting (black, ruff, mypy)
hatch run lint

# Build distribution packages
hatch build

# Run with interactive UI
python -m reclaimed /path/to/scan

Interactive Mode

The interactive mode launches automatically, or with the -i or --interactive flag:

reclaim ~/Documents -i

Non-interactive mode can be enabled (prints a simpler output with very low overhead) with --no-interactive

reclaim ~/Documents --no-interactive

Keyboard Shortcuts

Key Action
F Switch to Files view
D Switch to Directories view
S Sort items
R Refresh scan
Delete Delete selected item
? Show help
Q Quit application
Arrow keys Navigate through items

Features

  • Tabbed Interface: Toggle between Files and Directories views
  • Sorting: Sort items by size (default), name, or path
  • File Management: Delete files and directories with confirmation
  • Solarized Dark Theme: Easy on the eyes for extended use

Contributing

Contributions are welcome! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

reclaimed-0.1.5.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

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

reclaimed-0.1.5-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file reclaimed-0.1.5.tar.gz.

File metadata

  • Download URL: reclaimed-0.1.5.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for reclaimed-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1a045f09a6b593fac351d4c2d87cad37496ca1e94f3507a50771429c218e67a7
MD5 8b4d4a81438a49517d26de7e87a4e54b
BLAKE2b-256 dbd5445cab13f96ee30f83e34b134a9452a8b71ee6dc586f8bacd1042984bfff

See more details on using hashes here.

File details

Details for the file reclaimed-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: reclaimed-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 42.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for reclaimed-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a9dd75d51e6246c408bde98d242d93d22094ee8b855f046d5418f87c9dec119
MD5 300c3f6c7bdffc7ee9a1c795a88fc11c
BLAKE2b-256 7fb16457000dacab80f7d390620ee595055fe3153625b9b68a9e03b8fcb1f47d

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