mirror of
https://github.com/Comfy-Org/comfy-python-sdk.git
synced 2026-11-04 23:37:47 +00:00
[PR #1] [CLOSED] Demo-slice v2 client (submit / poll / download) #10
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
effort:medium
effort:small
effort:small
effort:trivial
priority:nice-to-have
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-python-sdk#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-python-sdk/pull/1
Author: @wei-hai
Created: 7/15/2026
Status: ❌ Closed
Base:
main← Head:feat/demo-client📝 Commits (5)
d643362Add demo-slice v2 client (submit / poll / download)5b27cfbMake API key optional per surface; clear error when required35175f8Wrap run() signature to satisfy the 100-char line limitf2ce214Scrub internal references from README and docstring4abd21eAdd CI (ruff, mypy, pytest) and a dormant PyPI publish workflow (#2)📊 Changes
6 files changed (+465 additions, -4 deletions)
View changed files
➕
.github/workflows/ci.yml(+48 -0)➕
.github/workflows/publish.yml(+68 -0)📝
README.md(+4 -4)➕
pyproject.toml(+35 -0)➕
src/comfy_sdk/__init__.py(+117 -0)➕
tests/test_client.py(+193 -0)📄 Description
First-iteration demo slice of the Python SDK.
What
A small hand-written client (
comfy_sdk.Comfy) that runs a workflow against any Comfy API v2 surface — the localcomfy-api-proxyor Comfy Cloud — changing only the base URL and (for cloud) the key.submit()/get_job()/run()(submit → poll to terminal → return) /download()urls.self/ outputurllinks rather than constructing paths.Scope
Deliberately minimal for the Friday demo. Not yet here: file upload, the live-progress stream, idempotency, the generated protocol layer, and the full idiomatic surface (asset/workflow factories, typed events, async client).
Verified
Runs end to end against
comfy-api-proxy+ a fake ComfyUI: submit →succeeded→ PNG downloaded. UI-format graphs are rejected.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.