skillfed

flagsmith-flag-engine

Flag engine for the Flagsmith API.

flagsmith-flag-engine v10.2.0 1.0M downloads/30d#4,496 on PyPI10
Permissive license BSD3 Active released

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-engine

uv

uv add flagsmith-flag-engine

poetry

poetry add flagsmith-flag-engine

Installing 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

License :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

feature flag evaluation engineremote config flag engineflagsmith flag evaluationfeature flag rules engineflag evaluation libraryremote configuration engine
feature-flagsremote-config

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

flagsmith

Flagsmith is a Python SDK for managing feature…

permissive · top 5,000 on PyPI

openfeature-provider-flagsmith

Connects the OpenFeature SDK to Flagsmith for…

unclear · top 15,000 on PyPI

openfeature-flagd-core

Evaluates feature flags using JSON logic and…

permissive · top 15,000 on PyPI

openfeature-provider-flagd

Integrates flagd flag evaluation into Python…

permissive · top 15,000 on PyPI

yggdrasil-engine

Provides Python bindings to the Unleash…

permissive · top 5,000 on PyPI

openfeature-hooks-opentelemetry

Automatically captures feature flag evaluations…

permissive · top 15,000 on PyPI

harness-featureflags

Python SDK for evaluating and managing feature…

permissive · top 15,000 on PyPI

zen-engine

zen-engine is a Python binding for a Rust-based…

unclear · top 15,000 on PyPI

inspect-ai

Inspect is a framework for evaluating large…

permissive · top 5,000 on PyPI

openfeature-provider-ofrep

Integrates OpenFeature SDK with remote flag…

permissive · top 15,000 on PyPI