{"id":24565,"library":"sdk-reforge","title":"Reforge Python SDK","description":"Python SDK for Reforge Feature Flags and Config as a Service. Version 1.2.2 supports Python 3.9+ with incremental releases.","status":"active","version":"1.2.2","language":"python","source_language":"en","source_url":"https://github.com/ReforgeHQ/sdk-python","tags":["feature flags","config as a service","sdk","reforge"],"install":[{"cmd":"pip install sdk-reforge","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"ReforgeClient","correct":"from reforge import ReforgeClient"},{"note":"","wrong":"","symbol":"ConfigSource","correct":"from reforge import ConfigSource"}],"quickstart":{"code":"from reforge import ReforgeClient\n\nclient = ReforgeClient(api_key=os.environ.get('REFORGE_API_KEY', ''),\n                        environment='production')\n\n# Get a feature flag\nflag = client.get_flag('my-feature')\nprint(flag.is_enabled())\n\n# Get a config value\nconfig = client.get_config('my-config')\nprint(config.get_value())","lang":"python","description":"Initialize client and fetch a feature flag and config."},"warnings":[{"fix":"Upgrade to Python 3.9 or later.","message":"The library requires Python >=3.9 and <4. Python 3.8 and below are not supported.","severity":"breaking","affected_versions":"1.0.0+"},{"fix":"Always pass the api_key explicitly or load via os.environ.","message":"The API key must be passed directly; environment variable loading is not automatic.","severity":"gotcha","affected_versions":"all"},{"fix":"Wrap calls in try/except or check client.is_connected() first.","message":"get_flag and get_config may raise exceptions if the environment or key is invalid. Ensure proper error handling.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure you have installed sdk-reforge (pip install sdk-reforge) and use 'from reforge import ReforgeClient'.","cause":"Installed sdk-reforge but tried to import 'reforge' incorrectly or missing dependencies.","error":"ModuleNotFoundError: No module named 'reforge'"},{"fix":"Verify your API key from the Reforge dashboard and pass it as api_key parameter.","cause":"Provided API key is incorrect or missing.","error":"reforge.exceptions.AuthenticationError: Invalid API key"},{"fix":"Check the environment name in your Reforge dashboard. Ensure it matches exactly (case-sensitive).","cause":"The environment name does not exist in your Reforge project.","error":"reforge.exceptions.EnvironmentNotFoundError: Environment '...' not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}