A Basic Anime Image API Created By Stawa
Project description
Estrapy-API
A Basic Wrapper Anime Image API Created By Stawa
Features
- Truth or Dare
- Anime GIFs
- Anime Waifu/Husbando Picture
- OSU API Wrapper
- Async Supports
- User Friendly Code
Installing Estrapy-API
pip install estrapy-api
or If you want to use latest update of Estrapy-API
pip install git+https://github.com/StawaDev/Estrapy-API
Example to use Estrapy-API
# First Examples
import Estrapy
import asyncio
async def function():
print(f"A Running GIF: {await Estrapy.Sfw.run()}")
print(f"A Hug GIF: {await Estrapy.Sfw.hug()}")
asyncio.run(function())
# Discord Examples
import Estrapy
@bot.command()
async def run(ctx): # Without Embed
await ctx.send(await Estrapy.Sfw.run())
@bot.command()
async def run(ctx): # With Embed
embed = discord.Embed(title="Running GIF")
embed.set_image(url=await Estrapy.Sfw.run())
await ctx.send(embed=embed)
AutoUpdate Estrapy-API
This is only optional, the function will be called if version of Estrapy-API is not same with the newewst one.
import Estrapy
from Estrapy import autoupdate
print(Estrapy.__version__) # Print current version of Estrapy-API
Print All Function Endpoints
import Estrapy
import asyncio
async def Help():
print(await Estrapy.Help.sfw()) # Print all sfw endpoints
print(await Estrapy.Help.nsfw()) # Print all nsfw endpoints
print(await Estrapy.Help.all()) # Print all sfw, nsfw endpoints in once
asyncio.run(Help())
Sfw Function Endpoints
Sfw Function | Examples | Description |
---|---|---|
Run | Estrapy.Sfw.run() | Return Sfw Run as GIFs |
Hug | Estrapy.Sfw.hug() | Return Sfw Hug as GIFs |
Smile | Estrapy.Sfw.smile() | Return Sfw Smile as GIFs |
Neko | Estrapy.Sfw.neko() | Return Sfw Neko as GIFs/PNG |
Poke | Estrapy.Sfw.poke() | Return Sfw Poke as GIFs |
Bite | Estrapy.Sfw.bite() | Return Sfw Bite as GIFs |
Slap | Estrapy.Sfw.slap() | Return Sfw Slap as GIFs |
Highfive | Estrapy.Sfw.highfive() | Return Sfw Highfive as GIFs |
Headpat | Estrapy.Sfw.headpat() | Return Sfw Headpat as GIFs |
Nsfw Function Endpoints
NSFW Function | Examples | Description |
---|---|---|
Kill | Estrapy.Nsfw.kill() | Return Nsfw Kill as GIFs/PNG |
Yuri | Estrapy.Nsfw.yuri() | Return Nsfw Yuri as GIFs/PNG |
Yaoi | Estrapy.Nsfw.yaoi() | Return Nsfw Yaoi as GIFs/PNG |
AniGames Function Endpoints
AniGames Function | Examples | Description |
---|---|---|
Truth | Estrapy.AniGames.truth() | Return AniGames Truth About Anime as Text |
Dare | Estrapy.AniGames.dare() | Return AniGames Dare About Anime as Text |
Waifu | Estrapy.AniGames.waifu() | Return AniGames Waifu About Anime as PNG |
Husbando | Estrapy.AniGames.husbando() | Return AniGames Husbando About Anime as Text |
Games Function Endpoints
Games Function | Examples | Description |
---|---|---|
Truth | Estrapy.Games.truth() | Return Games Truth as Text |
Dare | Estrapy.Games.dare() | Return Games Dare as Text |
OsuClients Function Endpoints
OsuClients Function | Examples | Description |
---|---|---|
OsuProfile | Estrapy.OsuClients.osuprofile("username", client_id, client_secret) | Return OsuProfile JSON Data |
OsuBeatmap | Estrapy.OsuClients.osubeatmap("beatmap_id", client_id, client_secret) | Return OsuBeatmap JSON Data |
More Examples | In Our Github! | More examples I guess? |
Links
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
Estrapy-API-0.2.1.tar.gz
(6.8 kB
view details)
File details
Details for the file Estrapy-API-0.2.1.tar.gz
.
File metadata
- Download URL: Estrapy-API-0.2.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4190c468a3aa0cbcb1d2117fb5503f60ee15de8962e2e21eecfa8031f357e888 |
|
MD5 | 870cd3b945255246fa579ba5fdb69fbb |
|
BLAKE2b-256 | e74fab46795920373835316fa1bf1333c9eb037510a13b70a38589815a20d78f |