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
Philipp Hahn bc486beb0d generator: Convert to 'not in' and 'is not'
as recommended by pep8

Signed-off-by: Philipp Hahn <hahn@univention.de>
2020-09-01 13:26:01 +00:00
.github github: enable lockdown of issues and merge requests 2020-04-07 17:28:33 +01:00
ci ci: refresh dockerfiles for changed libvirt build system 2020-08-04 12:23:26 +01:00
examples examples/event-test: Fix remove return type 2020-08-06 08:50:37 +02:00
tests Normalize white space 2020-08-06 08:50:37 +02: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
.gitlab-ci.yml ci: refresh dockerfiles for changed libvirt build system 2020-08-04 12:23:26 +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
CONTRIBUTING.rst gitlab: add CONTRIBUTING.rst file to indicate use of merge requests 2020-05-05 12:10:18 +01: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: Convert to 'not in' and 'is not' 2020-09-01 13:26:01 +00:00
HACKING Add virDomainCheckpoint APIs 2019-07-29 13:39:39 -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 debug: Fix bit-rot in debug output 2020-07-27 13:24:36 +02:00
libvirt-override-api.xml Add overrides for network port UUID getter/lookup methods 2020-01-03 11:32:57 +00:00
libvirt-override-virConnect.py connect: Just clear all event handlers 2020-08-18 09:48:25 +00:00
libvirt-override-virDomain.py domain: Fix None comparison 2020-08-18 09:48:25 +00:00
libvirt-override-virDomainCheckpoint.py override: Convert to list comprehension 2020-08-18 09:48:25 +00:00
libvirt-override-virDomainSnapshot.py override: Convert to list comprehension 2020-08-18 09:48:25 +00:00
libvirt-override-virNetwork.py override: Convert to list comprehension 2020-08-18 09:48:25 +00:00
libvirt-override-virStoragePool.py override: Convert to list comprehension 2020-08-18 09:48:25 +00:00
libvirt-override-virStream.py stream: Convert type() to isinstance() 2020-08-18 09:48:25 +00:00
libvirt-override.c debug: Fix bit-rot in debug output 2020-07-27 13:24:36 +02:00
libvirt-override.py override: no type change 2020-08-18 09:48:25 +00:00
libvirt-python.spec.in Drop largely empty and unused NEWS file 2020-05-14 10:43:41 +01:00
libvirt-qemu-override-api.xml qemu-api: Fix return type 2020-07-27 13:24:36 +02:00
libvirt-qemu-override.c debug: Fix bit-rot in debug output 2020-07-27 13:24:36 +02:00
libvirt-qemu-override.py override: Add manual PEP 484 type annotations 2020-08-18 09:48:25 +00:00
libvirt-utils.c Drop support for python 2 2019-12-04 12:14:51 +00:00
libvirt-utils.h Drop support for python 2 2019-12-04 12:14:51 +00:00
libvirtaio.py Revert "libvirtaio: Drop object(*args, **kwargs)" 2020-08-28 18:42:48 +02:00
Makefile build: provide wrapper makefile 2014-06-18 13:19:30 -06:00
MANIFEST.in Include libvirt-qemu-override.py in sdist 2020-08-18 00:23:56 +02: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 sanitytest: no type change 2020-08-06 08:50:37 +02:00
setup.py Post-release version bump to 6.8.0 2020-09-01 09:10:48 +02:00
tox.ini tox: Test with Python 3.6, 3.7 and 3.8 2020-03-30 12:33:17 +02:00
typewrappers.c Drop support for python 2 2019-12-04 12:14:51 +00:00
typewrappers.h debug: Fix bit-rot in debug output 2020-07-27 13:24:36 +02: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"