Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description

# 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 History

Release History

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
disktools-0.0.3.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Jan 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting