This example demonstrates the basic usage of the Replane Python SDK with the synchronous client.
- Python 3.10 or higher
- A running Replane server
- An SDK key from your Replane dashboard
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Update configuration in
main.py:
BASE_URL = "https://your-replane-server.com"
SDK_KEY = "your_sdk_key_here"python main.py- Using the
Replanewith context manager - Reading boolean feature flags
- Reading numeric configuration values
- Passing context for override evaluation
- Using default values for missing configs
- Manual client lifecycle management
- Non-blocking connection pattern