Python development - libyal/libfsxfs GitHub Wiki

libfsxfs comes with Python-bindings named pyfsxfs.

Below are examples how use pyfsxfs. They assume you have a working version of pyfsxfs on your system. To build pyfsxfs see Building.

Import

To be able to use pyfsxfs in your Python scripts add the following import:

import pyfsxfs

Get version

The get_version() module function can be used to retrieve the version of the pyfsxfs.

pyfsxfs.get_version()

This will return a textual string (Unicode) that contains the libfsxfs version. Since pyfsxfs is a wrapper around libfsxfs it does not have a separate version.

Also see

import pyfsxfs

help(pyfsxfs)
help(pyfsxfs.None)