Skip to content

Add BaseClient, sync Client, and Tier 1 resource methods - #8

Merged
mehmetkr merged 1 commit into
mainfrom
item-8-base-client-resources
Nov 27, 2026
Merged

mehmetkr merged 1 commit into
mainfrom
item-8-base-client-resources

Conversation

@mehmetkr

Copy link
Copy Markdown
Owner

Summary

  • Adds BaseClient with httpx transport, 3-overload _request() for typed/None/raw-dict returns, error mapping to 11 specific exception classes, context manager support, and SyncAPIResource base class
  • Adds sync Client with lazy @cached_property namespaces for tasks, runs, and schedules
  • Implements all 22 Tier 1 endpoint methods: Tasks (3), Runs (12 including list with deepObject query params, trace/events raw dict returns, reschedule with datetime support), Schedules (8)
  • 101 tests covering constructor, context manager, auth header, error mapping (11 status codes + edge cases), and all resource methods

Test plan

  • ruff check and ruff format --check: zero errors
  • pyright --strict: zero errors
  • mypy --strict: zero errors
  • pytest: 101 passed
  • Design adversarial audit: clean PASS (Round 2, 8 dimensions)
  • Implementation adversarial audit: clean PASS (Round 2, 11 attack vectors)

@mehmetkr
mehmetkr merged commit 28d0294 into main Nov 27, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the item-8-base-client-resources branch November 27, 2026 10:34
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