civitai-hub v0.1.0
huggingface_hub, but for CivitAI — inspect a model and download its checkpoint/LoRA into a deduplicated managed cache, as a CLI and an importable library.
Highlights
civitai info <url|id>— model type, base/parent model, versions, and a file table (--jsontoo).civitai download <url|id>— smart version/file selection (--fp16/--fp32,--pruned/--full,--format,--file,--all), content-addressed dedup cache, range-resume, SHA256 verify, progress bar,--local-dir,--dry-run.civitai base <url|id>— find the base checkpoints a LoRA runs on (itsbaseModelfamily), with--download N.- Library API:
model_info,download,find_base_models.
Install
pipx install civitai-hub(PyPI)docker run --rm ghcr.io/mr8bit/civit-ai-cli info 580857
See the README and docs/usage.md for the full reference.