$npx skillfedfor your agent

tag-expressions

Built-in functions, types, exceptions, and other objects.

With conditionsPyPI TestingReleased Nov 2024176.1K downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tag_expressions-2.0.1-py3-none-any.whl
v2.0.1 · released 2024-11-23

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

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
Same gist for agents: .md · .json

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.

With conditions

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

Licensecopyleft license copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 629 days since the last release
Last repo commit
First released
Downloads176,087 / month, #10,252 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
tag expression parserlogical tag filteringboolean tag evaluationtag expression evaluatorand or not tag logicshunting yard parsertag-based filtering
Topics
bdd-testingtag-filtering

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 Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

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.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

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.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

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.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

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.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also cucumber-tag-expressions · boolean.py · simpleeval · leval · license-expression · py-expression-eval · greenery · cucumber-expressions · snuggs · asteval