Skip to content

Python development

Joachim Metz edited this page Jan 15, 2022 · 1 revision

libfshfs comes with Python-bindings named pyfshfs.

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

Import

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

import pyfshfs

Get version

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

pyfshfs.get_version()

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

Also see

import pyfshfs

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