bindings.rst 2.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
========================================================
Bindings for other languages and integration API modules
========================================================

.. contents::

Libvirt supports C and C++ directly, and has bindings available for
other languages:

-  **C#**: Arnaud Champion develops `C# bindings <csharp.html>`__.

-  **Go**: Daniel Berrange develops `Go
13
   bindings <https://pkg.go.dev/libvirt.org/go/libvirt>`__.
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

-  **Java**: Daniel Veillard develops `Java bindings <java.html>`__.

-  **OCaml**: Richard Jones develops `OCaml
   bindings <https://libvirt.org/ocaml/>`__.

-  **Perl**: Daniel Berrange develops `Perl
   bindings <https://search.cpan.org/dist/Sys-Virt/>`__.

-  **PHP**: Radek Hladik started developing `PHP
   bindings <https://libvirt.org/php>`__ in 2010.

   In February 2011 the binding development has been moved to the
   libvirt.org website as libvirt-php project.

   The project is now maintained by Michal Novotny and it's heavily
   based on Radek's version. For more information, including information
   on posting patches to libvirt-php, please refer to the `PHP
   bindings <https://libvirt.org/php>`__ site.

-  **Python**: Libvirt's python bindings are split to a separate
   `package <https://gitlab.com/libvirt/libvirt-python>`__ since version
   1.2.0, older versions came with direct support for the Python
   language.

   If your libvirt is installed as packages, rather than compiled by you
   from source code, ensure you have the appropriate package installed.

   This is named **libvirt-python** on RHEL/Fedora,
   `python-libvirt <https://packages.ubuntu.com/search?keywords=python-libvirt>`__
   on Ubuntu, and may be named differently on others.

   For usage information, see the `Python API bindings <python.html>`__
   page.

-  **Ruby**: Chris Lalancette develops `Ruby
   bindings <https://libvirt.org/ruby/>`__.

Integration API modules:

-  **D-Bus**: Pavel Hrdina develops `D-Bus API <dbus.html>`__.

For information on using libvirt on **Windows** `please see the Windows
support page <windows.html>`__.

Support, requests or help for libvirt bindings are welcome on the
Jano Tomko's avatar
Jano Tomko committed
60
`mailing list <https://listman.redhat.com/mailman/listinfo/libvir-list/>`__,
61
62
as usual try to provide enough background information and make sure you
use recent version, see the `help page <bugs.html>`__.