@@ -36,7 +36,7 @@ from replane import Replane
3636# Using context manager (recommended)
3737with Replane(
3838 base_url = " https://replane.example.com" ,
39- sdk_key = " sk_live_ ..." ,
39+ sdk_key = " rp_ ..." ,
4040) as client:
4141 # Get a simple config value
4242 rate_limit = client.get(" rate-limit" )
@@ -60,7 +60,7 @@ from replane import AsyncReplane
6060
6161async with AsyncReplane(
6262 base_url = " https://replane.example.com" ,
63- sdk_key = " sk_live_ ..." ,
63+ sdk_key = " rp_ ..." ,
6464) as client:
6565 # get() is sync since it reads from local cache
6666 rate_limit = client.get(" rate-limit" )
@@ -76,7 +76,7 @@ Both clients accept the same configuration:
7676``` python
7777client = Replane(
7878 base_url = " https://replane.example.com" ,
79- sdk_key = " sk_live_ ..." ,
79+ sdk_key = " rp_ ..." ,
8080
8181 # Default context applied to all get() calls
8282 context = {" environment" : " production" },
@@ -118,19 +118,22 @@ value = client.get("feature-flag", context=context)
118118### Override Examples
119119
120120** Percentage rollout** (gradual feature release):
121+
121122``` python
122123# Server config has 10% rollout based on user_id
123124# Same user always gets same result (deterministic hashing)
124125enabled = client.get(" new-checkout" , context = {" user_id" : user.id})
125126```
126127
127128** Plan-based features** :
129+
128130``` python
129131max_items = client.get(" max-items" , context = {" plan" : user.plan})
130132# Returns different values for free/pro/enterprise plans
131133```
132134
133135** Geographic targeting** :
136+
134137``` python
135138content = client.get(" homepage-banner" , context = {" country" : request.country})
136139```
@@ -279,7 +282,7 @@ async def lifespan(app: FastAPI):
279282 global client
280283 client = AsyncReplane(
281284 base_url = " https://replane.example.com" ,
282- sdk_key = " sk_live_ ..." ,
285+ sdk_key = " rp_ ..." ,
283286 )
284287 await client.connect()
285288 yield
@@ -311,7 +314,7 @@ def init_replane():
311314 global replane_client
312315 replane_client = Replane(
313316 base_url = " https://replane.example.com" ,
314- sdk_key = " sk_live_ ..." ,
317+ sdk_key = " rp_ ..." ,
315318 )
316319 replane_client.connect()
317320
0 commit comments