mirror of
https://github.com/clearlinux/python-lkvm.git
synced 2026-04-28 10:53:35 +00:00
25 lines
576 B
ReStructuredText
25 lines
576 B
ReStructuredText
Summary
|
|
===========
|
|
|
|
**python-lkvm** is a python wrapper for lkvm command line which exposes its
|
|
methods through a simple API. This allows other python applications to manage
|
|
instances.
|
|
|
|
|
|
Getting started
|
|
---------------
|
|
|
|
As most of python modules, *python-lkvm* can be installed via setuptools: ::
|
|
|
|
$ python setup.py install
|
|
|
|
Once this module is installed, it can be used their method creating a client
|
|
instance, for example, for listing existing instances: ::
|
|
|
|
import lkvm
|
|
|
|
client = lkvm.Client()
|
|
|
|
for ins in client.list_instances():
|
|
print ins.name, ins.state
|