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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pdu-0.0.3.tar.gz.

File metadata

  • Download URL: pdu-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pdu-0.0.3.tar.gz
Algorithm Hash digest
SHA256 17866085f4fbb7c65a5d4b0e50fdc49ac0cad1508a846aae336de54b61b8932a
MD5 59ddc6df1325e012530bb54eb8c95825
BLAKE2b-256 f54bf127b1867d394763beee889dcb68d84b0517db50fa551f6c0f617ce4721a

See more details on using hashes here.

File details

Details for the file pdu-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pdu-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a4dfbcb8774d33cb61e42a0de21841e650504745a9fee6e06183b71fc17e06d4
MD5 7d7ba7ab899b51c894483f0b160c8bf5
BLAKE2b-256 dfecc666d47daff4e99b43161ef4f9d17aae54876e06c79b2c49b85db110eecd

See more details on using hashes here.

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