Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

What’s in pyvbox:

  • A complete implementation of the VirtualBox Main API

  • Create a VirtualBox instance and seamlessly explorer the potential of VirtualBox’s amazing Main API

  • Pythonic functions and names.

  • Introspection, documentation strings, getters and setters…

Project hosting provided by github.com.

Install and run

Simply run the following:

> python setup.py install

or PyPi:

> pip install pyvbox

Exploring the library:

> ipython
In [1]: import virtualbox

In [2]: virtualbox?

In [3]: virtualbox.VirtualBox?

In [4]: virtualbox.library.IMachine?

In [5]: virtualbox.library.MachineState?

In [6]: virtualbox.library.MachineState.teleported?

Listing machines:

> ipython
In [1]: import virtualbox

In [2]: vbox = virtualbox.VirtualBox()

In [3]: print("VM(s):\n + %s" % "\n + ".join([vm.name for vm in vbox.machines]))
VM(s):
 + filestore
 + xpsp3
 + win7
 + win8
 + test_vm

Start screen shot stop:

> ipython
In [1]: import virtualbox

In [2]: vbox = virtualbox.VirtualBox()

In [3]: session = virtualbox.Session()

In [4]: vm = vbox.find_machine('test_vm')

In [5]: progress = vm.launch_vm_process(session, 'gui', '')

In [6]: h, w, d = session.console.display.get_screen_resolution(0)

In [7]: png = session.console.display.take_screen_shot_png_to_array(0, h, w)

In [8]: with open('screenshot.png', 'wb') as f:
  ....:     f.write(png)

In [9]: print(session.state)
Locked

In [10]: session.state
Out[10]: SessionState(2)

In [11]: session.state >= 2
Out[11]: True

In [12]: session.console.power_down()

Issues

Source code for pyvbox is hosted on GitHub. Please file bug reports with GitHub’s issues system.

Compatibility

pyvbox utilises the VirtualBox project’s vboxapi to gain access to the underlying COM API primitives. Therefore, pyvbox is compatible on systems which have a running vboxapi.

Change log

version 0.0.3 (30/05/2012)

  • added manage

version 0.0.2 (28/05/2013)

  • library ext module

version 0.0.1 (27/05/2013)

  • packaged

version 0.0.0 (20/05/2013)

  • builder

  • library primitives

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvbox-0.0.3.tar.gz (189.8 kB view details)

Uploaded Source

File details

Details for the file pyvbox-0.0.3.tar.gz.

File metadata

  • Download URL: pyvbox-0.0.3.tar.gz
  • Upload date:
  • Size: 189.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyvbox-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0702d0c50928edae7833eb21e73fe4b0ca5a83d3c94903052524b2aac18aca0a
MD5 5ae88ea3adaf37a27b42e1fc055c73bd
BLAKE2b-256 453be002bb32f3aa667d8742cd772258fdd8e94e8f5ee1ab84e403074d9c5407

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.1

2 files

2.1.0

2 files

1.3.2

1 file

1.3.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.0

1 file

0.2.2

1 file

0.2.1

0.2.0

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

This release

0.0.3 This release

1 file

0.0.2

1 file

0.0.1

1 file

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page