Skip to main content

Count free space on filesystem roots.

Project description

rootly-sdk

rootly-sdk is a small Python library to count free disk space on filesystem roots (drive roots on Windows, / on Unix-like systems).

Installation

pip install rootly-sdk

Quick Start

from rootly_sdk import count_free_space, list_root_free_space

total_free_bytes = count_free_space()
per_root = list_root_free_space()

print(total_free_bytes)
print(per_root)

CLI

After installation, use:

rootly-free-space

Example output:

/ : 2241304576 bytes free
Total free space across roots: 2241304576 bytes

Development

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest

Publishing to PyPI

python -m pip install --upgrade build twine
python -m build
twine check dist/*
twine upload dist/*

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

rootly_sdk-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

rootly_sdk-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file rootly_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: rootly_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for rootly_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 61b31d32a3d534be5704a472eb2e50dba60ff453826c6a66bcba850012a956a4
MD5 e19fddc92c19378e8fe17cc739ba774a
BLAKE2b-256 bc338568b99de38fe69a87f5d3e673d628b4f740222cf01e5ffed597532043c9

See more details on using hashes here.

File details

Details for the file rootly_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rootly_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for rootly_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b15ecfcfc9a22188a5ec8bdec67041058ecde45c81c65f7f95ee365a82fa719
MD5 4591c8641f2848d9d979f6edee9ed36e
BLAKE2b-256 479a0a731d15dbbfb8056b86528af09ded473e2174242d6cea8faa2f5c19b3ce

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