{"id":27000,"library":"flipt-client","title":"Flipt Client Python SDK","description":"Python client for Flipt feature flag evaluation. Version 1.4.1 supports synchronous and asynchronous evaluation via REST and gRPC. Active development with monthly releases.","status":"active","version":"1.4.1","language":"python","source_language":"en","source_url":"https://github.com/flipt-io/flipt-client-sdks","tags":["feature-flags","flipt","client"],"install":[{"cmd":"pip install flipt-client","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Main client class for synchronous evaluation.","symbol":"FliptEvaluationClient","correct":"from flipt_client import FliptEvaluationClient"},{"note":"Async client for non-blocking evaluation.","symbol":"FliptEvaluationClientAsync","correct":"from flipt_client import FliptEvaluationClientAsync"}],"quickstart":{"code":"import os\nfrom flipt_client import FliptEvaluationClient\n\nclient = FliptEvaluationClient(\n    namespace=\"default\",\n    url=\"http://localhost:8080\",\n    authentication_token=os.environ.get('FLIPT_AUTH_TOKEN', '')\n)\n\nflag_key = \"my-flag\"\nentity_id = \"user123\"\ncontext = {\"plan\": \"enterprise\"}\n\nresponse = client.evaluate_variant(flag_key, entity_id, context)\nprint(response.match)\nprint(response.variant_key)","lang":"python","description":"Create a client and evaluate a boolean/variant flag."},"warnings":[{"fix":"Use 'authentication_token' instead of 'auth_token'.","message":"The constructor argument 'auth_token' was renamed to 'authentication_token' in v1.3.0.","severity":"breaking","affected_versions":"<1.3.0"},{"fix":"Verify the 'url' includes the correct port (e.g., http://localhost:8080 for REST, localhost:9000 for gRPC).","message":"If the Flipt server is unreachable, the client may raise a connection error; ensure the gRPC or HTTP port is correct.","severity":"gotcha","affected_versions":"all"},{"fix":"Use FliptEvaluationClientAsync for non-blocking calls.","message":"The synchronous client uses requests under the hood; consider switching to async for high-throughput scenarios.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Start the Flipt server and double-check the 'url' parameter (e.g., http://localhost:8080).","cause":"Flipt server not running or wrong URL/port.","error":"flipt_client.exceptions.FliptClientError: Failed to connect to remote host"},{"fix":"Set FLIPT_AUTH_TOKEN environment variable or pass a valid token to the client.","cause":"The 'authentication_token' is missing or incorrect.","error":"flipt_client.exceptions.FliptClientError: Invalid authentication token"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}