Repository navigation
docs: improve README ergonomics and document testing and bootstrap - #12
Merged
Merged
Conversation
- Remove the Remote config note; new users won't have it. - Explain when get_flag() returns the default and how defaults set types. - Document startup status, fork safety, offline testing with overrides, and get_flags_for_bootstrap(). - Run the new README examples in tests.
roncohen
force-pushed
the
docs/readme-ergonomics
branch
from
November 28, 2026 11:18
1d9e9bc to
0a2f9a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bind()context (email,name,attributes) and explain attribute flattening.get_flag()returns the default, and how the default sets the return type.statusis"degraded"and reads return defaults.RuntimeError; create it per worker (gunicornpost_fork, Celeryworker_process_init).flag_overrides,set_flag_overrides(), scopedoverride_flags(),clear_flag_overrides().get_flags_for_bootstrap()→ Browser SDK v2bootstrappedState; only flags not marked secret, plus the bound context.Testing
tests/test_examples.pynow executes the Testing example (no secret key, noREFLAG_OFFLINE) and the bootstrap example (offline).pytest tests/test_examples.py: 6 passed; ruff check/format clean.status == "degraded"and defaults.Note: the bootstrap section says Browser SDK v2 is required. Adjust the wording if v2 is still only on npm
next.