1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 16:25:10 +03:00
Python language binding for libvirt native C API
Go to file
Daniel P. Berrange b4629027f8 Post-release version bump to 2.0.0
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2016-06-14 15:24:16 +01:00
examples event: Add support VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED 2016-04-18 13:18:26 +02:00
tests Add test for setting scheduler parameters 2014-03-19 15:16:15 +00:00
.ctags maint: Add ctags configuration file and ignore the output 2014-03-24 19:15:02 +01:00
.dir-locals.el maint: set up preferred emacs settings 2014-03-24 11:04:15 -06:00
.gitignore Add tox.ini to run tests on Python 2.6, 2.7 & 3.4 2015-04-22 16:45:13 +01:00
.mailmap Fix duplicate entries in AUTHORS 2015-05-28 14:50:51 -06:00
AUTHORS.in Setup distutils build system 2013-11-22 15:58:06 +00:00
autobuild.sh Add python3 to the automated build and RPM 2013-12-12 11:26:11 +00:00
COPYING Setup distutils build system 2013-11-22 15:58:06 +00:00
COPYING.LESSER Setup distutils build system 2013-11-22 15:58:06 +00:00
generator.py generator.py: Consider symbols from libvirt-common 2016-04-21 15:46:00 +02:00
HACKING Update README file contents and add HACKING file 2013-11-26 11:44:19 +00:00
libvirt-lxc-override-api.xml Introduce an LXC specific public API & library 2013-01-14 13:58:34 +00:00
libvirt-lxc-override.c use VYR_PY_LIST_SET_GOTO and VIR_PY_LIST_APPEND_GOTO 2015-10-05 09:42:23 +02:00
libvirt-override-api.xml python: add python binding for Perf API 2016-03-31 16:02:05 +02:00
libvirt-override-virConnect.py event: Add support VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED 2016-04-18 13:18:26 +02:00
libvirt-override-virDomain.py Add dict check for setTime and allow pass 'seconds' parameter 2014-11-11 15:58:12 +01:00
libvirt-override-virDomainSnapshot.py python: treat flags as default argument with value 0 2013-03-22 11:50:09 +08:00
libvirt-override-virStoragePool.py python: treat flags as default argument with value 0 2013-03-22 11:50:09 +08:00
libvirt-override-virStream.py Fix stream related spelling mistakes 2014-02-13 11:17:29 +01:00
libvirt-override.c fix crash in getAllDomainStats 2016-04-18 17:06:37 +02:00
libvirt-override.py override: Fix exception handling syntax 2013-12-09 08:49:56 -06:00
libvirt-python.spec.in spec: Don't pull in dependencies for example scripts 2016-04-20 14:47:48 -04:00
libvirt-qemu-override-api.xml agent: add python module support 2012-08-23 19:07:53 +08:00
libvirt-qemu-override.c Return NULL if python exception is set 2015-10-05 08:35:52 +02:00
libvirt-qemu-override.py qemu: support arbitrary monitor events 2014-03-25 09:12:22 -06:00
libvirt-utils.c use VIR_PY_DICT_SET_GOTO 2015-10-05 09:42:44 +02:00
libvirt-utils.h utils: introduce new macro helpers for tuple, list and dict objects 2015-10-05 09:41:27 +02:00
Makefile build: provide wrapper makefile 2014-06-18 13:19:30 -06:00
MANIFEST.in examples: small fix for nodestats.py example 2015-08-26 18:02:44 -04:00
NEWS Setup distutils build system 2013-11-22 15:58:06 +00:00
README maint: document use of libvirt's run script 2014-08-04 11:09:34 -06:00
sanitytest.py sanitytest.py parameters are now optional 2015-04-22 16:43:03 +01:00
setup.py Post-release version bump to 2.0.0 2016-06-14 15:24:16 +01:00
tox.ini Add tox.ini to run tests on Python 2.6, 2.7 & 3.4 2015-04-22 16:45:13 +01:00
typewrappers.c Use VIR_PY_NONE instead of increment and Py_None 2015-10-05 08:50:14 +02:00
typewrappers.h override: Switch virStreamSend wrapper to use libvirt_charPtrSizeUnwrap 2013-12-11 16:14:46 +00:00

     Libvirt Python Binding README
     =============================

This package provides a python binding to the libvirt.so,
libvirt-qemu.so and libvirt-lxc.so library APIs.

It is written to build against any version of libvirt that
is 0.9.11 or newer.

This code is distributed under the terms of the LGPL version
2 or later.

The module can be built by following the normal python module
build process

  python setup.py build
  sudo python setup.py install

or to install as non-root

  python setup.py build
  python setup.py install --user

If python-nose is installed, you can test the package with

  python setup.py test

A makefile shim is provided so that you can do

  make && make check

rather than directly invoking setup.py.

As of libvirt 1.2.6, it is possible to develop against an uninstalled
libvirt.git checkout, by setting PKG_CONFIG_PATH and LD_LIBRARY_PATH
environment variables to point into that libvirt tree; you can even
automate this by using libvirt's run script:

  /path/to/libvirt/run python setup.py build

Patches for this code should be sent to the main libvirt
development mailing list

  http://libvirt.org/contact.html#email

To send patches, it is strongly recommended to use the
'git send-email' command.

Make sure the mails mention that the patch is for the python
binding. This can be done by setting a config parameter in the
local git checkout

  git config format.subjectprefix "PATCH python"