flagsmith-flag-engine
Flag engine for the Flagsmith API.
What it is and what it does
Flagsmith Flag Engine is the core evaluation runtime that powers the Flagsmith feature flag and remote configuration service. It takes flag definitions and rules, then evaluates them against user context to determine which flags are enabled and what configuration values apply. The engine is written in plain Python using Marshmallow schemas for data validation and serialization, making it lightweight and portable.
This package is the computational heart of Flagsmith's flag resolution logic. Rather than a full feature-flag management platform, it's the evaluation component—useful if you're integrating Flagsmith's flag logic into your own systems or running a custom deployment where you need the flag engine as a library. It depends on jsonpath-rfc9535 for JSONPath queries, semver for version comparisons, and typing-extensions for type hints.
Use it for:
- Embed flag evaluation logic into a custom Flagsmith deployment or private cloud instance
- Integrate remote configuration rule evaluation into an existing application without the full Flagsmith platform
- Build a feature flag service that reuses Flagsmith's proven evaluation semantics and rule engine
- Test flag rules and configurations offline using the engine as a library in your test suite
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Evaluates feature flags and remote configuration rules using a lightweight, pure-Python engine that powers the Flagsmith API.
Yes, if you need Flagsmith's flag evaluation logic as a library component. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it safe to adopt. However, verify first whether you need the full Flagsmith platform or just this engine—it is a specialized component designed primarily to power the main Flagsmith API rather than a standalone feature-flag client.
Install
flagsmith-flag-engine on PyPI
pip
pip install flagsmith-flag-engineuv
uv add flagsmith-flag-enginepoetry
poetry add flagsmith-flag-engineInstalling flagsmith-flag-engine
Before you install
Low friction: pure Python wheel with only three runtime dependencies (jsonpath-rfc9535, semver, typing-extensions). Active maintenance with a recent release 66 days ago and commits through August 2026.
License in practice
BSD 3-Clause license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install flagsmith-flag-engine
from flagsmith_flag_engine import evaluate_flags
# Engine evaluates flags using Marshmallow schemas and plain Python
Verify before relying
- Whether this engine is intended for standalone use or primarily as a dependency of the main Flagsmith API
- Performance characteristics or throughput limits for flag evaluation at scale
- Whether the engine handles all flag types and rule conditions that the full Flagsmith service supports
Package facts
| License | BSD3 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — jsonpath-rfc9535, semver, typing-extensions |
| Maintenance | actively maintained — 66 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,019,299/month — #4,496 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flagsmith_flag_engine-10.2.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
flagsmithFlagsmith is a Python SDK for managing feature…
permissive · top 5,000 on PyPI
openfeature-provider-flagsmithConnects the OpenFeature SDK to Flagsmith for…
unclear · top 15,000 on PyPI
openfeature-flagd-coreEvaluates feature flags using JSON logic and…
permissive · top 15,000 on PyPI
openfeature-provider-flagdIntegrates flagd flag evaluation into Python…
permissive · top 15,000 on PyPI
yggdrasil-engineProvides Python bindings to the Unleash…
permissive · top 5,000 on PyPI
openfeature-hooks-opentelemetryAutomatically captures feature flag evaluations…
permissive · top 15,000 on PyPI
harness-featureflagsPython SDK for evaluating and managing feature…
permissive · top 15,000 on PyPI
zen-enginezen-engine is a Python binding for a Rust-based…
unclear · top 15,000 on PyPI
inspect-aiInspect is a framework for evaluating large…
permissive · top 5,000 on PyPI
openfeature-provider-ofrepIntegrates OpenFeature SDK with remote flag…
permissive · top 15,000 on PyPI