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
- 🐛 Report a bug
- 💡 Request a feature
- ⭐ Star the repo if you find it useful!
Made with love for people tired of full disks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e36fbe0d3515e84d14508df28c51ae25b10b3c2db1b5efbc461da6c371f810
|
|
| MD5 |
a58a0beb66f56df6e5de7b25aec36cab
|
|
| BLAKE2b-256 |
6c0bd9480507884ea60da0df2df406779397779492a878e172f0084cb42ad50e
|
Provenance
The following attestation bundles were made for zpace-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on AzisK/Zpace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zpace-0.1.1.tar.gz -
Subject digest:
b2e36fbe0d3515e84d14508df28c51ae25b10b3c2db1b5efbc461da6c371f810 - Sigstore transparency entry: 634683479
- Sigstore integration time:
-
Permalink:
AzisK/Zpace@4b98e7a83e80b51b6f7c2398adddc97bdd35959f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/AzisK
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@4b98e7a83e80b51b6f7c2398adddc97bdd35959f -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
061385cc4888a129e6d8bef853f5d65cb87bef095838aee10654d62b4eebdaf5
|
|
| MD5 |
2f99d19608d29e29b20bc9854a9bdf88
|
|
| BLAKE2b-256 |
ece9b31dbcf5f5204ad4652d99276775c84049fd6d6b16efbd2f3841f2ac8e53
|
Provenance
The following attestation bundles were made for zpace-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on AzisK/Zpace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zpace-0.1.1-py3-none-any.whl -
Subject digest:
061385cc4888a129e6d8bef853f5d65cb87bef095838aee10654d62b4eebdaf5 - Sigstore transparency entry: 634683533
- Sigstore integration time:
-
Permalink:
AzisK/Zpace@4b98e7a83e80b51b6f7c2398adddc97bdd35959f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/AzisK
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@4b98e7a83e80b51b6f7c2398adddc97bdd35959f -
Trigger Event:
push
-
Statement type: