amplitude-experiment
The official Amplitude Experiment Python SDK for server-side instrumentation.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is MIT-licensed. It's suitable for production use if you're already using Amplitude for analytics and need server-side experiment or feature flag capabilities. Choose it if you want tight integration with Amplitude's platform; if you need a vendor-agnostic feature flag library, consider alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Amplitude Experiment API key and network access to Amplitude's remote evaluation service.
- Low install friction with a pure Python wheel and only three runtime dependencies.
- Active maintenance with a recent release 28 days ago and ongoing repository activity.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions; suitable for most production deployments.
last release 2026-07-17 (28 days) · last repo commit 2026-07-17 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 353,340 downloads/mo, #7,304 on PyPI
Alternatives
Verify before relying
pip install amplitude-experiment
from amplitude_experiment import Experiment, User
apiKey = 'YOUR-API-KEY'
experiment = Experiment.initialize_remote(apiKey)
user = User(device_id="abcdefg", user_id="user@company.com")
variants = experiment.fetch(user)
variant = variants['YOUR-FLAG-KEY']- Whether local evaluation mode requires downloading and updating flag configurations periodically.
- Performance characteristics and latency of remote vs. local evaluation modes under production load.
- Exact retry and timeout behavior when Amplitude's remote service is unavailable.
What it is and what it does
The Amplitude Experiment Python SDK is the official server-side library for integrating A/B tests and feature flags into Python applications via Amplitude's Experiment platform. It provides two evaluation modes: remote evaluation, which fetches variant assignments from Amplitude's servers for each user, and local evaluation, which evaluates flags locally after downloading configuration. The SDK handles user context (device ID, user ID, user properties) and returns variant assignments that your code can use to control feature behavior.
The package depends on dataclasses-json for serialization, amplitude_analytics for event tracking integration, and sseclient-py for server-sent event streaming in local evaluation mode. It supports Python 3.6 through 3.10 and is actively maintained. Installation is straightforward with no compiled dependencies, making it suitable for containerized and serverless deployments.
Use it for
- Run A/B tests on backend logic by fetching variant assignments for users and routing requests accordingly.
- Manage feature flags in production with remote evaluation for real-time control without redeployment.
- Implement local evaluation mode for low-latency flag decisions when network latency to Amplitude is a concern.
- Track experiment exposure and conversion events by integrating flag evaluations with amplitude_analytics.
- Segment users by properties (e.g., premium status) and serve different feature variants based on Amplitude-defined rules.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and is MIT-licensed. It's suitable for production use if you're already using Amplitude for analytics and need server-side experiment or feature flag capabilities. Choose it if you want tight integration with Amplitude's platform; if you need a vendor-agnostic feature flag library, consider alternatives.
Install
amplitude-experiment on PyPI
Before you install
Low install friction with a pure Python wheel and only three runtime dependencies. Active maintenance with a recent release 28 days ago and ongoing repository activity.
Requires a valid Amplitude Experiment API key and network access to Amplitude's remote evaluation service.
License in practice
MIT License permits commercial and private use with minimal restrictions; suitable for most production deployments.
Quickstart
pip install amplitude-experiment
from amplitude_experiment import Experiment, User
apiKey = 'YOUR-API-KEY'
experiment = Experiment.initialize_remote(apiKey)
user = User(device_id="abcdefg", user_id="user@company.com")
variants = experiment.fetch(user)
variant = variants['YOUR-FLAG-KEY']
Verify before relying
- Whether local evaluation mode requires downloading and updating flag configurations periodically.
- Performance characteristics and latency of remote vs. local evaluation modes under production load.
- Exact retry and timeout behavior when Amplitude's remote service is unavailable.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release <4,>=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesdataclasses-jsonamplitude_analyticssseclient-py |
| Maintenance | Actively maintained 28 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 353,340 / month, #7,304 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.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: amplitude_experiment-1.12.0-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 › “amplitude experiment sdk”
- amplitude-experimentProvides server-side A/B testing and feature flag evaluation through…
- amplitude-analyticsOfficial Amplitude backend SDK for Python that sends server-side…
- 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 amplitude-analytics · eppo-server-sdk · growthbook · optimizely-sdk · openfeature-provider-flagsmith · splitio-client · launchdarkly-server-sdk · laboratory · statsig · flipt-client