Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gluster/glustercli-python

Python bindings for Gluster Commands and Metrics
https://github.com/gluster/glustercli-python

Last synced: about 2 months ago
JSON representation

Python bindings for Gluster Commands and Metrics

Awesome Lists containing this project

README

        

# glustercli-python

Python bindings for [GlusterFS](http://www.gluster.org) CLI and Metrics.

## Hello World

```python
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](docs/README.md)

Install `pydoc-markdown` package to generate Documentation.

```
sudo pip3 install pydoc-markdown
```