Flexible Metadata Format

raw JSON →
1.7.0 verified Fri May 01 auth: no python

fmf (Flexible Metadata Format) is a file format designed for storing and sharing metadata using a human-friendly Yet Another Markup Language (YAML)-like syntax. Version 1.7.0, released occasionally.

pip install fmf
error ModuleNotFoundError: No module named 'fmf'
cause fmf is not installed or not in the Python path.
fix
Run 'pip install fmf'
error fmf.utils.FmfException: Directory '...' does not exist or is not a directory.
cause fmf.Tree() received a file path instead of a directory.
fix
Pass a directory path to fmf.Tree().
gotcha fmf.Tree expects a directory, not a file. Using a file path will raise fmf.utils.FmfException.
fix Pass a directory containing metadata YAML files.
breaking fmf 1.7.0 requires Python >=3.9. Older Python versions will fail to install.
fix Use Python 3.9 or later.

Load a metadata tree from a directory.

import fmf

tree = fmf.Tree('path/to/metadata')
print(tree.name)