{"id":27369,"library":"rust-civit-comfy-bindings","title":"rust-civit-comfy-bindings","description":"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.","status":"active","version":"0.2.12","language":"python","source_language":"en","source_url":"https://github.com/example/rust-civit-comfy-bindings","tags":["rust","civitai","comfyui","bindings"],"install":[{"cmd":"pip install rust-civit-comfy-bindings","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Core dependency for Civitai API interactions","package":"civitai","optional":false},{"reason":"Integration with ComfyUI","package":"comfyui","optional":false}],"imports":[{"note":"Use underscores; dashes not valid in Python imports.","wrong":null,"symbol":"CivitComfyBindings","correct":"from rust_civit_comfy_bindings import CivitComfyBindings"}],"quickstart":{"code":"from rust_civit_comfy_bindings import CivitComfyBindings\n\n# Initialize with API token (optional)\ntoken = os.environ.get('CIVIT_API_TOKEN', '')\nbindings = CivitComfyBindings(api_token=token)\n\n# Example: download a model by ID\nresult = bindings.download_model(model_id=12345, output_dir='/tmp/models')\nprint(result)\n","lang":"python","description":"Initializes bindings and downloads a model. Token is optional; without it, rate limits apply."},"warnings":[{"fix":"Update calls to use new parameter order: `bindings.download_model(model_id=..., output_dir=...)`.","message":"In version 0.2.0, the function `download_model` changed its parameter order (old: (output_dir, model_id); new: (model_id, output_dir)).","severity":"breaking","affected_versions":"<0.2.0"},{"fix":"Replace `get_model(id)` with `fetch_model_info(model_id=id)`.","message":"Method `get_model` is deprecated since 0.2.5; use `fetch_model_info` instead.","severity":"deprecated","affected_versions":">=0.2.5"},{"fix":"Install from PyPI; if no wheel, install Rust via rustup first.","message":"The library requires a Rust toolchain to build from source (pip install might compile). Prebuilt wheels are available only for x86_64 Linux and Windows.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from rust_civit_comfy_bindings import CivitComfyBindings`.","cause":"Incorrect import path. Package uses underscores, not hyphens.","error":"ModuleNotFoundError: No module named 'rust_civit_comfy_bindings'"},{"fix":"Install precompiled wheel: `pip install rust-civit-comfy-bindings` on supported platform, or ensure Rust is installed and run `pip install --no-binary :all: rust-civit-comfy-bindings`.","cause":"Missing native library. Possibly built from source incorrectly or missing Rust toolchain.","error":"FileNotFoundError: [Errno 2] No such file or directory: 'target/release/librust_civit_comfy_bindings.so'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}