Skip to content

Python bindings for Gluster Commands and Metrics

License

GPL-2.0, LGPL-3.0 licenses found

Licenses found

GPL-2.0
COPYING-GPLV2
LGPL-3.0
COPYING-LGPLV3
Notifications You must be signed in to change notification settings

gluster/glustercli-python

Repository files navigation

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