feature-flags-python

Official

Manage PostHog feature flags in Python apps.

AuthorPostHog
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Python applications often struggle to integrate feature flags from PostHog without tight coupling or hardcoding keys. This skill provides a straightforward API to evaluate flags and react to them safely in Python code, including payloads when necessary.

Core Features & Use Cases

  • Evaluate boolean flags with posthog.feature_enabled and retrieve payloads with posthog.get_feature_flag_payload
  • Retrieve multivariate flags with posthog.get_feature_flag and react to specific variants
  • Include feature flag information in events by enabling send_feature_flags in capture calls
  • Supports common back-end frameworks like Django and Flask for server-side flag evaluation in data pipelines and services

Quick Start

Install the PostHog Python library, initialize the client with your project token and host, then evaluate a flag and react accordingly.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: feature-flags-python
Download link: https://github.com/PostHog/skills/archive/main.zip#feature-flags-python

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.