Skip to content

feat: add AsyncClient with identical API surface - #21

Merged
mehmetkr merged 2 commits into
mainfrom
async-client
Dec 1, 2026
Merged

mehmetkr merged 2 commits into
mainfrom
async-client

Conversation

@mehmetkr

Copy link
Copy Markdown
Owner

Summary

  • Add AsyncClient with full async/await support, mirroring the sync Client API surface exactly
  • Add AsyncBaseClient and AsyncAPIResource base classes in _base_client.py, sharing error mapping with sync counterparts
  • Add AsyncTasks, AsyncRuns, AsyncSchedules resource classes colocated alongside their sync equivalents
  • Add 54 async tests covering client construction, context manager, error mapping, and all 22 resource methods

Test plan

  • All 155 tests pass (101 sync + 54 async)
  • ruff check clean
  • ruff format clean
  • mypy clean
  • AST-verified 22/22 method signature parity between sync and async
  • Adversarial audit: design and implementation both pass clean

@mehmetkr
mehmetkr merged commit d01a02d into main Dec 1, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the async-client branch December 1, 2026 08:50
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