Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ijsbol/waifupicspython
An asynchronous API wrapper for https://waifu.pics written in Python.
https://github.com/ijsbol/waifupicspython
api-wrapper python wrapper
Last synced: 2 days ago
JSON representation
An asynchronous API wrapper for https://waifu.pics written in Python.
- Host: GitHub
- URL: https://github.com/ijsbol/waifupicspython
- Owner: ijsbol
- License: mit
- Created: 2022-02-25T17:36:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T14:51:23.000Z (about 2 years ago)
- Last Synced: 2025-01-01T00:25:52.515Z (8 days ago)
- Topics: api-wrapper, python, wrapper
- Language: Python
- Homepage:
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WaifuPicsPython
An asynchronous & synchronous Python API wrapper for https://waifu.pics.
`pip install WaifuPicsPython`
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)
### Asynchronous Code Example
```python
import asynciofrom WaifuPicsPython import WaifuAsync
async def your_function():
wafiu_pics = WaifuAsync()
megumin_image_url = await wafiu_pics.sfw('megumin')
# returns 1 url as a string
waifu_images = await wafiu_pics.sfw('waifu', many=True)
# returns 30 urls in a list
random_sfw_image = await wafiu_pics.sfw('random')
# returns 1 random sfw image
lewd_waifu = await wafiu_pics.nsfw('waifu')
# returns 1 nsfw waifu url as a string
lewd_nekos = await wafiu_pics.nsfw('neko', many=True)
# returns 30 nsfw neko urls in a list
random_nsfw_images = await wafiu_pics.nsfw('random', many=True)
# returns 30 random nsfw imagesasyncio.run(your_function())
```### Synchronous Code Example
```python
from WaifuPicsPython import WaifuSyncdef your_function():
wafiu_pics = WaifuSync()
megumin_image_url = wafiu_pics.sfw('megumin')
# returns 1 url as a string
waifu_images = wafiu_pics.sfw('waifu', many=True)
# returns 30 urls in a list
random_sfw_image = wafiu_pics.sfw('random')
# returns 1 random sfw image
lewd_waifu = wafiu_pics.nsfw('waifu')
# returns 1 nsfw waifu url as a string
lewd_nekos = wafiu_pics.nsfw('neko', many=True)
# returns 30 nsfw neko urls in a list
random_nsfw_images = wafiu_pics.nsfw('random', many=True)
# returns 30 random nsfw imagesyour_function()
```## Categories List
### SFW
```
'waifu', 'neko', 'shinobu', 'megumin', 'bully', 'cuddle',
'cry', 'hug', 'awoo', 'kiss', 'lick', 'pat', 'smug', 'bonk',
'yeet', 'blush', 'smile', 'wave', 'highfive', 'handhold',
'nom', 'bite', 'glomp', 'slap', 'kill', 'kick', 'happy',
'wink', 'poke', 'dance', 'cringe'
```### NSFW
```
'waifu', 'neko', 'trap', 'blowjob'
```