C Python Other
Latest commit de35c1c Jan 6, 2017 @OceanTears OceanTears committed with jferlan Fix the incorrect memory freeing which will result in crash
Commit id '71fd95409' neglected to adjust a couple of API's do that now.

The number of elements in new_params is equal to the length of info,
instead of nparams, so it's wrong to free new_params using nparams.

Signed-off-by: Wu Zongyong <wuzongyo@mail.ustc.edu.cn>
Permalink
Failed to load latest commit information.
examples examples: Update event-test.py Jan 10, 2017
tests Add test for setting scheduler parameters Mar 19, 2014
.ctags maint: Add ctags configuration file and ignore the output Mar 24, 2014
.dir-locals.el maint: set up preferred emacs settings Mar 24, 2014
.gitignore Add tox.ini to run tests on Python 2.6, 2.7 & 3.4 Apr 22, 2015
.mailmap Fix duplicate entries in AUTHORS May 28, 2015
AUTHORS.in Setup distutils build system Nov 22, 2013
COPYING Setup distutils build system Nov 22, 2013
COPYING.LESSER Setup distutils build system Nov 22, 2013
HACKING HACKING: fix grammar Dec 13, 2016
MANIFEST.in examples: small fix for nodestats.py example Aug 26, 2015
Makefile build: provide wrapper makefile Jun 18, 2014
NEWS Setup distutils build system Nov 22, 2013
README maint: document use of libvirt's run script Aug 4, 2014
autobuild.sh Add python3 to the automated build and RPM Dec 12, 2013
generator.py Add support for secret event APIs Jan 9, 2017
libvirt-lxc-override-api.xml Introduce an LXC specific public API & library Jan 14, 2013
libvirt-lxc-override.c use VYR_PY_LIST_SET_GOTO and VIR_PY_LIST_APPEND_GOTO Oct 5, 2015
libvirt-override-api.xml Add override impl for virStorageVolGetInfoFlags Dec 21, 2016
libvirt-override-virConnect.py Fix typos in previous secrets event patch Jan 10, 2017
libvirt-override-virDomain.py Add dict check for setTime and allow pass 'seconds' parameter Nov 11, 2014
libvirt-override-virDomainSnapshot.py python: treat flags as default argument with value 0 Mar 22, 2013
libvirt-override-virStoragePool.py python: treat flags as default argument with value 0 Mar 22, 2013
libvirt-override-virStream.py Fix stream related spelling mistakes Feb 13, 2014
libvirt-override.c Fix the incorrect memory freeing which will result in crash Jan 18, 2017
libvirt-override.py override: Fix exception handling syntax Dec 9, 2013
libvirt-python.spec.in spec: Don't pull in dependencies for example scripts Apr 20, 2016
libvirt-qemu-override-api.xml agent: add python module support Aug 23, 2012
libvirt-qemu-override.c PyArg_ParseTuple: Provide correct function names Aug 24, 2016
libvirt-qemu-override.py qemu: support arbitrary monitor events Mar 25, 2014
libvirt-utils.c don't overrun buffer when converting cpumap Nov 11, 2016
libvirt-utils.h move cpumap conversion code to a common helper Nov 11, 2016
sanitytest.py Add support for secret event APIs Jan 9, 2017
setup.py Post-release version bump to 3.1.0 Jan 18, 2017
tox.ini Add tox.ini to run tests on Python 2.6, 2.7 & 3.4 Apr 22, 2015
typewrappers.c Use VIR_PY_NONE instead of increment and Py_None Oct 5, 2015
typewrappers.h override: Switch virStreamSend wrapper to use libvirt_charPtrSizeUnwrap Dec 11, 2013

README

     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"