1 Libvirt Python Binding README
2 =============================
4 This package provides a module that permits applications
5 written in the Python 3.x programming language to call the interface
6 supplied by the libvirt library, to manage the virtualization
7 capabilities of recent versions of Linux (and other OSes).
8 As such, the module exposes Python bindings to to the libvirt.so,
9 libvirt-qemu.so and libvirt-lxc.so library APIs.
11 It is written to build against any version of libvirt that
14 This code is distributed under the terms of the LGPL version
20 To build the libvirt python binary requires the GCC and pkg-config
21 tools, and development headers for the libvirt and python libraries.
23 Building and installing
24 -----------------------
26 The module can be built by following the normal python module
31 for testing and distributing purposes or it can be installed directly via pip
34 $ python3 -m pip install .
36 without explicit building.
38 In order to test the package, you'll need either tox or at least pytest,
39 depending on whether you want to test an already installed package in which
40 case the latter is sufficient or if you wish to test in a virtual
41 environment you'd need tox. Depending on your preferred setup, you can run the
50 A makefile shim is also provided for your convenience, so that you don't have
51 to care about the exact operations mentioned above and instead you simply do
55 As of libvirt 1.2.6, it is possible to develop against an uninstalled
56 libvirt.git checkout, by setting PKG_CONFIG_PATH and LD_LIBRARY_PATH
57 environment variables to point into that libvirt tree; you can even
58 automate this by using libvirt's run script:
60 /path/to/libvirt/run python3 -m build
62 Patches for this code should be submitted as merge requests to the
63 project page on gitlab. See CONTRIBUTING.rst for more information.