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.0.tar.gz
(3.1 kB
view details)
File details
Details for the file superanime-1.0.0.tar.gz.
File metadata
- Download URL: superanime-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5a1395a1e25be09683984ba9e0a69a8c421d266a6b36bf8587ca6d9fca4e82a
|
|
| MD5 |
e9132deec99c025cf22499ea4b495a1a
|
|
| BLAKE2b-256 |
600cf896dd89b25f6ce90cfee8bb71c68b626bdcd7e8aabb0258f6a051acb1af
|