Watch configuration values change in real time using ConfigWatcher.
client.watch()to create a watcherwatcher.field()to register typed fields with defaults@field.on_changedecorator for reactive callbacksfield.changes()blocking iterator for change eventsfield.valuefor reading the current value at any time
cd examples
make setup
cd live-config
python main.pyThen in another terminal:
decree config set <tenant-id> server.rate_limit 500- fastapi-integration — watcher in a web server
- error-handling — retry, nullable, error hierarchy