Skip to main content

Python Disk Usage

Project description

PYTHON DISK USAGE

Takes a path as an argument and returns it's total disk usage recursively.

INSTALLATION

pip install pdu

CLI USAGE

usage: pdu [-h] [path]

Python Disk Usage Calculator.

positional arguments:
  path        A valid path.

optional arguments:
  -h, --help  show this help message and exit

PYTHON USAGE

path = '/path/to/some/file/or/directory'

from pdu import du

human_readable_size = du(path)

from pdu import calc

size_in_bytes = calc(path)

from pdu import convert

human_readable_units = convert(bytes)

Project details


Download files

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

Source Distribution

pdu-0.0.3.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

pdu-0.0.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page