comfy-ui-client
A simple client for comfy ui.
Usage:
import json
from comfy_ui_client.client import ComfyUIClient
from comfy_ui_client.type import ImageRef
def test_text2img():
client = ComfyUIClient("localhost:8188")
with open("text2img.json", "r") as f:
prompt_text = f.read()
prompt = json.loads(prompt_text)
ret = client.get_outputs(prompt)
assert "images" in ret
def test_img2img():
client = ComfyUIClient("localhost:8188")
with open("img2img.json", "r") as f:
prompt_text = f.read()
client.upload_image(ImageRef(filename="example.png", subfolder="", type="input"), "./example.png")
prompt = json.loads(prompt_text)
ret = client.get_outputs(prompt)
assert "images" in ret
Metadata
Release files for comfy-ui-client 0.0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| comfy-ui-client-0.0.1.10.tar.gz | 4.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| comfy_ui_client-0.0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / comfy-ui-client-0.0.1.10.tar.gz
| Download URL | comfy-ui-client-0.0.1.10.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49052c13051b9b5c3cdb6d7a44712d89aec458418dcb9207758a491ccee16a70
|
|
BLAKE2b-256 checksum How to use checksums |
462e59c3268fe1baa36e08a3ce575e490fdff14de0b2dc4df0f4d1be5b78d669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / comfy_ui_client-0.0.1.10-py3-none-any.whl
| Download URL | comfy_ui_client-0.0.1.10-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaca382385d7e754bdb9ddabf16bf04d8d7cc36bcb08c0e40ad45b81c750191e
|
|
BLAKE2b-256 checksum How to use checksums |
9f19c47e3f4b0afa42b55e67462eb43fa734901d9d5a1631b6fe58a818574878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for comfy-ui-client 0.0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.