{"id":28054,"library":"prefab-cloud-python","title":"Prefab Cloud Python","description":"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.","status":"active","version":"0.12.1","language":"python","source_language":"en","source_url":"https://github.com/prefab-cloud/prefab-cloud-python","tags":["feature-flags","configuration","feature-management","dynamic-logging"],"install":[{"cmd":"pip install prefab-cloud-python","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Protocol buffers for configuration data","package":"protobuf","optional":false},{"reason":"gRPC for streaming updates","package":"grpcio","optional":false}],"imports":[{"wrong":"from prefab import Client","symbol":"Client","correct":"from prefab_cloud_python import Client"},{"symbol":"ConfigClient","correct":"from prefab_cloud_python import ConfigClient"},{"symbol":"Options","correct":"from prefab_cloud_python import Options"}],"quickstart":{"code":"import os\nfrom prefab import Prefab, Context\n\nclient = Prefab(api_key=os.environ.get('PREFAB_API_KEY', ''))\ncontext = Context(user_key=\"user-123\", attributes={\"plan\": \"premium\"})\nflag = client.check(\"my-feature-flag\", context)\nprint(\"Flag enabled:\", flag)\n","lang":"python","description":"Initialize Prefab with an API key, create a context, and evaluate a flag."},"warnings":[{"fix":"Replace 'import prefab_cloud_python' with 'from prefab import Prefab' and update usage accordingly.","message":"The import path changed from 'import prefab_cloud_python' to 'from prefab import Client/Prefab' in version 0.11.0.","severity":"breaking","affected_versions":"<0.11.0"},{"fix":"Always create a Context with at least a user_key and pass it to client.check().","message":"Context must be passed to most flag evaluations; omitting it may lead to incorrect results.","severity":"gotcha","affected_versions":">=0.12.0"},{"fix":"Use 'Prefab' class with api_key parameter directly.","message":"The 'PrefabConfig' object is deprecated in favor of 'Prefab' and 'Client'.","severity":"deprecated","affected_versions":"<0.11.0"}],"env_vars":null,"search_vec":"'0.12.1':37 '3.9':40 '4':41 'awar':25 'base':32 'cadenc':43 'client':6 'cloud':2,31 'cloud-bas':30 'configur':17,33,48 'configuration-as-a-servic':16 'context':24 'context-awar':23 'current':35 'dynam':12,53 'dynamic-log':52 'evalu':26 'featur':10,46,50 'feature-flag':45 'feature-manag':49 'flag':11,47 'level':14 'log':13,54 'manag':34,51 'month':44 'offici':4 'platform':21 'prefab':1,8 'python':3,5,39 'releas':42 'requir':38 'servic':20 'sse':27 'stream':28 'support':22 'version':36","created_at":"2026-05-09T05:53:29.720738+00:00","updated_at":"2026-05-09T05:53:29.720738+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"prefab","cli_version":"sh: 1: prefab: not found","type":"library","homepage":"https://www.prefab.cloud","github":"https://github.com/prefab-cloud/prefab-cloud-python","docs":"https://docs.prefab.cloud/docs/sdks/python","changelog":null,"pypi":"https://pypi.org/project/prefab-cloud-python/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}