The best package in Python to get anime information and anime gifs!
Project description
SuperAnime
The best package in Python to get anime information and anime gifs!
Installation:
pip install superanime
Example Usage:
import asyncio
from superanime import AnimeClient
from superanime.ext.types import SFWGif, SearchType
anime = AnimeClient()
async def main():
await anime.start() # Starts the client
gif = anime.gif(
bucket=SFWGif.KISS, # Also works with strings!
as_object=True # If you want to send a 'GifResult' object with additional info like anime name. Default to 'True'
)
print(gif.url) # Print the GIF URL
search = await anime.search(
query="One Piece", # The query to search in kitsu.io
type=SearchType.ANIME # The type of search you want to search for. ('ANIME' or 'MANGA') If none provided the anime type will be searched.
)
print(search.name) # Print the Anime name
if __name__ == "main":
asyncio.run(main())
Methods:
superanime.AnimeClient(print_on_ready: bool = True) -> AnimeClient
AnimeClient.gif(bucket: SFWGif | NSFWGif | str, as_object: bool = True) -> GifResult
Anime.search(query: str, type: SearchType | str = None) -> SearchResult
_~ Made by Noraa08 for MoonlightGroup_
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
superanime-1.0.2.tar.gz
(4.4 kB
view details)
File details
Details for the file superanime-1.0.2.tar.gz.
File metadata
- Download URL: superanime-1.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18bc245a7ab55e6214edb5818214f46f79f177c5e6fc664fdde588e36362d5a
|
|
| MD5 |
b197c941101b1b838755482388a6fd27
|
|
| BLAKE2b-256 |
547971bb9cbba9a9cba2240d70465fa8bb4b6d288a24111685a8cdd7ec0cfa63
|