Registry / devops / prefab-cloud-python

prefab-cloud-python

JSON →
library0.12.1pypypi✓ verified 83d 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.

pip install prefab-cloud-python
INSTALL
IMPORT
SIG · PREFAB-CLOUD-PYTHO
P
prefab-cloud-python
devopspythonv0.12.1
harness data pending
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.

Client
✓ from prefab_cloud_python import Client
✗ from prefab import Client
ConfigClient
✓ from prefab_cloud_python import ConfigClient
Options
✓ 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 issues
breakingThe import path changed from 'import prefab_cloud_python' to 'from prefab import Client/Prefab' in version 0.11.0.
fix
Replace 'import prefab_cloud_python' with 'from prefab import Prefab' and update usage accordingly.
affects: <0.11.0
gotchaContext must be passed to most flag evaluations; omitting it may lead to incorrect results.
fix
Always create a Context with at least a user_key and pass it to client.check().
affects: >=0.12.0
deprecatedThe 'PrefabConfig' object is deprecated in favor of 'Prefab' and 'Client'.
fix
Use 'Prefab' class with api_key parameter directly.
affects: <0.11.0
Upgrade
Version history
0.12.1latest on PyPI · released Nov 20, 2025
Audit
Dependencies
protobufrequiredProtocol buffers for configuration data
grpciorequiredgRPC for streaming updates
Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
prefab-cloud-python — pip install prefab-cloud-python · libregistry