Skip to main content

Classes for filesystem usage utilities

Project description

Unit Tests Style Checks

Filesystem information tools

This module contains utilities to query local filesystem information as python objects, including mount points, disk usage and fstab contents.

This tool does similar things as psutil package: it may be better suited to your use and has many features missing from this module.

Installing

pip install fs-toolkit

Basic examples

Some usage examples

Fstab:

from fs_toolkit.fstab import Fstab
fstab = Fstab()
fstab.get_by_mountpoint('/var/my-secrets').uuid

Mounts and df (linked together):

from fs_toolkit.mounts import Mountpoints
print('\n'.join(f'{mp.usage.used:10} {mp.mountpoint}' for mp in Mountpoints()))

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

fs_toolkit-2.4.8.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

fs_toolkit-2.4.8-py3-none-any.whl (18.3 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