$npx skillfedfor your agent

json_logic_qubit

Build complex rules, serialize them as JSON, and execute them in Python

With conditionsPyPI Python ModulesReleased Aug 2018454.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — json_logic_qubit-0.9.1-py2.py3-none-any.whl
v0.9.1 · released 2018-08-15

Yes, if you need to execute JsonLogic rules and can accept an unmaintained package. The library is simple, has no dependencies, and the JsonLogic format itself is stable and well-documented. Install it for rule evaluation in production only if you are comfortable maintaining a fork or have low risk tolerance for unpatched issues. Not recommended for new projects requiring active maintenance or support.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • However, the package is abandoned—last released in August 2018 with no maintenance activity since.
  • Use only if the JsonLogic format itself is stable enough for your use case and you can maintain a fork if needed.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.

last release 2018-08-15 (2921 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 454,522 downloads/mo, #6,568 on PyPI

Verify before relying

pip install json-logic-qubit

from json_logic import jsonLogic

# Simple comparison
result = jsonLogic({"==": [1, 1]})
# True

# Data-driven rule
rules = {"<": [{"var": "temp"}, 110]}
data = {"temp": 100}
result = jsonLogic(rules, data)
# True
  • Whether the package works reliably with modern Python versions beyond 3.7, given its abandoned status and age.
  • Real-world performance characteristics when executing complex nested rules or large rule sets.
  • Whether the implementation fully matches the current JsonLogic specification at jsonlogic.com.
Same gist for agents: .md · .json

What it is and what it does

json-logic-qubit is a Python implementation of the JsonLogic format, a JSON-based syntax for expressing conditional logic that can be shared across languages. It accepts JsonLogic rule objects and evaluates them against optional data, supporting operators like comparison (==, <, >), logical operations (and, or), and data variable access via the 'var' operator. Rules are plain JSON structures, making them serializable and storable in databases alongside records.

The package has no runtime dependencies and installs cleanly. It is a direct port of the JavaScript json-logic-js library. However, it has been abandoned since August 2018 with no maintenance or updates since its initial release, so it should be considered stable but unsupported.

Use it for

  • Store conditional business rules in a database alongside records and evaluate them dynamically without code deployment.
  • Share validation or filtering logic between a web front-end and Python back-end without duplicating rule definitions.
  • Build a rules engine for workflow automation, eligibility checks, or dynamic feature flags using JSON configuration.
  • Evaluate complex nested conditions from external rule definitions without parsing custom DSLs or writing Python conditionals.
  • Serialize and version control business logic as JSON for audit trails and rule change tracking.

Worth the install?

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

With conditions

Yes, if you need to execute JsonLogic rules and can accept an unmaintained package.

The library is simple, has no dependencies, and the JsonLogic format itself is stable and well-documented. Install it for rule evaluation in production only if you are comfortable maintaining a fork or have low risk tolerance for unpatched issues. Not recommended for new projects requiring active maintenance or support.

Install

json-logic-qubit on PyPI

Before you install

Installation is straightforward with no runtime dependencies. However, the package is abandoned—last released in August 2018 with no maintenance activity since. Use only if the JsonLogic format itself is stable enough for your use case and you can maintain a fork if needed.

License in practice

MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.

Quickstart

pip install json-logic-qubit

from json_logic import jsonLogic

# Simple comparison
result = jsonLogic({"==": [1, 1]})
# True

# Data-driven rule
rules = {"<": [{"var": "temp"}, 110]}
data = {"temp": 100}
result = jsonLogic(rules, data)
# True

Verify before relying

  • Whether the package works reliably with modern Python versions beyond 3.7, given its abandoned status and age.
  • Real-world performance characteristics when executing complex nested rules or large rule sets.
  • Whether the implementation fully matches the current JsonLogic specification at jsonlogic.com.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,921 days since the last release
First released
Downloads454,522 / month, #6,568 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: Libraries :: Python Modules

Evidence: json_logic_qubit-0.9.1-py2.py3-none-any.whl

Tags

Capabilities
json logic rules engineexecute json logic in pythoncross-language rule evaluationserialize conditional logic as jsonjsonlogic parserrules engine pythonlogic rules database storage
Topics
rules-enginejson-dslcross-language
PyPI keywords
json-logic

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 › “execute json logic in python”

  • json_logic_qubitParses and executes JsonLogic rules—a language-agnostic JSON format…
  • zen-enginezen-engine is a Python binding for a Rust-based business rules engine…
  • json-logicParses and executes JsonLogic rules—a JSON-serializable format for…

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

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also json-logic · panzi-json-logic · business-rules · zen-engine · jsonpath-python · anyjson · jsonable · databricks-labs-dqx · json-flatten · plyara