Default template for PDM package
Project description
civitai_api
This project provide a easy way to communicating with Civitai-API.
It supports both Sync and Async request implementation, and both Async implementation (AsyncIO and Trio) by using Anyio.
See usage example in : /tests/test_v1.py.
You may need to register your own CivitAI api key, see here.
Exception handling
There are 3 types of Exception you should care of
- QueryParamsError
- only for the endpoints which could return multiple results.
- FileNotFoundError
- only for the endpoints which could return single results.
- ConnectionAbortedError
- every endpoint could trigger this Exception when the number of requests reach Civitai server's limitation.
Attention
- you could only get model's availability from endpoint models or modelId endpoints!
- some of the models have an EarlyAccess duration at the first time they get published.
- Trainned Prompts could only get from VersionId or Hash endpoints!
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_api-3.0.3.tar.gz.
File metadata
- Download URL: civitai_api-3.0.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
733722374676aa46ce6cf81fbbbb7e7fe5f73818010121c3914671e64ca5486b
|
|
| MD5 |
68a29e34737d886f7f07c8bb2d47fd3c
|
|
| BLAKE2b-256 |
43aa65af0573ea3798fb6dcd107e942b4c99156ea4afccb69c39879418e5bf1e
|
File details
Details for the file civitai_api-3.0.3-py3-none-any.whl.
File metadata
- Download URL: civitai_api-3.0.3-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f73e45da9cb6c4165dc0e55660340ad00130bc99946c59ced4086776f7365b32
|
|
| MD5 |
a0561d033d3e2adfb17ecb6774b26b5c
|
|
| BLAKE2b-256 |
2c68a57a56d7164723b13c83caed812e2c089bc042c2b3b76fb288ff281c96f7
|