What is the advantage of using Python Virtualbox API?

ask picture ask · Apr 16, 2010 · Viewed 13.8k times · Source

what is the advantage of using a python virtualbox API instead of using XPCOM?

Answer

Etienne picture Etienne · Apr 17, 2010

The advantage is that pyvb is lot easier to work with.

On the contrary the documentation for the python API of XPCOM doesn't exist, and the API is not pythonic at all. You can't do introspection to find methods/attributes of an object, etc. So you have to check the C++ source to find how it works or some python scripts already written (like vboxshell.py and VBoxWebSrv.py).

On the other hand pyvb is really just python wrapper that call VirtuaBoxManager on the command line. I don't know if it's a real disadvantage or not?