A package to download models from CivitAI
Project description
Model Downloader for CivitAI
Model Downloader Package for Python Developer and CLI for CivitAI.
It is recommanded on Amazon Web Services, Microsoft Azure, Google Cloud Platform.
How to Use
First, Install civitai-model-downloader
# Install from PyPI
pip3 install civitai-model-downloader
# Install from GitHub
pip3 install git+https://github.com/bean980310/civitai-downloader.git
# Install from Source
git clone https://github.com/bean980310/civitai-downloader.git
cd civitai-downloader
pip3 install -e .
and, Insert your Access token
from civitai_downloader.token.token import prompt_for_civitai_token
prompt_for_civitai_token()
Import Your CivitAI API Token and Next, Download a model
from civitai_downloader.token.token import get_token
from civitai_downloader.download.download import civitai_download, url_download
token=get_token()
# example
url_download(url="https://civitai.com/api/download/models/90854", local_dir="./models/checkpoints/sd15", token=token)
# or
civitai_download(model_id=90854, local_dir="./models/checkpoints/sd15", token=token)
Also, you can use to civitai-downloader command line
# example
civitai-downloader-cli download 90854
# prefix local dir
civitai-downloader-cli download 90854 --local-dir ./models/checkpoints/sd15
# to use url
civitai-downloader-cli url-download https://civitai.com/api/download/models/90854
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file civitai_model_downloader-0.3.14.tar.gz.
File metadata
- Download URL: civitai_model_downloader-0.3.14.tar.gz
- Upload date:
- Size: 46.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75eaaf46aeb9379ade18033fb80563f0ffcb17052495142dca90c4563c4d1d46
|
|
| MD5 |
bfb467cc2229805088eb91126cfdf63d
|
|
| BLAKE2b-256 |
8b8e3ed0f969379cd1d02a2b61b61ca07f548f50d0fe49b2929790661d2bd4b2
|
File details
Details for the file civitai_model_downloader-0.3.14-py3-none-any.whl.
File metadata
- Download URL: civitai_model_downloader-0.3.14-py3-none-any.whl
- Upload date:
- Size: 37.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
919d22b041171355994d667041c65a79201bf851a7f655b30038a0b1987e37a6
|
|
| MD5 |
83bd1615b1fa9a55e22a940a2411952b
|
|
| BLAKE2b-256 |
fc34c0661327e692a4b3c295ff27070a00523cf3b70d7bfa706536adadfbddae
|