Skip to main content

A utility for analyzing disk space via the CLI.

Project description

diskspaced

This is a Python based CLI utility to find what is taking space on your disk. It's originally designed to export into a format that GrandPerspective can render, but the exports can be XML (for GrandPerspective) or JSON.

Simply install via pip (or package management tool of your choice), then run:

diskspaced --folder-path / --output-path output.xml --format grandperspective

This will run through your disk and write out the results. Running with sudo gives the most accurate results.

Note: Windows is not supported by this tool.

Required options

  • --folder-path - The root folder to start off with. Usually set to /
  • --output-path - The file to write the output to.
  • --format - The output file format. Currently JSON or GrandPerspective. (json and grandperspective respectively)

Other options

  • --pretty-print - Set this to pretty print the output (if supported by the format) - Note that this is a post processing step rather than an inline step.
  • --print-after-n-files N - Printing every file processed would make the entire process take several orders of magnitude longer. Instead, if you'd like to see output, you can set this flag, and give a value N and it will print every Nth file.
  • --alphabetical - This ensures that the output order is alphabetical (i.e. stable). This is only really useful if you plan on diffing outputs.

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

diskspaced-0.0.14.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

diskspaced-0.0.14-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file diskspaced-0.0.14.tar.gz.

File metadata

  • Download URL: diskspaced-0.0.14.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.11 Darwin/24.5.0

File hashes

Hashes for diskspaced-0.0.14.tar.gz
Algorithm Hash digest
SHA256 7a5ec9d49fa534525085819b1d5a14143897407733743b3776e7b6aab1989cf3
MD5 8062a1f342957a37ffc6eff21c3cd321
BLAKE2b-256 5387203131dd8c12dcfea92ebb02cc80bf571f5094d4637eb53c1d644f269fad

See more details on using hashes here.

File details

Details for the file diskspaced-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: diskspaced-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.11 Darwin/24.5.0

File hashes

Hashes for diskspaced-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 d970dd443f2a52dab700645e63ce2a271e30d444092ba296ac809955123bc64a
MD5 2c9c86a5990554994466e4a37313e24a
BLAKE2b-256 f929e3723449732ebb591f97bce28832cb39219da8d86b4a83e968c3a26a8f00

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