Skip to content

Python development

Joachim Metz edited this page Jul 14, 2022 · 1 revision

libfsapfs comes with Python-bindings named pyfsapfs.

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

Import

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

import pyfsapfs

Get version

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

pyfsapfs.get_version()

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

Also see

import pyfsapfs

help(pyfsapfs)
help(pyfsapfs.None)
Clone this wiki locally