tag-expressions
Built-in functions, types, exceptions, and other objects.
Decision gist · record as of 2026-08-14
Yes, if you need to evaluate logical tag expressions in a test or filtering context. The package is stable, dependency-free, and supports modern Python versions. The copyleft license is a consideration for proprietary use. Dormancy is not a blocker for a mature, focused library with no external dependencies, but verify it meets your Python version and licensing requirements before adopting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Repository is dormant (last commit 2024-11-23, 629 days since release), but the package is marked Production/Stable and supports modern Python versions through 3.13.
License · maintenance · safety
copyleft license (copyleft) — Licensed under GPLv3+, a copyleft license requiring derivative works to be distributed under the same terms. Use in proprietary software may require careful review of your distribution model.
last release 2024-11-23 (629 days) · last repo commit 2024-11-23 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,087 downloads/mo, #10,252 on PyPI
Alternatives
Verify before relying
from tagexpressions import parse
expression = '(a and b) or (c and d)'
compiled = parse(expression)
data = ['a', 'b', 'c', 'd']
result = compiled.evaluate(data) # True- Whether the package is actively maintained or if dormancy poses a risk for future Python compatibility
- Real-world usage frequency beyond the stated 176,087 monthly downloads ranking
What it is and what it does
tag-expressions is a Python port of Cucumber's tag expression evaluator. It takes a logical expression written with tags and boolean operators (and, or, not) and compiles it into an evaluable form, then checks whether a given set of tags satisfies that expression. The package uses a modified Shunting Yard algorithm to parse infix expressions into an internal representation that respects operator precedence: parentheses, then or, then and, then not.
It's designed for test filtering and tagging scenarios, particularly in BDD frameworks like Cucumber and radish. You write an expression like '(a and b) or (c and d)', compile it once, then evaluate it repeatedly against different tag lists to determine whether they match the filter criteria.
Use it for
- Filter test cases in BDD frameworks by tag combinations without re-parsing the expression each time
- Build dynamic test selection logic where users specify tag filters as human-readable boolean expressions
- Implement tag-based feature gating or conditional logic in test runners or CI pipelines
- Parse and evaluate user-supplied tag queries in applications that organize content or items by tags
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to evaluate logical tag expressions in a test or filtering context.
The package is stable, dependency-free, and supports modern Python versions. The copyleft license is a consideration for proprietary use. Dormancy is not a blocker for a mature, focused library with no external dependencies, but verify it meets your Python version and licensing requirements before adopting.
Install
tag-expressions on PyPI
Before you install
Low install friction with no runtime dependencies. Repository is dormant (last commit 2024-11-23, 629 days since release), but the package is marked Production/Stable and supports modern Python versions through 3.13.
License in practice
Licensed under GPLv3+, a copyleft license requiring derivative works to be distributed under the same terms. Use in proprietary software may require careful review of your distribution model.
Quickstart
from tagexpressions import parse
expression = '(a and b) or (c and d)'
compiled = parse(expression)
data = ['a', 'b', 'c', 'd']
result = compiled.evaluate(data) # True
Verify before relying
- Whether the package is actively maintained or if dormancy poses a risk for future Python compatibility
- Real-world usage frequency beyond the stated 176,087 monthly downloads ranking
Package facts
| License | copyleft license copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 629 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,087 / month, #10,252 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 :: ConsoleLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)Operating System :: MacOS :: MacOS XOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: ImplementationProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing |
Evidence: tag_expressions-2.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 › “tag expression parser”
- tag-expressionsParses and evaluates logical tag expressions using a modified…
- cucumber-tag-expressionsParses and evaluates boolean tag expressions (using and, or, not…
- spdx-toolsParse, validate, create, and convert SPDX software license documents…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also cucumber-tag-expressions · boolean.py · simpleeval · leval · license-expression · py-expression-eval · greenery · cucumber-expressions · snuggs · asteval