cucumber-tag-expressions
Provides a tag-expression parser and evaluation logic for cucumber/behave
Decision gist · record as of 2026-08-14
Yes. This is a lightweight, actively maintained library with zero dependencies, permissive licensing, and a clear, focused purpose. Install it if you are building or using a Gherkin-based BDD test runner (such as behave) or need to parse and evaluate tag expressions for test selection. No security vulnerabilities are known.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with no runtime dependencies and active maintenance (last commit 2026-08-14).
- Supports current Python versions (3.10–3.14).
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects.
last release 2026-08-05 (9 days) · last repo commit 2026-08-14 · 19 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,760,567 downloads/mo, #2,502 on PyPI
Alternatives
Verify before relying
pip install cucumber-tag-expressions
from cucumber_tag_expressions import parse
fast = parse("@fast")
print(fast({"@fast", "@wip"})) # True
print(fast({"@performance", "@slow"})) # False- Whether the package is used by test runners other than behave or if behave integration is automatic.
- Performance characteristics when evaluating complex expressions against large tag sets.
What it is and what it does
Cucumber Tag Expressions is a parser and evaluator for boolean tag expressions used in Gherkin-based BDD testing. It takes a human-readable expression like `@fast and not @slow` or `(@login or @registration) and @critical`, parses it into an evaluable form, and then checks whether a given set of tags satisfies that expression. The package has no runtime dependencies and is designed to integrate with test runners like behave, which use tag expressions to filter which scenarios to execute.
The typical workflow is: a test runner receives a tag expression from the command line (e.g., `--tags="@smoke and not @wip"`), passes it to this package's `parse()` function, and then evaluates the resulting object against the tags on each scenario. It supports the full boolean algebra of `and`, `or`, and `not` operators, with parentheses for grouping, making it possible to express complex filtering logic in a readable, declarative way.
Use it for
- Filter which test scenarios to run in CI/CD pipelines by tag expression (e.g., run only @smoke tests on every commit).
- Locally run a subset of scenarios during development using tag expressions (e.g., `@wip and not @slow`).
- Implement custom test selection logic in a test harness that needs to parse and evaluate tag-based filters.
- Build a test reporting or filtering tool that accepts user-supplied tag expressions to organize test results.
- Enforce test categorization in BDD frameworks by evaluating which scenarios match complex tag criteria.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a lightweight, actively maintained library with zero dependencies, permissive licensing, and a clear, focused purpose. Install it if you are building or using a Gherkin-based BDD test runner (such as behave) or need to parse and evaluate tag expressions for test selection. No security vulnerabilities are known.
Install
cucumber-tag-expressions on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies and active maintenance (last commit 2026-08-14). Supports current Python versions (3.10–3.14).
Requires Python 3.10 or later.
License in practice
MIT license permits unrestricted use, modification, and distribution in commercial and private projects.
Quickstart
pip install cucumber-tag-expressions
from cucumber_tag_expressions import parse
fast = parse("@fast")
print(fast({"@fast", "@wip"})) # True
print(fast({"@performance", "@slow"})) # False
Verify before relying
- Whether the package is used by test runners other than behave or if behave integration is automatic.
- Performance characteristics when evaluating complex expressions against large tag sets.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,760,567 / month, #2,502 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: cucumber_tag_expressions-11.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gherkin tag expression parser”
- cucumber-tag-expressionsParses and evaluates boolean tag expressions (using and, or, not…
- tag-expressionsParses and evaluates logical tag expressions using a modified…
- radish-bddradish is a Behavior Driven Development (BDD) test framework written…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also cucumber-expressions · gherkin-official · tag-expressions · behave · pytest-bdd · radish-bdd · behavex · behave-django · boolean.py · license-expression