$npx skillfedfor your agent

boolean.py

Define boolean algebras, create and parse boolean expressions and create custom boolean DSL.

With conditionsPyPI LibrariesReleased Apr 202539.4M downloads / moBSD-2-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — boolean_py-5.0-py3-none-any.whl
v5.0 · released 2025-04-03

Yes, if you need boolean expression parsing and simplification. The library is stable, dependency-free, and well-established (since 2016). The aging maintenance status (498 days since last release) is not a blocker for a mature, focused tool with no known vulnerabilities, but verify that its feature set matches your needs before committing to it for new projects.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install with no runtime dependencies.
  • Marked as aging (last release 498 days ago), though the repository remains active and the package is classified as Production/Stable.

License · maintenance · safety

BSD-2-Clause (permissive) — BSD-2-Clause is a permissive license; you can use this package freely in commercial and private projects with minimal restrictions.

last release 2025-04-03 (498 days) · last repo commit 2025-04-03 · 85 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 39,424,988 downloads/mo, #697 on PyPI

Verify before relying

pip install boolean.py

from boolean import Expression, AND, OR, NOT

expr = Expression("a AND (b OR NOT c)")
simplified = expr.simplify()
print(simplified)
  • Whether the package supports Python 3.x versions beyond what the classifiers indicate (requires_python is unspecified)
  • Whether custom tokenizer and DSL features are production-ready or documented with examples
Same gist for agents: .md · .json

What it is and what it does

boolean.py is a library for working with boolean expressions and algebra. It lets you parse boolean logic from strings, simplify expressions to canonical forms, and compare them for equivalence. The core operations are AND, OR, and NOT on named variables, and the library handles the algebraic rules that govern how these combine and reduce.

The package is designed for developers who need to work with logical constraints, rule engines, or domain-specific languages built on boolean logic. It has no runtime dependencies, making it lightweight to integrate. You can extend it with custom tokenizers and algebras to handle domain-specific syntax, though the main use case is straightforward expression parsing and manipulation.

Use it for

  • Parse and simplify boolean constraints in rule engines or configuration systems
  • Compare logical expressions for equivalence in automated testing or verification
  • Build a domain-specific language for boolean logic with custom operators and syntax
  • Reduce complex boolean formulas to simpler equivalent forms for analysis
  • Validate and normalize user-supplied boolean expressions in applications

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need boolean expression parsing and simplification.

The library is stable, dependency-free, and well-established (since 2016). The aging maintenance status (498 days since last release) is not a blocker for a mature, focused tool with no known vulnerabilities, but verify that its feature set matches your needs before committing to it for new projects.

Install

boolean-py on PyPI

Before you install

Low friction install with no runtime dependencies. Marked as aging (last release 498 days ago), though the repository remains active and the package is classified as Production/Stable.

License in practice

BSD-2-Clause is a permissive license; you can use this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install boolean.py

from boolean import Expression, AND, OR, NOT

expr = Expression("a AND (b OR NOT c)")
simplified = expr.simplify()
print(simplified)

Verify before relying

  • Whether the package supports Python 3.x versions beyond what the classifiers indicate (requires_python is unspecified)
  • Whether custom tokenizer and DSL features are production-ready or documented with examples

Package facts

LicenseBSD-2-Clause permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 498 days since the last release
Last repo commit
First released
Downloads39,424,988 / month, #697 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: CompilersTopic :: Software Development :: LibrariesTopic :: Utilities

Evidence: boolean_py-5.0-py3-none-any.whl

Tags

Capabilities
boolean expression parserboolean algebra librarylogic expression simplificationboolean DSL creatorparse boolean logicboolean expression evaluatorcustom boolean tokenizer
Topics
logic-algebraexpression-parserdsl-builder
PyPI keywords
boolean expressionboolean algebralogicexpression parser

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 › “boolean expression parser”

  • boolean.pyParse, simplify, and compare boolean expressions with variables and…
  • esp-bool-parserParses and evaluates boolean expressions from ESP-IDF configuration…
  • tag-expressionsParses and evaluates logical tag expressions using a modified…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
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
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / 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

See also license-expression · str2bool · tag-expressions · py-expression-eval · esp-bool-parser · pyspdx · simpleeval · cucumber-tag-expressions · rest_condition · cel-expr-python