{"id":23868,"library":"hypertune-sdk","title":"HyperTune SDK","description":"A Python SDK for HyperTune, a feature flag and experimentation platform. Current version 0.6.5 with weekly releases. Requires Python ≥3.9 and <4.0.","status":"active","version":"0.6.5","language":"python","source_language":"en","source_url":"https://github.com/hypertunehq/hypertune-python","tags":["feature-flags","experimentation","a-b-testing","hypertune"],"install":[{"cmd":"pip install hypertune-sdk","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"HTTP client for API requests","package":"httpx","optional":false}],"imports":[{"note":"The package name on PyPI is hypertune-sdk, but the import module is 'hypertune'.","wrong":"from hypertune_sdk import HyperTune","symbol":"HyperTune","correct":"from hypertune import HyperTune"}],"quickstart":{"code":"import os\nfrom hypertune import HyperTune\n\nclient = HyperTune(\n    api_token=os.environ.get(\"HYPERTUNE_API_TOKEN\", \"\"),\n    environment=\"production\",\n)\nflag_value = client.get_flag(\"my-flag\", {\"user\": {\"id\": \"42\"}})\nprint(flag_value)","lang":"python","description":"Initialize the client with an API token and environment, then evaluate a feature flag."},"warnings":[{"fix":"Use 'from hypertune import HyperTune' instead of 'from hypertune_sdk import HyperTune'.","message":"The import module is 'hypertune', not 'hypertune_sdk'. The PyPI package name is 'hypertune-sdk'.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'client.evaluate_flag(\"flag-name\", context)' if available.","message":"The 'get_flag' method may be deprecated in future versions for a more explicit API. Check docs.","severity":"deprecated","affected_versions":"<=0.6.5"},{"fix":"Set the environment variable or pass api_token as constructor argument.","message":"API token must be passed or set via environment variable HYPERTUNE_API_TOKEN; otherwise, requests fail with 401.","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":"Install the package: pip install hypertune-sdk, then import: from hypertune import HyperTune.","cause":"Incorrect import path. Package name is 'hypertune-sdk' on PyPI, but import module is 'hypertune'.","error":"ModuleNotFoundError: No module named 'hypertune_sdk'"},{"fix":"Set the environment variable HYPERTUNE_API_TOKEN or pass api_token to HyperTune constructor.","cause":"Missing or invalid API token.","error":"hypertune.exceptions.HyperTuneError: 401 Unauthorized"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}