Registry / devops / hypertune-sdk

hypertune-sdk

JSON →
library0.6.5pypypi✓ verified 79d ago

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.

pip install hypertune-sdk
INSTALL
IMPORT
SIG · HYPERTUNE-SDK
H
hypertune-sdk
devopspythonv0.6.5
Install
2.9s avg
Import
Disk
74MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.6.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 75.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.9s · import 0.000s · 76MB
74MB installed
● package 74MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HyperTune
import hypertune
from hypertune import HyperTune

Initialize the client with an API token and environment, then evaluate a feature flag.

import os from hypertune import HyperTune client = HyperTune( api_token=os.environ.get("HYPERTUNE_API_TOKEN", ""), environment="production", ) flag_value = client.get_flag("my-flag", {"user": {"id": "42"}}) print(flag_value)
Debug
Known issues
gotchaThe import module is 'hypertune', not 'hypertune_sdk'. The PyPI package name is 'hypertune-sdk'.
fix
Use 'from hypertune import HyperTune' instead of 'from hypertune_sdk import HyperTune'.
affects: all
deprecatedThe 'get_flag' method may be deprecated in future versions for a more explicit API. Check docs.
fix
Use 'client.evaluate_flag("flag-name", context)' if available.
affects: <=0.6.5
gotchaAPI token must be passed or set via environment variable HYPERTUNE_API_TOKEN; otherwise, requests fail with 401.
fix
Set the environment variable or pass api_token as constructor argument.
affects: all
Upgrade
Version history
0.6.5latest on PyPI · released Apr 24, 2025
Audit
Dependencies
httpxrequiredHTTP client for API requests
Agent activity
40 hits · last 30 days
node
36
OpenAI (training)
1
Resources
hypertune-sdk — pip install hypertune-sdk · libregistry