You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ The UnleashClient constructor supports the following configuration options:
118
118
| app_name | Name of the application using the client. Required. | None |
119
119
| environment | Logical environment name (deprecated). | "default" |
120
120
| instance_id | Unique identifier for this client instance. | "unleash-client-python" |
121
-
| refresh_interval | How often to fetch feature toggles (seconds). | 15 |
121
+
| refresh_interval | How often to fetch feature flags (seconds). | 15 |
122
122
| refresh_jitter | Jitter to add to refresh interval (seconds). | None |
123
123
| metrics_interval | How often to send metrics to Unleash (seconds). | 60 |
124
124
| metrics_jitter | Jitter to add to metrics interval (seconds). | None |
@@ -139,13 +139,13 @@ The UnleashClient constructor supports the following configuration options:
139
139
140
140
### Bootstrap
141
141
142
-
By default, the Python SDK fetches your feature toggles from the Unleash API at startup. If you want to make your SDK more resilient (e.g., during network outages), you can bootstrap the client with a local or remote toggle config.
142
+
By default, the Python SDK fetches your feature flags from the Unleash API at startup. If you want to make your SDK more resilient (e.g., during network outages), you can bootstrap the client with a local or remote toggle config.
143
143
144
144
How it works:
145
145
146
146
- Use a FileCache (or your own BaseCache implementation).
147
147
148
-
- Pre-seed it with feature toggles using bootstrap_from_dict, bootstrap_from_file, or bootstrap_from_url.
148
+
- Pre-seed it with feature flags using bootstrap_from_dict, bootstrap_from_file, or bootstrap_from_url.
149
149
150
150
- Pass your cache to the UnleashClient on startup.
151
151
@@ -321,7 +321,7 @@ client.is_enabled("testFlag")
321
321
322
322
### Custom cache
323
323
324
-
By default, the Python SDK stores feature toggles in an on-disk cache using fcache. If you need a different storage backend, for example, Redis, memory-only, or a custom database, you can provide your own cache implementation.
324
+
By default, the Python SDK stores feature flags in an on-disk cache using fcache. If you need a different storage backend, for example, Redis, memory-only, or a custom database, you can provide your own cache implementation.
325
325
326
326
Below is an example custom CustomCache using fcache under the hood.
327
327
@@ -364,7 +364,7 @@ client = UnleashClient(
364
364
365
365
## Running in multi-process setups
366
366
367
-
The Python SDK runs a background thread to keep feature toggles in sync with the Unleash server. Some runtime environments, like WSGI servers and Celery workers, need extra setup to make sure the SDK works correctly.
367
+
The Python SDK runs a background thread to keep feature flags in sync with the Unleash server. Some runtime environments, like WSGI servers and Celery workers, need extra setup to make sure the SDK works correctly.
368
368
369
369
### WSGI
370
370
@@ -379,7 +379,7 @@ See [The Art of Graceful Reloading](https://uwsgi-docs.readthedocs.io/en/latest/
379
379
380
380
### Celery
381
381
382
-
When using the SDK in Celery tasks, make sure you initialize it inside the worker_process_init event. Otherwise, the worker may run but won’t poll for feature toggle updates.
382
+
When using the SDK in Celery tasks, make sure you initialize it inside the worker_process_init event. Otherwise, the worker may run but won’t poll for feature flag updates.
0 commit comments