Skip to main content

An asynchronous Python Wrapper for Hori-API

Project description

This is a asynchronous wrapper for Hori-API named aiohoripy

The way you use it it's so simple:

import aiohoripy
# or 
from aiohoripy import sfw, nsfw

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix="prefix", intents=discord.Intents.all())

@bot.event
async def on_ready():
    print("I'm ready")

@bot.command()
async def waifu(ctx):
    image = await sfw(tag="waifu")
    # or
    image = await nsfw(tag="waifu")
    await ctx.send(image)

bot.run("TOKEN")

The tags are the same as the tags that the api gives

sfw tags are: ["all", "husbando", "waifu"]

nsfw tags are: ["ass", "ecchi", "ero", "hentai", "maid", "milf", "oppai", "oral", "paizuri", "selfies", "uniform"]

The output that image`` gives is the same as the json results in the API

and you can get them with:

image["code", "is_over18", "tag_id", "tag_name", "file", "url"]

Made by lvlahraam#8435

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

aiohoripy-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

aiohoripy-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file aiohoripy-0.0.2.tar.gz.

File metadata

  • Download URL: aiohoripy-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for aiohoripy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 569bb6786e3d6cc470fb7545d53b9c42af1bd7c778ce233b7af03da2e10039ad
MD5 2ed60aa3cc48780e2924ab5d7369d9eb
BLAKE2b-256 a7587cd70cb69890d5461e2cd11b8b458dd0d983851156db1e16f27fd90179ff

See more details on using hashes here.

File details

Details for the file aiohoripy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aiohoripy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for aiohoripy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2cceb28b2d3a3fc3eb227998b357bd68729eadab9bc51678c7131d6e5cdd698
MD5 cb61120a88d5a692bc5bb987e08012d8
BLAKE2b-256 4716fed42d69cdf75301e06acc5d5477fa1dbc0199b4bc9f76433216b28f3d78

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