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.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (670.0 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dustr-1.0.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (661.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

dustr-1.0.1-cp314-cp314-macosx_11_0_arm64.whl (594.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dustr-1.0.1-cp314-cp314-macosx_10_12_x86_64.whl (611.6 kB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

dustr-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (670.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

dustr-1.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (661.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

dustr-1.0.1-cp313-cp313-macosx_11_0_arm64.whl (595.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dustr-1.0.1-cp313-cp313-macosx_10_12_x86_64.whl (612.0 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

dustr-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (670.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dustr-1.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (661.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

dustr-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (596.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dustr-1.0.1-cp312-cp312-macosx_10_12_x86_64.whl (612.3 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

dustr-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (673.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

dustr-1.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (664.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

dustr-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (598.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dustr-1.0.1-cp311-cp311-macosx_10_12_x86_64.whl (613.4 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

dustr-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (673.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

dustr-1.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (664.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

dustr-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (598.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

dustr-1.0.1-cp310-cp310-macosx_10_12_x86_64.whl (613.3 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for dustr-1.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3688d862d5f4a76887673c073187c0dff083031223c1514dbb34a3999dfc5758
MD5 2f4ce234ab90dc15d8f1ed2ce8fbcad2
BLAKE2b-256 12a8fafdd34a8eaa0c6fd95f0b49f9aab718f78883f9d3e11d678683ad60fe96

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c01d6775e80ddc1f50019a3423646ea1e19fbda1730a0cafc26681fce4885c42
MD5 2427c9a085868ed3831c752b059ed16f
BLAKE2b-256 c099057e9cf752e29e901b6836e0b42959e381fb1415a099013b61998aaf43bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ffce87a6040b3be734f5338032099811a3f69cd3577fe930583f4a4505cb46c
MD5 4008838a0159a744c8753948193ed588
BLAKE2b-256 a28654f77c370c4d1cab0cd5140435f74525f4f29c5296debdfa22bda647d1c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a314dfd70f69dfcd7b047507f8ffe66e2fbea5b1b18fbc5f57072d913e531947
MD5 87992f8d12c5f7cd702f69f17a88a2b9
BLAKE2b-256 91d4bdc65eaa153d5efb8b918ff8c0da3524a8e5dcc6fb38fb12d9241e4a620d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d77ec460aaa3bb6beac8d477457e4086dd3e4a1b835a941e252948cd260a59a8
MD5 fc3192cfafdfb423aea2942ee75ed64b
BLAKE2b-256 59a208cc84536ab4e9d8d04fb46dce0b5958270d14c60e465a6e9f03328d6902

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cc7f8c99e0ec086686de6ecf423da9f124bbee7b58c64c339550dbc673bd291d
MD5 187fece7cb012b06625b28aaa126b4b0
BLAKE2b-256 f95be99f05bd397a57c956a92bab201ec757907bb739d671c95e68f917431785

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce96fda6ef6c9a3183d596adc0984f307acc96143d81fb8e31017ec2bbbc6a0e
MD5 8d55ddc7c7653bfb58d6243e666740e8
BLAKE2b-256 7fbe985361c27fc03028750373a92687e775ff048a4590522fc49c6e12813db3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 02922dbbebe2f13ef5a7fd03c904359e2114a7fa11b03385aac88b1e5e863a8a
MD5 a71dbec40f61830df7f584465a719bf7
BLAKE2b-256 cbce36a47bb1000eb811898d9fdc182aa6bccbb5e3acc98a18a4aebd087ed8a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2dd10858dbfeaf525044068435468986b4c12b3e3bde68b3c0d4224aacb5844e
MD5 2c3de20fddd740dd37d10ec4f2f3ffbf
BLAKE2b-256 0fd77542e79b175a4e6c7462533184107fb4c099c546961416939c8ac630ec94

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9d71d5e7fa92c78a8113ae2eba2dd1244118d6505101b0f2105a3ae6b9c8f36b
MD5 00f518301ea5a45ca4acfb1ee029d4e8
BLAKE2b-256 94108168802fc8daec144fe66f60dcfcd731e1737f83e46099dc1ad134355016

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 949ce40513473d0794600d4df1fba08a41d03826dee0dd8a8466beefd7baf841
MD5 1c1e18b9e5b405380c8d163a32f18c90
BLAKE2b-256 25b1f7479671d20061d5d3021c9982ede794ff606775c3b0bf44812749edc379

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d85d1d26ef18af15fcf7e51ef7dffd5c078529d61313825883ec70021b7e6307
MD5 4bfbb754584de6eef83b9fea8cefeb56
BLAKE2b-256 e7ca956003a3cb492395cb6ea114408e7ce868d963b0f6460412f54ae6675bbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f009d6a1ae140186fef634477dcc8d04fb7b72680c9d458733f2809ad5b5935e
MD5 d9cbeab627280515153454e903018953
BLAKE2b-256 197f1272c81240c3ae448e2c17cd6da3baa7bd5fbee48c38af696e77ea6d7b96

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 37631cc3196ce6a996a7d543edde1525ccd8220d94c30defebd82795135fd7a7
MD5 99acd7e0e64c8883290ac89c9e95bf15
BLAKE2b-256 ca7985c43cdf6abcd61da958caaca7c6dc98686db5731128a60275bbfc811e5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1a31a695acbe262ac8d28083efa6cd365281c57eed2816c5224c73581060534
MD5 f3b1ea82e1ef6056b0ea38a5c61d325b
BLAKE2b-256 c4669994a0f94d137ed5f5f50d8dce7ec1b3336fa0df013c21e41c1a1dbbe53c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3e69d962c817380a910a6c25fde4db3c9c8f896861fa80a3658cb400ab1f6f3b
MD5 6821a3b3b59bfd7803bb03e48832fa5e
BLAKE2b-256 23ad9de9cfb00da1564719f14fec186d81ad61bae2f0f5419cc50678a3370d91

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91d20fb10f8abf393e723d6c2435ae3baec0f05a0555300a9fa2f4d049433f7f
MD5 624505a5818262c17e890ded87b3037d
BLAKE2b-256 d16ee9f1357d8a3954f313923432b97a149ff6b6e98a33feb7f38c490002e426

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0174f191e1190a440548342d73dec715eabfbc5b7c448309a337495b07a90644
MD5 48dc1965f53e6c39a1c451466287ecda
BLAKE2b-256 78e0e29ef40b2945ded8ee088c2fc5fc62b2d1bbc4cc475672ead4a4f6bc25fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f509190b0655f369baf4b8b23bf9b794ff5bcbe1a8797dfde69c20c529ab710
MD5 83b8997c55f6d6697a88f7106ceee80f
BLAKE2b-256 bd02827984ad3c29da0a0e688891a69e5a140609117b8221c37b06e1a9685b13

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dustr-1.0.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 203b74ee7acb35648ba55391ce5c124c3780b21c24951f42fa9a427a0e2bb4d2
MD5 38116098ad6093ffabaee5336268431e
BLAKE2b-256 27d5ff04a80bcefb4e4bac81f39a55ef9ab5010214514a2bc1cc02b6752c9385

See more details on using hashes here.

Provenance

The following attestation bundles were made for dustr-1.0.1-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