Skip to content

Development

Joachim Metz edited this page Aug 19, 2016 · 7 revisions

Python development

Get version

import pyvshadow

pyvshadow.get_version()

Open volume

import pyvshadow


vshadow_volume = pyvshadow.volume()

vshadow_volume.open("image.raw")

vshadow_volume.close()

The explicit call to vshadow_volume.close() is not required.

Open volume using a file-like object

import pyvshadow


file_object = open("image.raw", "rb")

vshadow_volume = pyvshadow.volume()

vshadow_volume.open_file_object(file_object)

vshadow_volume.close()

The explicit call to vshadow_volume.close() is not required.

Also see

import pyvshadow

help(pyvshadow)
help(pyvshadow.volume)
Clone this wiki locally