Initial commit: add Gitea PyPI publish workflow

This commit is contained in:
2026-07-06 11:02:19 -05:00
commit b0d2873cbc
40 changed files with 5831 additions and 0 deletions

13
PLAN.md Normal file
View File

@@ -0,0 +1,13 @@
# Plan: Add async examples to the wiki usage guide
The `docs/usage.md` guide currently only shows sync usage in its per-section examples. The user wants every major example to also demonstrate the equivalent async pattern with `AsyncConduitClient` and `await`.
## Approach
1. Keep the existing sync examples intact.
2. Add matching async examples immediately after each sync snippet (Authentication, Gateway keys/SMS/media/torrents/wiki/compute/DNS, timeouts/retries, error handling, free-form bodies).
3. Make the pattern consistent across all snippets:
- sync: `with ConduitClient(...) as client:`
- async: `async with AsyncConduitClient(...) as client:` and `await client...`
4. Ensure required imports (`asyncio`, `AsyncConduitClient`) are shown where needed.
5. Run `ruff` and `pytest` to confirm nothing broke.