Skip to main content

A CLI tool to discover what's consuming your disk space

Project description

Zpace

A CLI tool to discover what's hogging your disk space!

The tool shows the largest files in each category of files (videos, pictures, documents etc.) as well as the largest special directories as apps in MacOS, Python virtual environments, node_modules etc.

It's built to indentify the biggest chunks of that could potentially up the space for something else.

Usage

Basic Commands

# Scan your home directory (default)
zpace

# Scan a specific directory
zpace /path/to/directory

# Scan current directory
zpace .

Options

# Show top 20 items per category (default: 10)
zpace -n 20

# Set minimum file size to 1MB (default: 100KB)
zpace -m 1024

# Combine options
zpace ~/Documents -n 15 -m 500

Tips

# Find all node_modules directories
zpace ~ -n 50 | grep "node_modules"

# Check what's in a specific directory
zpace ~/.cache

# Find largest files system-wide (requires sudo)
sudo zpace / -n 20

Development

Setup

# Clone the repository
git clone https://github.com/azisk/zpace.git
cd zpace

# Install dependencies
uv sync

# Run locally
uv run python main.py

Code Quality

The project uses Ruff for linting, formatting, and import sorting:

# Format code
uv run ruff format

# Lint code
uv run ruff check

# Fix auto-fixable issues
uv run ruff check --fix

# Run all pre-commit checks manually
uv run pre-commit run --all-files

Testing

# Run tests
uv run pytest test_main.py -v

# Test across multiple Python versions (optional)
./testVersions.sh

Project Structure

zpace/
├── main.py           # Main application code
├── pyproject.toml    # Project configuration
├── README.md         # This file
└── CHANGELOG.md      # Version history

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

Apacha 2.0 License

Support


Made with love for people tired of full disks

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

zpace-0.1.0.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

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

zpace-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file zpace-0.1.0.tar.gz.

File metadata

  • Download URL: zpace-0.1.0.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zpace-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4877c936f65cc4d244f90eed93195a45fd0b46eb94440442cf39b7e1523d7662
MD5 3090a1d81aaa1b5efa79be28682f56d7
BLAKE2b-256 7dde0b5169395ceaf00867d2007ab63f7d4b9ff4cc832b29cba79b0d63c6c35d

See more details on using hashes here.

Provenance

The following attestation bundles were made for zpace-0.1.0.tar.gz:

Publisher: publish-pypi.yml on AzisK/Zpace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zpace-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zpace-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zpace-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea99bebd8745c2b03b47a9a591d19b18b27c23b106822f88381b2f3e69233d7d
MD5 8789fa64b54017b901d23aa9a51ac8cb
BLAKE2b-256 79b3fc1e95ff99b3c064161398f6fe81b9558ed1ef144a42062b75cd83c48808

See more details on using hashes here.

Provenance

The following attestation bundles were made for zpace-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on AzisK/Zpace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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