/glustercli-python

Python bindings for Gluster Commands and Metrics

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

glustercli-python

Python bindings for GlusterFS CLI and Metrics.

Hello World

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())

Install

sudo pip3 install glustercli

Documentation

See Documentation

Install pydoc-markdown package to generate Documentation.

sudo pip3 install pydoc-markdown