docs: Document async SDK usage - #721
Conversation
|
Reviews (1): Last reviewed commit: "Document async SDK usage" | Re-trigger Greptile |
posthog-python Compliance ReportDate: 2026-07-22 11:51:02 UTC ✅ All Tests Passed!111/111 tests passed Capture_V1 Tests✅ 94/94 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
5376ad0 to
218c362
Compare
e3edf4a to
7a926c0
Compare
218c362 to
9e67828
Compare
7a926c0 to
461a968
Compare
9e67828 to
6c126a1
Compare
461a968 to
11224c5
Compare
6c126a1 to
d9e30ec
Compare
2efcf82 to
164663f
Compare
83794b2 to
ce3aa46
Compare
164663f to
5e77d07
Compare
d1e9ab5 to
a365483
Compare
5e77d07 to
19df02e
Compare
a365483 to
84f6ba5
Compare
19df02e to
fb036f2
Compare
84f6ba5 to
7f102b9
Compare
fb036f2 to
d0fb0ba
Compare
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
|
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant. |
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
|
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant. |
💡 Motivation and Context
Finishes the async SDK stack for #103 with README guidance for installing
posthog[async], usingAsyncPosthog, closing it withasync with/await shutdown(), and evaluating flags without blocking the event loop.This PR is stacked on #720. Review feedback was addressed by removing a redundant explicit
flush()from theasync withexample, since exiting the context shuts down and flushes automatically.💚 How did you test it?
uv run --extra test pytest posthog/test/test_async_request.py posthog/test/test_async_client.py posthog/test/test_async_feature_flags.py --verbose --timeout=30uv run python -W error -c "import posthog; from posthog import AsyncPosthog"📝 Checklist
If releasing new changes
sampo addto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Implemented with pi. This PR is docs-only and is intentionally separated from the implementation PRs so the code review can happen in smaller stacked chunks.