Tag Expressions is a Python library that provides an implementation for parsing and evaluating Cucumber Tag Expressions. It allows you to check if a set of tags matches a given boolean expression string. The current version is 2.0.1, with releases typically occurring for maintenance or minor feature additions, following a stable core API.
pip install tag-expressionsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import and use the `evaluate` function with various boolean tag expressions and tag lists.
Ensure your project is running on Python 3.8 or newer. If you need Python 2 compatibility, you must use a version prior to 2.0.0 (e.g., `pip install 'tag-expressions<2.0.0'`).
Always pass a list or other iterable of tag strings, even if there's only one tag. For example, `evaluate('tag1', ['tag1'])` not `evaluate('tag1', 'tag1')`.Refer to the Cucumber Tag Expressions documentation for the supported grammar and behavior to avoid unexpected evaluation results. Only `and`, `or`, `not`, and parentheses are supported.
No dependency data recorded yet.