Skip to main content

Rust-based disk usage analyzer with histogram visualization

Project description

Dustr

Build PyPI version Crates.io License PyPI - Python Version

Dustr is a Rust-based implementation of duk, a commandline utility that shows disk usage statistics in a directory with a histogram visualization.

Introduction

Dustr provides the same functionality as duk but with a Rust backend for improved performance. It will show you a histogram of the disk usage in a directory:

Statistics of directory "." :

Size           In %   Histogram            Name
4.0 KB         1.39  #                    .gitignore
4.0 KB         1.39  #                    setup.py
4.0 KB         1.39  #                    README.md
12.0 KB        4.17  ##                   dist/
12.0 KB        4.17  ##                   dustr/
12.0 KB        4.17  ##                   build/
16.0 KB        5.56  ##                   duk.egg-info/
220.0 KB       76.39 ####################  .git/

Total directory size: 284.0 KB

Installation

From PyPI

pip install dustr

From source

First, ensure you have Rust installed (see rustup.rs).

Then install maturin:

pip install maturin

Build and install the package:

cd dustr
maturin develop  # For development
# OR
maturin build --release  # To build a wheel
pip install target/wheels/dustr-*.whl

Usage

dustr [OPTIONS] [DIRECTORY]

Options:

  • -i, --inodes: Show inode count instead of size
  • -g, --nogrouping: Don't use thousand separators (for inode mode)
  • -f, --noF: Don't add file type indicators (/ for directories, @ for symlinks)
  • -j, --json: Output results as JSON

JSON output

dustr --json .
{
  "directory": ".",
  "mode": "size",
  "entries": [
    { "name": ".gitignore", "value": 4, "percentage": 1.41 },
    { "name": ".git/", "value": 220, "percentage": 77.46 }
  ],
  "total": 284
}

Differences from duk

  • Performance: Rust backend with parallel directory traversal (jwalk + rayon)
  • Implementation: Uses native Rust file system operations instead of calling du command

Requirements

  • Python >= 3.9
  • Rust toolchain (for building from source)

License

LGPL-3.0-or-later

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dustr-1.0.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (674.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dustr-1.0.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (666.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

dustr-1.0.3-cp314-cp314-macosx_11_0_arm64.whl (604.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dustr-1.0.3-cp314-cp314-macosx_10_12_x86_64.whl (620.7 kB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

dustr-1.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (675.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

dustr-1.0.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (668.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

dustr-1.0.3-cp313-cp313-macosx_11_0_arm64.whl (605.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dustr-1.0.3-cp313-cp313-macosx_10_12_x86_64.whl (620.6 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

dustr-1.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (675.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dustr-1.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (668.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

dustr-1.0.3-cp312-cp312-macosx_11_0_arm64.whl (606.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dustr-1.0.3-cp312-cp312-macosx_10_12_x86_64.whl (621.1 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

dustr-1.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (677.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

dustr-1.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (670.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

dustr-1.0.3-cp311-cp311-macosx_11_0_arm64.whl (607.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dustr-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl (622.6 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

dustr-1.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (677.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

dustr-1.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (670.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

dustr-1.0.3-cp310-cp310-macosx_11_0_arm64.whl (607.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

dustr-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl (622.5 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file dustr-1.0.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7da053fed2d223b715ebb61b7f754c1784d51a00d65280fab1715c64edc5e6e
MD5 42e7067c0b0c241cc4a0fee2b90ce5de
BLAKE2b-256 565d91ef769f0408eaa306992a625515d8390260fb1b08468c6e67f87450513d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bca053a8382c38756bba739879193882c3c141c85b19317a48a60e07823281f8
MD5 e3c688e0b0c2bab71771d05211e20875
BLAKE2b-256 5f6cbee25d62d5e37db94c1454b18ccc1d0071808d8d4b61beea5c57f4bdbb6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5619fd082194fe2fe13d9fa7bd7e8edfaa662562d988f98997e46caa24168bc
MD5 208cd91fe0d89d7f54bf61d0468250af
BLAKE2b-256 a9148a5572bdf7e07e7e6fe08def756c61fbdfc482a0f7cc05caf3adb75c2a0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4c3aa9e3e0116eb37375fb912929e0a49a2427460173ea8419b14f37078cd62f
MD5 bae5d67eba0b704d68fc014ff56d034c
BLAKE2b-256 e5ee19f8c3204075c457bbbf79f6e1de5e50ed30dfd47fa0d9cd51a3ccd837f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp314-cp314-macosx_10_12_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 04fa06794d691514405d3695f495f5006d6b4311bf3cac221555431335b2a5eb
MD5 b300104eaf600d516652b6598b3db682
BLAKE2b-256 8929008a2a4096b027538f211b332e84953f7f79b4cbdeed9590483cde7150e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 08a3066fd7d208b21f2d4db034e9071b091a8dde5819ae9057ea42bccab87c76
MD5 6bc5bdec575a830a5ea508d5b31a37c5
BLAKE2b-256 8928657e3d0d65358e04c1f057ca80ae503b8366914fdb7527069ccb884059ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0330c87e840b8cba7a74aaa3b637e93da4f7fdb72ac391a0bb3f79c67126afa
MD5 20ae776ff83b7d2fdbb89ce848d1560f
BLAKE2b-256 353fa631ff75ec15ccec4b3bf961813f4b5bd6cf5cc550f51e86944cada086e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e21fc34f921f6f977b46a19a0cefba295fbb8cd2023d372d39caad930e291c79
MD5 bbad293ed9f09a851d2bff440c036d62
BLAKE2b-256 1684c03292a37c678293f37b44aa0100fa7c28685eba31de854e8a79663c79b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0853b7805cf3088c21f753f2c8b7e57fc330ee6b097d0560cbf7f68d4327a84a
MD5 9995e49648532bed76ca0686cc485c36
BLAKE2b-256 0fa5ac215c2a9ff593900b680c419a859c160135f2e5f3552e85b637c67ebae1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6282e5dbe187a38c86cde2a7d1cca23c46ab8eed984951bfcc6c1d2e231d8364
MD5 9689a18ad5725cacc8e1da0499a9d203
BLAKE2b-256 1bedee3cc590e70ac815104c75867858c1db207a8b492c82941a00200d78bff4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d45265e117d6edacde4bac5277a96aaecfe002347d25715c9179ca24f99d4cbf
MD5 9c1558309d02470d4156b908cb7c3684
BLAKE2b-256 40bdc56eea4a389138154df56b9299462f4ed220c79284653275e9e04bdca0f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a6fbd031421b909deec8cd974444489cdd6494e30233e28043fc995bdd670439
MD5 a4986a3f5e76f930676dc0caf681668f
BLAKE2b-256 141b21718b420e2a31ff68959dad263264058b2ed06156c759268e4a9264101c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67e225c64e20ec06f02aa54fd0b745906f403450f3c843858ec0558228d670f6
MD5 8f173bb40f82953e6c022a193071bedf
BLAKE2b-256 2f3ca2166573cd63c72eb8e27cebb8fb00327aed9bb5df2a13f64febacde34b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad6a74a346b050865272e03f884df7c78b21702100deef55099577e4c7916d69
MD5 95de391bc71dd9eeb7956863bead4be5
BLAKE2b-256 9dd5ae8452233aa9f122de304a00783e89afa3a7468ad8a0553493f4ff798648

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22d6dfb8021a5357831c57345eb41cda6292faf1c3517576d85012ade66dd47d
MD5 0df662d2150be13e5cabfbbfef7b1035
BLAKE2b-256 5094e2956bf1e4d512ff254aa6022d0a8a0b4a8c1cbd857cdbf459ccff4fecb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 244f72698c36aa4eded1a2683f4ea4afe76de6b1f442c7f537617c6564e9be18
MD5 053bc6a0618e8659ee0303c33d6d9cf1
BLAKE2b-256 60a5ea9d8a12e48a5a2ee072847052cfa0779d6ee5c684187b584bd50eee8d58

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1bd3f4cf28acae6db99750927822439d968b0ac5864ec252b5fea6a0cb8aad8a
MD5 b0e0134c4a53fa486b445e549139c793
BLAKE2b-256 e89fba44222bf05c84df25d235bee08ef1f9d03dcf05cd35838d5252ce973ce1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4f5988b7ffae20bbca66f381b59cb8c860f6946e29120e168784dfdb523808f7
MD5 487b5eaa0febc3b94e0b81e5a3fa19d1
BLAKE2b-256 0bda0a1b187676b606c2a2d9920fc3d5d0fb035de5250d95b5e2e3a28e82aa9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b70e445544a9f5714846823ba203f0b8008687a77fa4732b9f718e10730af69
MD5 8a618eb952c95546076bfae022022c4f
BLAKE2b-256 9d7e8c0c66cd2b4f2ae5f991790ed5d80a30baf8f248f1e6d0104c3574a4d759

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build.yml on wvangeit/dustr

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

File details

Details for the file dustr-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5d1405884b005c175cb38ad2cf8abe186a6fda0af16c6b443e030c00d03d15e6
MD5 604c6f2dedb4ba4ee1b5141320bbd43b
BLAKE2b-256 f43c328a3cd468f7fa8399d4a6e2e413557a1ea34361fcb1fcab4c14b18c8ca2

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.3-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: build.yml on wvangeit/dustr

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