Skip to main content

An asyncronous & syncronous API wrapper for https://waifu.pics written in Python.

Project description

WaifuPicsPython

An asynchronous & synchronous Python API wrapper for https://waifu.pics.

pip install WaifuPicsPython

MIT License

Asynchronous Code Example

import asyncio

from 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 images

asyncio.run(your_function())

Synchronous Code Example

from WaifuPicsPython import WaifuSync

def 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 images

your_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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WaifuPicsPython-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

WaifuPicsPython-0.2.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file WaifuPicsPython-0.2.0.tar.gz.

File metadata

  • Download URL: WaifuPicsPython-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for WaifuPicsPython-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fad778775cfe67c135f279e3e4db6498740243aabf4a8611e72a2e3de9679b54
MD5 65ccb9505fb75dbf4374ef706df7fb74
BLAKE2b-256 15d8ba05254825df24bb71e255ecda1ecbe66ca1467d0abc15cc37908ab2e4b0

See more details on using hashes here.

File details

Details for the file WaifuPicsPython-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: WaifuPicsPython-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for WaifuPicsPython-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 390b95d3628f2ae64ab79bb789d5aae4aca0b6b198f4ddc5d387a705a63f985c
MD5 6d50706570fdd8a3eb377945fa5db604
BLAKE2b-256 96bf9d6a651be04533c16333ee99929a64d252e0f42210d4942ab7f19dce6d1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page