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
Wojtek Porczyk fc482fc868 libvirtaio: fix closing of the objects
- Descriptor.close() was a dead code, never used.
- TimeoutCallback.close(), as a cleanup function, should have called
    super() as last statement, not first

Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
2017-09-26 11:01:33 +01:00
examples Add details for shutdown event 2017-06-20 16:31:14 +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
.travis.yml Add travis build config 2017-09-19 16:11:23 +01: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 Introduce virDomainMigrateGetMaxDowntime API 2017-08-26 08:58:41 -04:00
HACKING HACKING: fix grammar 2016-12-13 12:34:46 -05: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 Implement virDomainMigrateGetMaxDowntime 2017-08-26 08:59:24 -04:00
libvirt-override-virConnect.py event: Add handler for block threshold event 2017-03-29 16:59:39 +02:00
libvirt-override-virDomain.py Fix error check for virDomainGetTime method 2017-05-24 15:14:50 +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 virStream: Introduce virStreamSparse{Recv,Send}All 2017-05-24 13:32:37 +02:00
libvirt-override.c Report an error if registering an event loop twice 2017-09-06 11:47:11 +01:00
libvirt-override.py Allow for ff callbacks to be called by custom event implementations 2017-04-04 15:00:27 +01:00
libvirt-python.spec.in Change Obsoletes to an explicit version 2017-09-04 13:13:53 +01:00
libvirt-qemu-override-api.xml agent: add python module support 2012-08-23 19:07:53 +08:00
libvirt-qemu-override.c PyArg_ParseTuple: Provide correct function names 2016-08-24 17:05:18 +02:00
libvirt-qemu-override.py qemu: support arbitrary monitor events 2014-03-25 09:12:22 -06:00
libvirt-utils.c don't overrun buffer when converting cpumap 2016-11-11 14:02:24 +01:00
libvirt-utils.h move cpumap conversion code to a common helper 2016-11-11 13:44:44 +01:00
libvirtaio.py libvirtaio: fix closing of the objects 2017-09-26 11:01:33 +01:00
Makefile build: provide wrapper makefile 2014-06-18 13:19:30 -06:00
MANIFEST.in Add asyncio event loop implementation 2017-04-04 15:28:50 +01: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
requirements-test.txt Add travis build config 2017-09-19 16:11:23 +01:00
sanitytest.py Skip sparseRecvAll / sparseSendAll in sanity test 2017-09-18 12:59:42 +01:00
setup.py Add travis build config 2017-09-19 16:11:23 +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"