Skip to content

Generate Python SDK methods for execution jobs - #795

Merged
r-barton merged 2 commits into
mainfrom
ryan/generate-execution-jobs
Nov 19, 2026
Merged

r-barton merged 2 commits into
mainfrom
ryan/generate-execution-jobs

Conversation

@r-barton

@r-barton r-barton commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Generate sync and async methods on client.executor for the nine execution-job operations published by KittyCAD/api#5330. The checked-in spec includes those paths and their referenced schemas. Existing executor methods remain available.

Job submission takes the caller’s Idempotency-Key. Input uploads accept raw byte streams or named multipart files. Artifact downloads expose an HTTPX response inside a context manager so callers can read large results incrementally and the SDK can close the response on exit.

Job listings support both automatic iteration and a single page with its continuation token. Artifact listings return the complete archive state and the nested page. Generated requests encode opaque cursors and timestamp filters as URL query parameters.

@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.25000% with 79 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.19%. Comparing base (a2a07d0) to head (72906be).

Files with missing lines Patch % Lines
kittycad/tests/test_examples.py 50.42% 58 Missing ⚠️
generate/generate.py 0.00% 8 Missing ⚠️
generate/utils.py 20.00% 4 Missing ⚠️
generate/schema_utils.py 70.00% 3 Missing ⚠️
generate/tests/test_execution_job_methods.py 97.56% 2 Missing ⚠️
generate/generate_pagination_docs.py 0.00% 1 Missing ⚠️
kittycad/models/execution_job_status.py 95.45% 1 Missing ⚠️
kittycad/models/execution_log_stream.py 87.50% 1 Missing ⚠️
kittycad/models/id_sort_mode.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #795      +/-   ##
==========================================
+ Coverage   63.27%   65.19%   +1.92%     
==========================================
  Files         660      677      +17     
  Lines       26629    26630       +1     
==========================================
+ Hits        16849    17362     +513     
+ Misses       9780     9268     -512     
Flag Coverage Δ
unittests 65.19% <80.25%> (+1.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@r-barton
r-barton merged commit e789475 into main Nov 19, 2026
14 checks passed
@r-barton
r-barton deleted the ryan/generate-execution-jobs branch November 19, 2026 19:46
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.

2 participants