Skip to main content

Human-friendly summary of disk usage.

Project description

This software computes an estimate of the file disk usage for files and directories, similarly to the UNIX program ‘du’. The result is then displayed to the console in a human friendly format.

It includes the following features:

  • a progress bar of each item for quick visual inspection

  • percentage information (precision can be set)

  • show the size of each item in the specified units

  • support for SI, IEC and UNIX (‘du’) units

  • maximum depth (of the displayed items) can be specified

  • optionally follow symlinks, mount points, special files and hidden files

  • can filter results to display only directories

  • can output results ending with ‘\0’ instead of newlines (useful for parsing)

  • can sort results by name or by size

Installation

The recommended way of installing the software is through PyPI:

$ pip install hdu

Alternatively, you can the clone the source repository from Bitbucket:

$ mkdir hdu
$ cd hdu
$ git clone git@bitbucket.org:norok2/hdu.git
$ python setup.py install

(last step may require additional permissions depending on your configuration)

The shoftware does not have additional dependencies beyond Python and its standard library.

It was tested with Python 2.7 and 3.5. Other version were not tested.

Note

Although the software is ready, the packaging is still experimental. If you experience any issues, please consider reporting it. Suggestions and improvements are welcome!

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 Distribution

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

hdu-0.2.3.11-py2.py3-none-any.whl (20.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file hdu-0.2.3.11-py2.py3-none-any.whl.

File metadata

  • Download URL: hdu-0.2.3.11-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for hdu-0.2.3.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 95590cf5f23c90321f211c044fb5456b1b816ffc3680bd749af3d7937338ab84
MD5 38d73f154966142e03fd2b51c296d109
BLAKE2b-256 1789438354a033426d8779b002ca82dd445fdc415981fc0d073e5406ba649b17

See more details on using hashes here.

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