Benign comfyui Download

comfyui-sakuranbo 0.1.0

Basename is uppercase README.mdDeclares Python project dependency list
SHA-256b3002e7a9b8bfd15eb5905550d3f8a5168a6059f2dbdb4ca0abb10924e0e8eac

Evidence

CLI token setup wording README.md · lines 10–45
10:209… el does not accept a value, the run stops with an error that lists the accepted values.
11
12## Install
13
14Pick one:
15
16- ComfyUI-Manager: search for "Sakuranbo AI" and install it.
17- comfy-cli: `comfy node install comfyui-sakuranbo`
18- git: clone this repository into `ComfyUI/custom_nodes`.
19
20 ```bash
21 cd ComfyUI/custom_nodes
22 git clone https://github.com/ai-yozora/comfyui-sakuranbo.git
23 ```
24
25Restart ComfyUI afterwards. The nodes use only packages that ComfyUI already has.
26
27## Set your API key
28
29Create an API key in the [dashboard](https://app.sakuranbo.ai/). See [Authentication](https://sakuranbo.ai/docs/authentication/).
30
31Set the key in the `SAKURANBO_API_KEY` environment variable before you start ComfyUI:
32
33```bash
34# macOS and Linux
35export SAKURANBO_API_KEY="<your API key>"
36python main.py
37```
38
39```bat
40:: Windows (Command Prompt)
41set SAKURANBO_API_KEY=<your API key>
42python main.py
43```
44
45You can also enter the key in the node's `api_key` field. A key entered there is saved in the …
At least four Markdown-style heading lines README.md · lines 45–51
45:176… ose files. The environment variable keeps the key out of them.
46
47## Example workflows
48
49The [`example_workflows`](example_workflows) folder has one workflow per node:
50
51- `sakuranbo_text_to_image.json`: Sakuranbo AI …
imports os client.py · lines 1–23
1"""A small client for the Sakuranbo AI API, using only the Python standard library."""
2
3from __future__ import annotations
4
5import json
6import os
7import re
8import time
9import urllib.error
10import urllib.parse
11import urllib.request
12import uuid
13from pathlib import Path
14from typing import Any, Callable
15
16
17def _version() -> str:
18 """The version in pyproject.toml, which ships with the node."""
19 try:
20 text = (Path(__file__).resolve().parent / "pyproject.toml").read_text(encoding="utf-8")
21 except OSError:
22 return "unknown"
23 …
Python secret or key assigned a literal client.py · lines 23–45
23:56… .MULTILINE)
24 return match.group(1) if match else "unknown"
25
26
27VERSION = _version()
28USER_AGENT = f"sakuranbo-comfyui/{VERSION}"
29DEFAULT_BASE_URL = "https://api.sakuranbo.ai"
30API_KEY_ENV = "SAKURANBO_API_KEY"
31BASE_URL_ENV = "SAKURANBO_BASE_URL"
32
33FINAL_STATUSES = frozenset({"completed", "failed", "cancelled", "expired"})
34RETRY_STATUSES = frozenset({429, 502, 503})
35RETRIES = 3
36MAX_RETRY_WAIT_SECONDS = 60
37MODELS_TTL_SECONDS = 600
38MODELS_TIMEOUT_SECONDS = 5
39
⋯6 lines
Python reads an environment variable client.py · lines 46–55
46:41… e node stopped waiting."""
47
48
49def base_url() -> str:
50 return (os.environ.get(BASE_URL_ENV) or DEFAULT_BASE_URL).rstrip("/")
51
52
53def api_key(value: str) -> str:
54 """The key typed into the node, or else the SAKURANBO_API_KEY environment variable."""
55 key = (value or "").strip() or os.environ.get(API_KEY_E …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.