Classes for filesystem usage utilities
Project description
Filesystem information tools
This module contains utilities to query local filesystem information as python objects, including mount points, disk usage and fstab contents.
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-1.0.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
fs_toolkit-1.0.1-py3-none-any.whl
(13.6 kB
view hashes)
Close
Hashes for fs_toolkit-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6311dba7b4dbe396ca27eaf353d0c89749d5bba66a3c626c1e4f3fea4b9e7c |
|
MD5 | bf961a06b922a171b18511585ba94a42 |
|
BLAKE2b-256 | 0ee8ba1aadb5135005e8f0ed16f6c259c4edabb9ea2fb94e4eb12b72a5e51a76 |