[Pyvix-discuss] Is this project dead?
Status: Beta
Brought to you by:
woodsplitter
|
From: Patrick D. <pat...@vm...> - 2010-04-08 18:48:37
|
Hey guys,
I was looking through the archives and haven't seen any activity since
2007. Is the project dead?
I've been working some python bindings for libvix which uses ctypes to
create a very "pythonic" type library. A sample of how you would work
with it would look like:
$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vix
>>> v = vix.Vix()
>>> v.connect()
>>> vm = v.get_virtual_machine('/path/to/vm.vmx')
>>> vm.login('username', 'password')
>>> vm.put_file('myfile', '/path/to/dir/on/host/myfile')
>>> vm.get_file('/path/to/dir/on/host/myfile')
>>> vm.rm('/path/to/dir/on/host/myfile')
>>> vm.ps()
[(1L, 'init', 'root', '/sbin/init'), (2L, 'kthreadd', 'root',
'kthreadd'), (3L, '0', 'root', 'migration/0'), (4L, '0', 'root',
'ksoftirqd/0'), (5L, '0', 'root', 'watchdog/0'), ....]
>>> vm.kill(pid)
>>> ...
Let me know if anyone is interested. So far I've only tested it out with
Linux, but I would imagine with some tweaking I could get it to work with
Windows as well.
Thanks!
--Patrick.
|