Skip to main content

Flexible Metadata Format

Project description

Flexible Metadata Format

Description

The fmf Python module and command line tool implement a flexible format for defining metadata in plain text files which can be stored close to the source code and structured in a hierarchical way with support for inheritance.

Although the proposal initially originated from user stories centered around test execution, the format is general and thus can be used in broader scenarios, e.g. test coverage mapping.

Using this approach it’s also possible to combine both test execution metadata and test coverage information. Thanks to elasticity and hierarchy it provides ability to organize data into well-sized text documents while preventing duplication.

Synopsis

Command line usage is straightforward:

fmf command [options]

There are following commands available:

fmf ls      List identifiers of available objects
fmf show    Show metadata of available objects
fmf init    Initialize a new metadata tree

Examples

List names of all objects stored in the metadata tree:

fmf ls

Show all test metadata (with ‘test’ attribute defined):

fmf show --key test

Show metadata for all tree nodes (not only leaves):

fmf show --key test --whole

List all attributes for the /recursion tests:

fmf show --key test --name /recursion

Show all covered requirements:

fmf show --key requirement --key coverage

Search for all tests with the Tier1 tag defined and show a brief summary of what was found:

fmf show --key test --filter tags:Tier1 --verbose

Initialize a new metadata tree in the current directory:

fmf init

Check help message of individual commands for the full list of available options.

Options

Here is the list of the most frequently used options.

Select

Limit which metadata should be listed.

--key=KEYS

Key content definition (required attributes)

--name=NAMES

List objects with name matching regular expression

--filter=FLTRS

Apply advanced filter when selecting objects

--whole

Consider the whole tree (leaves only by default)

For filtering regular expressions can be used as well. See pydoc fmf.filter for advanced filtering options.

Format

Choose the best format for showing the metadata.

--format=FMT

Custom output format using the {} expansion

--value=VALUES

Values for the custom formatting string

See online documentation for details about custom format.

Utils

Various utility options.

--path PATHS

Path to the metadata tree (default: current directory)

--verbose

Print additional information standard error output

--debug

Turn on debugging output, do not catch exceptions

Check help message of individual commands for the full list of available options.

Install

The fmf package is available in Fedora and EPEL:

dnf install fmf

Install the latest version from the Copr repository:

dnf copr enable psss/fmf
dnf install fmf

or use PIP (sudo required if not in a virtualenv):

pip install fmf

See documentation for more details about installation options.

Authors

Petr Šplíchal, Jakub Krysl, Jan Ščotka, Alois Mahdal and Cleber Rosa.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

fmf-0.5.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

fmf-0.5.1-py2-none-any.whl (17.8 kB view details)

Uploaded Python 2

File details

Details for the file fmf-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fmf-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de61d83be00510483f1f9fd9f188f32222f9bd8add0b516d11e55e73d0a96370
MD5 02934e5e3c4750ee349208204b324801
BLAKE2b-256 f4208912623d44756e41e1e8f4f8f9714aa2c1e8defca8b94bff5439f2c3d788

See more details on using hashes here.

File details

Details for the file fmf-0.5.1-py2-none-any.whl.

File metadata

File hashes

Hashes for fmf-0.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 dfbe3a8f2b6168b01ef947fd951f310495f84aa3667ef15dcee7027cf740ca25
MD5 aa49c2816b20a2fd4af7e55589073c2a
BLAKE2b-256 79ceec86be65c430936deb58eee5421c9de0673a4cdb121f888106ab65f7320d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page