Registry / ai-ml / rust-civit-comfy-bindings

rust-civit-comfy-bindings

JSON →
library0.2.12pypypi✓ verified 79d ago

Rust bindings for a Civitai + ComfyUI integration. Currently at version 0.2.12, with monthly releases. Provides high-performance model and file operations for ComfyUI workflows, leveraging Rust via PyO3. Requires Python >=3.8.

pip install rust-civit-comfy-bindings
INSTALL
IMPORT
SIG · RUST-CIVIT-COMFY-B
R
rust-civit-comfy-bindings
ai-mlpythonv0.2.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rust_civit_comfy_bindings
import rust_civit_comfy_bindings
from rust_civit_comfy_bindings import CivitComfyBindings
start_server
from rust_civit_comfy_bindings import start_server
sum_as_string
from rust_civit_comfy_bindings import sum_as_string

Initializes bindings and downloads a model. Token is optional; without it, rate limits apply.

from rust_civit_comfy_bindings import CivitComfyBindings # Initialize with API token (optional) token = os.environ.get('CIVIT_API_TOKEN', '') bindings = CivitComfyBindings(api_token=token) # Example: download a model by ID result = bindings.download_model(model_id=12345, output_dir='/tmp/models') print(result)
Debug
Known issues
breakingIn version 0.2.0, the function `download_model` changed its parameter order (old: (output_dir, model_id); new: (model_id, output_dir)).
fix
Update calls to use new parameter order: `bindings.download_model(model_id=..., output_dir=...)`.
affects: <0.2.0
deprecatedMethod `get_model` is deprecated since 0.2.5; use `fetch_model_info` instead.
fix
Replace `get_model(id)` with `fetch_model_info(model_id=id)`.
affects: >=0.2.5
gotchaThe library requires a Rust toolchain to build from source (pip install might compile). Prebuilt wheels are available only for x86_64 Linux and Windows.
fix
Install from PyPI; if no wheel, install Rust via rustup first.
affects: all
Upgrade
Version history
0.2.12latest on PyPI · released Feb 10, 2026
Audit
Dependencies
civitairequiredCore dependency for Civitai API interactions
comfyuirequiredIntegration with ComfyUI
Agent activity
9 hits · last 30 days
node
6
OpenAI (training)
1
Resources
rust-civit-comfy-bindings — pip install rust-civit-comfy-bindings · libregistry