Installation
The Featsync Python SDK is available on PyPI and works with Python 3.8+.
Package Managers
bash pip install featsync bash poetry add featsync bash pipenv install featsync Requirements
- Python 3.8 or later
- Works in sync and async contexts
- Type hints included (PEP 561 compliant)
Importing
from featsync import Featsync, EvaluationContextDependencies
The SDK has minimal dependencies:
httpx- Modern HTTP client for Python
Type Hints
Full type hint support is included:
from featsync import ( Featsync, EvaluationContext, EvaluationResult, Flag, FlagsMap, FeatsyncConfig,)
client = Featsync(api_key="fs_your_api_key")
flag: Flag = client.get_flag("my-flag")flags: FlagsMap = client.get_all_flags()Next Steps
- Configure the SDK with your API key
- Learn basic usage patterns
- Set up targeting rules for user-specific flags