[libvirt-users] about python-libvirt

Andrea Bolognani abologna at redhat.com
Thu May 10 10:19:18 UTC 2018


[re-adding libvirt-users; please don't take replies off-list]

On Thu, 2018-05-10 at 17:32 +0800, lizhuoyao wrote:
> Thanks!
> 
> But I'm not clear that what the language binding means? 
> What the relationship between they? Is that the code from
> https://libvirt.org/sources/ can be replaced completely by
> the code from https://libvirt.org/sources/python? 

Language bindings are the means through which libvirt, which is
implemented in C, can be used from non-C languages such as Python.
It's basically a bunch of glue code that allows Python code to
call into C code.

In order to use libvirt from Python, you need to have *both*
libvirt itself *and* the Python bindings installed on the system:
libvirt-python doesn't replace libvirt, and in fact can't work at
all unless the C library is available as well.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvirt-users mailing list