Skip to content

docs: improve Getting started and add FastAPI example - #5

Merged
roncohen merged 5 commits into
mainfrom
docs/fastapi-readme-example
Nov 17, 2026
Merged

roncohen merged 5 commits into
mainfrom
docs/fastapi-readme-example

Conversation

@roncohen

@roncohen roncohen commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Improve Getting started: explain the shared client lifetime before the example, format context clearly, and label Boolean/JSON flag reads.
  • Separate async and telemetry guidance into short subsections; link to the complete FastAPI example.
  • Keep FastAPI as its own runnable section, showing one client per worker, startup/shutdown, per-request company context, Boolean/JSON reads, and installation/run commands.
  • Test the exact README snippets: basic fallback values and shutdown, plus FastAPI endpoint behavior, company isolation, shared-client reuse and cleanup.

Validation

  • Full warnings-as-errors suite: 1,814 passed, 10 skipped.
  • Ruff lint/formatting and strict mypy pass, including both extracted README Python blocks.
  • Offline tests only; no production SDK requests, package release, publication or deployment.

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low

no actionable findings

@roncohen roncohen changed the title docs: add runnable FastAPI README example docs: improve Getting started and add FastAPI example Nov 17, 2026

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low

no actionable findings

Comment thread tests/test_examples.py Resolved

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low

no actionable findings

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low

no actionable findings

@roncohen
roncohen enabled auto-merge (squash) November 17, 2026 13:55

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low

no actionable findings

@roncohen
roncohen merged commit 68a0610 into main Nov 17, 2026
15 checks passed
@roncohen
roncohen deleted the docs/fastapi-readme-example branch November 17, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant