Registry / devops / prefab-cloud-python

prefab-cloud-python

JSON →
library0.12.1pypypi✓ verified 30d ago

Official Python client for Prefab, a feature flags, dynamic log levels, and configuration-as-a-service platform. Supports context-aware evaluations, SSE streaming, and cloud-based configuration management. Current version: 0.12.1, requires Python >=3.9, <4. Release cadence: monthly.

devopsobservability
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from prefab_cloud_python import Client
from prefab_cloud_python import ConfigClient
from prefab_cloud_python import Options

Initialize Prefab with an API key, create a context, and evaluate a flag.

import os from prefab import Prefab, Context client = Prefab(api_key=os.environ.get('PREFAB_API_KEY', '')) context = Context(user_key="user-123", attributes={"plan": "premium"}) flag = client.check("my-feature-flag", context) print("Flag enabled:", flag)
prefab --version
Debug
Known footguns
breakingThe import path changed from 'import prefab_cloud_python' to 'from prefab import Client/Prefab' in version 0.11.0.
gotchaContext must be passed to most flag evaluations; omitting it may lead to incorrect results.
deprecatedThe 'PrefabConfig' object is deprecated in favor of 'Prefab' and 'Client'.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
gptbot
3
ahrefsbot
3
amazonbot
3
claudebot
2
chatgpt-user
1
Resources