Skip to main content

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.

Additionally, the Python build module is required and can be installed via:

$ dnf install python3-build

or

$ python3 -m pip install –user build

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.

To install pytest, use one of:

$ dnf install python3-pytest

or

$ python3 -m pip install –user pytest

To install tox, use one of:

$ dnf install python3-tox

or

$ python3 -m pip install –user tox

Additionally, install the remaining test dependencies:

$ python3 -m pip install -r requirements-test.txt

Depending on your preferred setup, you can run the tests either as

$ python3 -m pytest

or as

$ tox

Free-threaded Python (py313t, py314t) test environments require tox>=4.26 and the corresponding free-threaded interpreters (python3.13t, python3.14t) to be installed.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libvirt_python-12.6.0.tar.gz (252.7 kB view details)

Uploaded Source

File details

Details for the file libvirt_python-12.6.0.tar.gz.

File metadata

  • Download URL: libvirt_python-12.6.0.tar.gz
  • Upload date:
  • Size: 252.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for libvirt_python-12.6.0.tar.gz
Algorithm Hash digest
SHA256 f390abff81d4afd6c33157ade82912863b87de9c35172e9b0c9f0dfcdc09b139
MD5 8f15fe28552e399106a533cef0d30aa7
BLAKE2b-256 1d18b64bc6c6739405fddd451f78e756c17411d309265ec748683b806bd1dd47

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

12.6.0 This release

1 file

12.5.0

1 file

12.4.0

1 file

12.3.0

1 file

12.2.0

1 file

12.1.0

1 file

12.0.0

1 file

11.10.0

1 file

11.9.0

1 file

11.8.0

1 file

11.7.0

1 file

11.6.0

1 file

11.5.0

1 file

11.4.0

1 file

11.3.0

1 file

11.2.0

1 file

11.1.0

1 file

11.0.0

1 file

10.10.0

1 file

10.9.0

1 file

10.8.0

1 file

10.7.0

1 file

10.6.0

1 file

10.5.0

1 file

10.4.0

1 file

10.3.0

1 file

10.2.0

1 file

10.1.0

1 file

10.0.0

1 file

9.10.0

1 file

9.9.0

1 file

9.8.0

1 file

9.7.0

1 file

9.6.0

1 file

9.5.0

1 file

9.4.0

1 file

9.3.0

1 file

9.2.0

1 file

9.1.0

1 file

9.0.0

1 file

8.10.0

1 file

8.9.0

1 file

8.8.0

1 file

8.7.0

1 file

8.6.0

1 file

8.5.0

1 file

8.4.0

1 file

8.3.0

1 file

8.2.0

1 file

8.1.0

1 file

8.0.0

1 file

7.10.0

1 file

7.9.0

1 file

7.8.0

1 file

7.7.0

1 file

7.6.0

1 file

7.5.0

1 file

7.4.0

1 file

7.3.0

1 file

7.2.0

1 file

7.1.0

1 file

7.0.0

1 file

6.10.0

1 file

6.9.0

1 file

6.8.0

1 file

6.7.0

1 file

6.6.0

1 file

6.5.0

1 file

6.4.0

1 file

6.3.0

1 file

6.2.0

1 file

6.1.0

1 file

6.0.0

1 file

5.10.0

1 file

5.9.0

1 file

5.8.0

1 file

5.7.0

1 file

5.6.0

1 file

5.5.0

1 file

5.3.0

1 file

5.2.0

1 file

5.1.0

1 file

5.0.0

1 file

4.10.0

1 file

4.9.0

1 file

4.8.0

1 file

4.7.0

1 file

4.6.0

1 file

4.5.0

1 file

4.4.0

1 file

4.3.0

1 file

4.2.0

1 file

4.1.0

1 file

4.0.0

1 file

3.10.0

1 file

3.9.0

1 file

3.8.0

1 file

3.7.0

1 file

3.6.0

1 file

3.5.0

1 file

3.4.0

1 file

3.3.0

1 file

3.2.0

1 file

3.1.0

1 file

3.0.0

1 file

2.5.0

1 file

2.4.0

1 file

2.3.0

1 file

2.2.0

1 file

2.1.0

1 file

2.0.0

1 file

1.3.5

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2.21

1 file

1.2.20

1 file

1.2.19

1 file

1.2.18

1 file

1.2.17

1 file

1.2.16

1 file

1.2.15

1 file

1.2.14

1 file

1.2.13

1 file

1.2.12

1 file

1.2.11

1 file

1.2.10

1 file

1.2.9

1 file

1.2.8

1 file

1.2.7

1 file

1.2.6

1 file

1.2.5

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page