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.1.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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zpace-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b2e36fbe0d3515e84d14508df28c51ae25b10b3c2db1b5efbc461da6c371f810
MD5 a58a0beb66f56df6e5de7b25aec36cab
BLAKE2b-256 6c0bd9480507884ea60da0df2df406779397779492a878e172f0084cb42ad50e

See more details on using hashes here.

Provenance

The following attestation bundles were made for zpace-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: zpace-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 061385cc4888a129e6d8bef853f5d65cb87bef095838aee10654d62b4eebdaf5
MD5 2f99d19608d29e29b20bc9854a9bdf88
BLAKE2b-256 ece9b31dbcf5f5204ad4652d99276775c84049fd6d6b16efbd2f3841f2ac8e53

See more details on using hashes here.

Provenance

The following attestation bundles were made for zpace-0.1.1-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