descriptionPython bindings for libvirt
homepage URLhttps://libvirt.org/
repository URLhttps://gitlab.com/libvirt/libvirt-python.git
ownereblake@redhat.com
last changeTue, 2 Apr 2024 11:44:28 +0000 (2 13:44 +0200)
last refreshSat, 27 Apr 2024 11:44:49 +0000 (27 13:44 +0200)
content tags
add:
README
Libvirt Python Binding README
=============================

This package provides a module that permits applications
written in the Python 3.x programming language to call the interface
supplied by the libvirt library, to manage the virtualization
capabilities of recent versions of Linux (and other OSes).
As such, the module exposes Python bindings to 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.

Requirements
------------

To build the libvirt python binary requires the GCC and pkg-config
tools, and development headers for the libvirt and python libraries.

Building and installing
-----------------------

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

  $ python3 -m build

for testing and distributing purposes or it can be installed directly via pip
as

  $ python3 -m pip install .

without explicit building.

In order to test the package, you'll need either tox or at least pytest,
depending on whether you want to test an already installed package in which
case the latter is sufficient or if you wish to test in a virtual
environment you'd need tox. Depending on your preferred setup, you can run the
tests either as

  $ python3 -m pytest

or as

  $ tox

A makefile shim is also provided for your convenience, so that you don't have
to care about the exact operations mentioned above and instead you simply do

  $ make && make check

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 python3 -m build

Patches for this code should be submitted as merge requests to the
project page on gitlab. See CONTRIBUTING.rst for more information.
shortlog
2024-04-02 Jiri DenemarkPost-release version bump to 10.3.0master
2024-03-01 Jiri DenemarkPost-release version bump to 10.2.0v10.2.0
2024-02-27 Michal Privoznikci: Switch native_git_build_job to c9s and resume api_c... v10.1.0
2024-02-27 Michal Privozniktest_api_coverage: Reflect different naming in python...
2024-02-20 Vincent VanlaerFix memory leak in virStreamRecvFlags
2024-01-19 Daniel P. Berrangéci: refresh with latest 'lcitool manifest'
2024-01-15 Jiri DenemarkPost-release version bump to 10.1.0
2024-01-08 Peter Krempaci: Install built module for testing insde an venvv10.0.0
2024-01-08 Peter Krempaci: Update Fedora and Debian versions and regenerate
2023-12-01 Jiri DenemarkPost-release version bump to 10.0.0
2023-11-01 Jiri DenemarkPost-release version bump to 9.10.0v9.10.0
2023-10-02 Jiri DenemarkPost-release version bump to 9.9.0v9.9.0
2023-09-25 Daniel P. BerrangéRequest the Python stable API when buildingv9.8.0
2023-09-25 Daniel P. BerrangéUse PySequence_GetItem preferentially
2023-09-25 Daniel P. Berranadd missing includes for C library functions
2023-09-25 Pino Toscanosetup: simplify authors list generation
...
tags
3 weeks ago v10.2.0 libvirt-python release 10.2.0
8 weeks ago v10.1.0 libvirt-python release 10.1.0
3 months ago v10.0.0 libvirt-python release 10.0.0
4 months ago v9.10.0 libvirt-python release 9.10.0
5 months ago v9.9.0 libvirt-python release 9.9.0
6 months ago v9.8.0 libvirt-python release 9.8.0
7 months ago v9.7.0 libvirt-python release 9.7.0
8 months ago v9.6.0 libvirt-python release 9.6.0
9 months ago v9.5.0 libvirt-python release 9.5.0
10 months ago v9.4.0 libvirt-python release 9.4.0
11 months ago v9.3.0 libvirt-python release 9.3.0
12 months ago v9.2.0 libvirt-python release 9.2.0
13 months ago v9.1.0 libvirt-python release 9.1.0
15 months ago v9.0.0 libvirt-python release 9.0.0
16 months ago v8.10.0 libvirt-python release 8.10.0
17 months ago v8.9.0 libvirt-python release 8.9.0
...
heads
3 weeks ago master
21 months ago v8.5.0-maint
3 years ago v6.8.0-maint
forks
Cached version (1836s old)
libvirt-python/ericb.git Eric Blake's pending patches for libvirt... eblake@redhat.com 4 years ago