Skip to main content

# disktools Extensions to basic disk tools like du, df, etc, but written in python.

## Installation

> pip install disktools

## Disk Usage (Cached)

duc is a python-based rewrite of du. It is relatively fast compared to its naive LLVM (numba optimized version). The main performance gain comes from using cache. Here is an example:

The output of

`bash duc /foo/bar `

is equivalent to the output of

`bash du -sb /foo/bar `

The difference would be, that duc creates cache stock called .duc in each folder as it traverses over the file system tree, hosting all previous results for all the subfolders if there are any.

The minor caveat of such approach is that creating the .duc entry screws the last modification timestamp of the containing folder. But over time this is not important, since it happens only once. Newly cache updates do not affect the containing folder anymore.

The idea of such caching design vs. global filesystem entry is to enable long term monitoring of any chosen sub path of your data. It has been tested to perform on XFS filesystems with volumes over 100TB and over 10 millions of files.

Any improvements and issue reports are welcomed.

—

You might also want to check out [findtools](https://github.com/ewiger/findtools)

Release files for disktools 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for disktools 0.0.3
File Size Uploaded
disktools-0.0.3.tar.gz 4.1 kB Details

Release files / disktools-0.0.3.tar.gz

Download URL disktools-0.0.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae7cb497d9e07258783707f27f3f828b6a3127c1c0c81f09b98bf7ad5d84915c
BLAKE2b-256 checksum
How to use checksums
af937f24f5b8ead1a52637df98d3cbf29965320dc3819201647eabcfb9727cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page