Skip to content

Python development

Joachim Metz edited this page Aug 5, 2022 · 1 revision

libfmos comes with Python-bindings named pyfmos.

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

Import

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

import pyfmos

Get version

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

pyfmos.get_version()

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

Also see

import pyfmos

help(pyfmos)
help(pyfmos.None)

Clone this wiki locally