duBE — du But Easier
Find what is eating your disk in one command. duBE is a friendlier du: cumulative sizes,
percentage bars, a tree view, top-N, human-friendly filters and JSON output — with the same totals as du.
✨ Features
- 📊 Percentage bars — see at a glance which directory dominates
- 🏆 Top-N —
dube / --top 10lists the biggest offenders, nothing else - 🌲 Tree view — directory hierarchy with cumulative sizes per branch
- 🎯 Human filters —
--threshold 100M,--exclude node_modules,--exclude '*.iso',-z - ✅ Accurate like
du— cumulative sizes, hard links counted once, symlink loops detected - 🧭 Depth control —
--max-depthlimits what is shown, never what is counted - 🤖 JSON output — sizes in bytes for scripts and monitoring
- 🔇 Script-friendly — plain output when piped, warnings on stderr,
NO_COLORsupport
📥 Installation
pip install dube
Or from source:
git clone https://github.com/serber-info/duBE.git
cd duBE
pip install -e .
🎨 Examples
Biggest entries
dube project --top 5
╔══════════════════════════════════════════════╗
║ duBE · /home/user/project ║
╚══════════════════════════════════════════════╝
1.3 GB ████████░░░░ 66.0% project/logs/
479.0 MB ███░░░░░░░░░ 24.3% project/node_modules/
312.0 MB ██░░░░░░░░░░ 15.8% project/node_modules/typescript/
188.0 MB █░░░░░░░░░░░ 9.5% project/.git/
188.0 MB █░░░░░░░░░░░ 9.5% project/.git/objects/
────────────────────────────────────────────────────────────────────────
1.9 GB Total project
Tree view
dube project --tree --max-depth 2
╔══════════════════════════════════════════════╗
║ duBE · /home/user/project · tree ║
╚══════════════════════════════════════════════╝
1.9 GB project
188.0 MB ├── .git/
188.0 MB │ └── objects/
2.3 MB ├── dist/
1.3 GB ├── logs/
479.0 MB ├── node_modules/
21.0 MB │ ├── react/
312.0 MB │ ├── typescript/
146.0 MB │ └── webpack/
730.1 KB └── src/
640.1 KB └── components/
────────────────────────────────────────────────────────────────────────
1.9 GB Total project
More
dube /var/log --sort desc --time # largest first, with modification dates
dube /home -a --threshold 1G # every file or directory of 1 GB or more
dube / -x --top 20 # stay on the root filesystem
dube . --exclude node_modules --exclude .git
dube /srv --json | jq '.entries[] | select(.size > 1e9) | .path'
🛠 Options
| Option | Description |
|---|---|
directory |
Directory to analyse (default: .) |
-n, --top N |
Show only the N largest entries |
-t, --tree |
Show a tree with cumulative sizes |
-d, --max-depth N |
Only show entries up to N levels deep (totals still include everything) |
-a, --all |
Include individual files |
--sort asc|desc |
Sort by size (default: by path) |
--threshold SIZE |
Only entries ≥ SIZE (100M, 1.5G); negative = ≤ |SIZE| |
-z, --exclude-zero |
Hide zero-size entries |
--exclude PATTERN |
Skip a path (/var/cache) or name pattern (node_modules, *.iso). Repeatable |
--no-default-excludes |
Also scan /proc, /sys, /dev, /run, /mnt, /media, /lost+found |
--apparent-size |
Use file sizes instead of disk blocks used |
-L, --follow-symlinks |
Follow symbolic links (loops are detected) |
-x, --same-filesystem |
Do not cross into other mounted filesystems |
--time / --time-style FMT |
Show modification time (iso, long-iso, full-iso, +%d/%m/%Y) |
--json |
JSON output, sizes in bytes |
--block-size BYTES |
Unit for plain --threshold numbers (default 1024) |
-v, --version |
Show version |
Directories that cannot be read are counted and reported on stderr — run with sudo for complete totals.
🧪 Development
pip install -e ".[dev]"
ruff check .
pytest
See CHANGELOG.md for release notes.
📝 License
MIT — see LICENSE.
💬 Feedback
Open an issue or reach out via GitHub.
🌐 Connect
Metadata
Release files for dube 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dube-2.1.1.tar.gz | 12.0 kB | Without provenance | Details for dube-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dube-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for dube-2.1.1-py3-none-any.whl |
Total release size: 22.2 kB
Release files / dube-2.1.1.tar.gz
| Download URL | dube-2.1.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca68f2feeabd5047d5544eda6048ebc15f4f068e964d3bc599d25e15093af68c
|
|
BLAKE2b-256 checksum How to use checksums |
49a895d5959defbb38e33c3f3090700b1ae8f098b559b0ed1077a4a5006aa9d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dube-2.1.1-py3-none-any.whl
| Download URL | dube-2.1.1-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67ec72d1940676e854c103a5cab6441389b1f6286a39b6493492890814e92d48
|
|
BLAKE2b-256 checksum How to use checksums |
edd7c9d10ac71958d49abddc4d4e0925611c7fad4074a68865905b380b9dafd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dube 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.