growthbook
Powerful Feature flagging and A/B testing for Python apps
Decision gist · record as of 2026-08-14
Yes. GrowthBook is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem (feature flagging and A/B testing) with both sync and async support, making it suitable for most Python web applications. The local evaluation model avoids network latency on every feature check, and the type hints provide good IDE support. Install it if you need feature flags or A/B testing; the only caveat is verifying whether the in-memory cache meets your deployment model (especially in multi-process scenarios).AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later; async client requires aiohttp for real-time feature updates via Server-Sent Events.
- Low friction: pure Python wheel with no compiled dependencies.
- Active maintenance with a recent release 57 days ago.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-06-18 (57 days) · last repo commit 2026-08-14 · 43 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,075,976 downloads/mo, #3,313 on PyPI
Alternatives
Verify before relying
pip install growthbook
from growthbook import GrowthBook
gb = GrowthBook(
attributes={"id": "user-123"},
api_host="https://cdn.growthbook.io",
client_key="sdk-abc123"
)
gb.load_features()
if gb.is_on("my-feature"):
print("Feature enabled")- Whether the in-memory cache is suitable for multi-process deployments or if external cache backends are supported
- Performance characteristics and latency of local feature evaluation at scale
- Exact scope of the 100% test coverage claim and whether it includes edge cases
What it is and what it does
GrowthBook is a Python SDK for feature flagging and A/B testing that runs feature evaluation locally, eliminating the need for network calls on every check. It supports both synchronous and asynchronous code paths, making it suitable for traditional web frameworks like Django and Flask as well as async frameworks like FastAPI. The SDK fetches feature definitions from a remote GrowthBook API and caches them locally, allowing you to gate features, run experiments, and track results using your existing analytics system (GA, Segment, Mixpanel, or custom).
The package includes full type hints and is PEP 561 compliant, enabling IDE autocomplete and type checking with mypy. It handles user targeting, experiment assignment, and real-time feature updates via Server-Sent Events in the async client. The synchronous API is lightweight and requires minimal setup, while the async client is designed to be thread-safe and can be shared across concurrent requests in web applications.
Use it for
- Gate new features behind flags in production without redeploying code, toggling them on/off remotely via the GrowthBook API.
- Run A/B tests by assigning users to experiment variations and tracking which variation they see through your analytics system.
- Implement progressive rollouts by targeting features to specific user segments (by ID, country, premium status, etc.) defined in user attributes.
- Integrate with FastAPI or other async frameworks to evaluate features per-request with real-time updates from the GrowthBook service.
- Use in Django or Flask middleware to attach a GrowthBook instance to each request and access feature state in views without extra setup.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
GrowthBook is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem (feature flagging and A/B testing) with both sync and async support, making it suitable for most Python web applications. The local evaluation model avoids network latency on every feature check, and the type hints provide good IDE support. Install it if you need feature flags or A/B testing; the only caveat is verifying whether the in-memory cache meets your deployment model (especially in multi-process scenarios).
Install
growthbook on PyPI
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance with a recent release 57 days ago. Requires Python 3.7 or later; classifiers indicate support through Python 3.12.
Requires Python 3.7 or later; async client requires aiohttp for real-time feature updates via Server-Sent Events.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install growthbook
from growthbook import GrowthBook
gb = GrowthBook(
attributes={"id": "user-123"},
api_host="https://cdn.growthbook.io",
client_key="sdk-abc123"
)
gb.load_features()
if gb.is_on("my-feature"):
print("Feature enabled")
Verify before relying
- Whether the in-memory cache is suitable for multi-process deployments or if external cache backends are supported
- Performance characteristics and latency of local feature evaluation at scale
- Exact scope of the 100% test coverage claim and whether it includes edge cases
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagescryptographytyping_extensionsurllib3dataclassesasync-generatoraiohttpimportlib-metadata |
| Maintenance | Actively maintained 57 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,075,976 / month, #3,313 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed |
Evidence: growthbook-2.3.1-py2.py3-none-any.whl
Tags
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 › “feature flagging python”
- growthbookGrowthBook is a feature flagging and A/B testing SDK that evaluates…
- eppo-server-sdkServer-side feature flagging and experimentation SDK that manages A/B…
- optimizely-sdkProvides A/B testing, feature flagging, and feature management…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also posthog · amplitude-experiment · openfeature-sdk · optimizely-sdk · eppo-server-sdk · fastapi-lifespan-manager · statsig · Logbook · asgi-lifespan · Beaker