descriptionPython bindings for libvirt
homepage URLhttps://libvirt.org/
repository URLhttps://gitlab.com/libvirt/libvirt-python.git
ownereblake@redhat.com
last changeThu, 2 May 2024 13:38:30 +0000 (2 15:38 +0200)
last refreshTue, 28 May 2024 19:58:59 +0000 (28 21:58 +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-05-02 Michal Privoznikci: Drop CentOS 8 Stream and switch F38 to 40, Ubuntu... master
2024-05-02 Michal Privozniktest_aio.py: Fix skip message
2024-05-02 Michal PrivoznikSwitch to PyMODINIT_FUNC annotation
2024-05-02 Michal Privoznikgenerator.py: Drop build/ prefix from #include
2024-05-02 Michal Privoznikgenerator.py: Switch from ${module}-export.c to ${modul...
2024-05-02 Michal Privoznikgenerator.py: Allow source and build dirs override
2024-05-02 Michal Privozniksetup.py: s/PY_VERSION/VERSION/
2024-05-02 Jiri DenemarkPost-release version bump to 10.4.0
2024-05-01 Jelle van der Waaexamples: replace logging.warn with logging.warningv10.3.0
2024-04-30 Daniel P. Berrangégitlab: stop using a venv when creating source/binary...
2024-04-25 Daniel P. Berrangéci: refresh with lcitool manifest
2024-04-25 Daniel P. Berrangéci: add 'python3-wheel' as a dep
2024-04-25 Daniel P. Berrangéci: refresh with latest lcitool manifest
2024-04-02 Jiri DenemarkPost-release version bump to 10.3.0
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
...
tags
3 weeks ago v10.3.0 libvirt-python release 10.3.0
8 weeks ago v10.2.0 libvirt-python release 10.2.0
2 months ago v10.1.0 libvirt-python release 10.1.0
4 months ago v10.0.0 libvirt-python release 10.0.0
5 months ago v9.10.0 libvirt-python release 9.10.0
6 months ago v9.9.0 libvirt-python release 9.9.0
7 months ago v9.8.0 libvirt-python release 9.8.0
8 months ago v9.7.0 libvirt-python release 9.7.0
9 months ago v9.6.0 libvirt-python release 9.6.0
10 months ago v9.5.0 libvirt-python release 9.5.0
11 months ago v9.4.0 libvirt-python release 9.4.0
12 months ago v9.3.0 libvirt-python release 9.3.0
13 months ago v9.2.0 libvirt-python release 9.2.0
14 months ago v9.1.0 libvirt-python release 9.1.0
16 months ago v9.0.0 libvirt-python release 9.0.0
17 months ago v8.10.0 libvirt-python release 8.10.0
...
heads
3 weeks ago master
22 months ago v8.5.0-maint
3 years ago v6.8.0-maint
forks
Cached version (1196s old)
libvirt-python/ericb.git Eric Blake's pending patches for libvirt... eblake@redhat.com 4 years ago