Skip to main content

Rust-based disk usage analyzer with histogram visualization

Project description

Dustr

Build PyPI version Crates.io License PyPI - Python Version Benchmarks

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

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dustr-1.0.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (667.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

dustr-1.0.4-cp314-cp314-macosx_11_0_arm64.whl (604.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dustr-1.0.4-cp314-cp314-macosx_10_12_x86_64.whl (620.8 kB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

dustr-1.0.4-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.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (668.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

dustr-1.0.4-cp313-cp313-macosx_11_0_arm64.whl (605.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dustr-1.0.4-cp313-cp313-macosx_10_12_x86_64.whl (620.8 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

dustr-1.0.4-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.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (668.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

dustr-1.0.4-cp312-cp312-macosx_11_0_arm64.whl (605.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

dustr-1.0.4-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.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (670.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

dustr-1.0.4-cp311-cp311-macosx_11_0_arm64.whl (607.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dustr-1.0.4-cp311-cp311-macosx_10_12_x86_64.whl (622.8 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

dustr-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (677.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

dustr-1.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (670.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

dustr-1.0.4-cp310-cp310-macosx_11_0_arm64.whl (607.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

dustr-1.0.4-cp310-cp310-macosx_10_12_x86_64.whl (622.7 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c496ec7a8c346e95c1925d32a9cee576383733859755175854f738dc45b8b92b
MD5 c7225fcd99bdd186d1aa0952858f1b87
BLAKE2b-256 02e86c82b2e09202a8ba787b632dc40a2a7a7beaff2ca0a03729e1a044cb2dc3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9d44c26bbda84280e0acb6b5bb101b997d0396d80d63ccc86056045f63b9b318
MD5 ad41ca388e6c2817731ac4d14cc1407b
BLAKE2b-256 89133d1731b5c787119caa03eafbf77640b2c486742b0e2c51f75567dc986ccc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdbfbf663cecd87a54836d273cef4758e812d2bb87a2be982d9c3ae02fbbc46c
MD5 07b622ad5da1bcd121b126768e4763bc
BLAKE2b-256 b277cd3fc661c1700b8bfd73c1fcb92730c92d8450dcaa9851daa8167be5e9b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f4f98468076708d6a4d72762e57091f1645c7fc7422ba1d033c8ef887a8d6464
MD5 c151a806eb6ac046202e8931af920bd6
BLAKE2b-256 39e9ef92b1a0f4a113c5feb0374656fe2c3f4977435aaccaab0eb5d9d13186cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6990657e704b4908938294174bf3c55a7bfecf7ad2e99f047155b682c1d5ffdd
MD5 1e27450ddbfbe87dca52cb32dd35dcde
BLAKE2b-256 82a2d0ee3014f116f192472a14bb765338362f96770673f5f244cee4af8c4fb4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9e3f620c93bf1c86fa108e1c55cc450aee97ecf2ae69416a9ae99d2917260592
MD5 e642df9f9b3bf0ef33a0032c679c8195
BLAKE2b-256 82998febc748bf04a73fe38d3cc328d5422669fef47f1462877491e34614fcb2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16c3bb1577b4a75af269dbe3ccc14c6a504a5045b0081aae06f31e556f82e473
MD5 3ca73984cfa1d2e68c8453bfddbecd06
BLAKE2b-256 ada18817840884e2bc77ae3ec74fc3a51fef288d5ebee88336e4ea4d110b4f9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 00d0d898c9b7663464209eac4764dc05a3c3a018323c71e502f79d7c70bd00af
MD5 1f100300800884c981d15bfb7e90ec74
BLAKE2b-256 8d34f8c0a5f82b620556d301df486a35f2a9f6e8bce5f2ece5b0d9e915a8ea1e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4819ce05b906ea8a5967ab3cd3f13d084db4bdd511b22bc3f87898eb6df8b323
MD5 dd22550c18306aa864b3cdf87d7e29b8
BLAKE2b-256 d3292175092e0036e3ab689c2ee83ad6a1092c6224601665f724a3a0fe6a35ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 899a86038130a89aad6bf030a56d4a54dedff1b72350fd66263d4df68b37a7b5
MD5 7d14d61e6a80ed306e708f6dc0712e78
BLAKE2b-256 40a1cbfb56c0e89ae8addc891992d1b7a6769ed11fe87d46e1142fcc23e636d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 434e2a55d49c15a9e9a6f01c36b9de2cf3b1a94ee81e21fa3c3f8a7a42ac9284
MD5 a38766c1ee2b9d5aa491fa6d1b915a9c
BLAKE2b-256 ff2cedf4f70fac11c14191bb494bdb22aade69ff3f1baf94113b7c5285b4f8ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 76cdac72d4c8a35d1bc6224a32ca5b331159f13f6e711d50919c25614a09f7c1
MD5 9f5eb985a10fe3b477f94b55835671f0
BLAKE2b-256 6ae526e633b5de03c4e6c19a5962516e107732b22055ae9fd7c38fcb700e93a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 555407af767b4a85aeba17ebd659ca6e4d773ca98b4920673c7e1acb616cb7cf
MD5 63e218b118dea35f720ddce261a2f50e
BLAKE2b-256 64f83c0e59636dd949cc5d477003d3f8a40d4a67158c304728bfaaca7830bfe1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 11b3536df16b7e7243ba08a8b8aa125839d144c106cea821165fae492b02c532
MD5 2219550d531747eef305ec2d1342f082
BLAKE2b-256 745cc9a802774a52883b867d83a7313bdfce8dd04b6b97dfbeb96e5628ea91c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef442a20b9f14456f8cec2c9d602ac87b9c0dc4aec8edae89242314163f62fa4
MD5 2474f9a18d02f843cc391f3b993617e5
BLAKE2b-256 fd095404ff3060dc6965bc2638ff1ddfdd89d178d57ab5fa638cfc65b1e45ee9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e181dce6b41f0db2d8ec6e9b361860cf5fe82b2ea9f9d7f4764eb70a508bf885
MD5 3c86870c3c2ad3768b6bcb41e07c3c4a
BLAKE2b-256 0668972c29b365f530cb528e98969ffc21eb023d63a03c72a3b298580457dd4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5484f9c15a5cc93be0bdd255718659b9f9f2bf0bd2f01af35c81de5b5d2f4c51
MD5 efa114afec871d456b30e2dbf95596f2
BLAKE2b-256 f2df5048675bd7f42cfc4b1a596bb5986f543be4292233744b1e9ddaeca7eb88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 33d5f5055ac9d964db0002aa27cb1d8e840b6ab79daa67e16327988572173fa3
MD5 d25a2635680d241705cdee5e0391a46a
BLAKE2b-256 213e62277ae7b6fefd2861a57113012dc9966bea4bf809abfb08b90bf559e126

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 701719756bf80541d67f2c79f576ebb9aa79ee68872d5cf500ce5c55afcb1082
MD5 b9b3d648cc487e8206f6a2198dd234a0
BLAKE2b-256 dcaf5f92783e5543dfb3393e219fd4880dfb74cdd8116d06fe4d5764a031aefe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dustr-1.0.4-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f789e876133752a12e04632d91fdf364bf4fa2c675a0911362ffbc38f2eeb968
MD5 cce18d99bd03cd471bb99d9d8cd34276
BLAKE2b-256 66d1d9a6dcae0a3b1af05d6647e9f88b6299d8a3f66790fb635021df5e6dd111

See more details on using hashes here.

Provenance

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