Python bindings for GlusterFS CLI and Metrics.
from glustercli.cli import volume
# Create a Volume
volume.create("gv1", ["fvm1:/bricks/b1", "fvm2:/bricks/b2"],
force=True)
# Start Volume
volume.start("gv1")
# Read Volume Info
volume.info("gv1")
# Get GlusterFS version
from glustercli.cli import glusterfs_version
print(glusterfs_version())
sudo pip3 install glustercli
See Documentation
Install pydoc-markdown
package to generate Documentation.
sudo pip3 install pydoc-markdown