Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Basic Synchronous Example

This example demonstrates the basic usage of the Replane Python SDK with the synchronous client.

Prerequisites

  • Python 3.10 or higher
  • A running Replane server
  • An SDK key from your Replane dashboard

Setup

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Update configuration in main.py:
BASE_URL = "https://your-replane-server.com"
SDK_KEY = "your_sdk_key_here"

Run

python main.py

What This Example Shows

  • Using the Replane with 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