VMware {code} Community
igferne
Contributor
Contributor
Jump to solution

Programming VIX in Python

Hello:

I need to program some funtions with VIX API but I need do it in python. For this purpose I need to import dll, etc to python... and call vix functions from a python script...

someone can helps me??

thanks!

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

There are some existing third party Python version of VIX available.

Note: none of these are supported or maintained by VMware.

http://sourceforge.net/projects/pyvix/ (hasn't been maintained for many years)

http://code.google.com/p/randomizedcode/downloads/list (fork of pyvix, doesn't seem to have much activity recently).

http://code.google.com/p/pyvmware/

If you want to do something quick and dirty, the ctypes module in Python will let you load the DLL and call functions:

http://docs.python.org/library/ctypes.html#module-ctypes

Hope this helps.

View solution in original post

0 Kudos
4 Replies
Dave_Mishchenko
Immortal
Immortal
Jump to solution

Your post has been moved to the VIX API forum.




Dave

VMware Communities User Moderator

Now available - vSphere Quick Start Guide

Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.

0 Kudos
admin
Immortal
Immortal
Jump to solution

There are some existing third party Python version of VIX available.

Note: none of these are supported or maintained by VMware.

http://sourceforge.net/projects/pyvix/ (hasn't been maintained for many years)

http://code.google.com/p/randomizedcode/downloads/list (fork of pyvix, doesn't seem to have much activity recently).

http://code.google.com/p/pyvmware/

If you want to do something quick and dirty, the ctypes module in Python will let you load the DLL and call functions:

http://docs.python.org/library/ctypes.html#module-ctypes

Hope this helps.

0 Kudos
igferne
Contributor
Contributor
Jump to solution

Oh thanks but I have soluted it yet!! I were seing the pyvix and pyvmware, but I don´t like because I want work in python 3.2. Using ctypes I have obtained that I need.

I call dll functions from a python module and work with them.

Thank you very much

0 Kudos
serdev
Contributor
Contributor
Jump to solution

An option for Python running VMware Workstation, Fusion, and Player is NrvrCommander at https://github.com/srguiwiz/nrvr-commander and the blog that goes with it at http://leosbog.nrvr.com/category/nrvrcommander/ .

0 Kudos