Python api wrapper for the waifu.pics api
Project description
Pykawaii
Python api wrapper for the waifu.pics api made by: okimii#0434
Key Features
- Object Oriented wrapper
- Type-safety measures.
Installing
Python 3.7 or higher is required.
To install the library, you can just run thefollowing command:
# Linux/macOS
python3 -m pip install -U pykawaii
# Windows
py -3 -m pip install -U pykawaii
Quick Example
Basic Client Example
import pykawaii
import asyncio
kawaii = pykawaii.Client()
async def main() -> None:
sfw_img_url = await kawaii.sfw.waifu()
nsfw_img_url = await kawaii.nsfw.waifu()
print(sfw_img_url)
print(nsfw_img_url)
if __name__ == "__main__":
asyncio.run(main())
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
pykawaii-4.1.0.tar.gz
(4.9 kB
view details)
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
pykawaii-4.1.0-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file pykawaii-4.1.0.tar.gz.
File metadata
- Download URL: pykawaii-4.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e2bdfae6182d88c57a3b7e2fd99fc577a2a669b7ebf9300bfe023e5bd110e30
|
|
| MD5 |
9ec3939cf73f72bf9396949de1bcf157
|
|
| BLAKE2b-256 |
5804f78fef6abc2237c6d18fa0eff281b2e54846b427a40c6029a110f71a6aec
|
File details
Details for the file pykawaii-4.1.0-py3-none-any.whl.
File metadata
- Download URL: pykawaii-4.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
084183329c34719f55f4d6a00779f84aaa8779d889a1f8382ed7e0e6277065a6
|
|
| MD5 |
72490823a701ab809ac02470a8ac2421
|
|
| BLAKE2b-256 |
69240c5d32a6bf7f18f89872a17a6d8d8622741404c86b01cd9000ace185b759
|