Python development - libyal/libvsgpt GitHub Wiki
libvsgpt comes with Python-bindings named pyvsgpt.
Below are examples how use pyvsgpt. They assume you have a working version of pyvsgpt on your system. To build pyvsgpt see Building.
Import
To be able to use pyvsgpt in your Python scripts add the following import:
import pyvsgpt
Get version
The get_version() module function can be used to retrieve the version of the pyvsgpt.
pyvsgpt.get_version()
This will return a textual string (Unicode) that contains the libvsgpt version. Since pyvsgpt is a wrapper around libvsgpt it does not have a separate version.
Also see
import pyvsgpt
help(pyvsgpt)
help(pyvsgpt.None)