Skip to main content

Anilist Python module for searching up anime, manga, characters info.

Project description

AnilistPython

example workflow downloads downloads licence Test

AniList Python library (anilist.co APIv2 wrapper) that allows you to easily search up and retrieve anime, manga, animation studio, and character information. This library is both beginner-friendly and offers the freedom for more experienced developers to interact with the retrieved information. Provides bot support.

alt text

Version 0.1.3 Overview

This recent update for AnilistPython has resulted in a moderate change in the library's archetecture for increased efficiency and speed. Various features have also been added to the library. Listed below are some of the main additions and alterations made to the library.

New features:

  1. Anime search by genre, year, and/or average score (finally!)
  2. Offline anime retrieval support for anime - BETA
  3. Manga search support
  4. Auto setup feature that help new python programmers to setup required libraries automatically

Optimization and updates:

  1. The lib now has its own prebuild anime database!
  2. Anime, manga, and character search functions have all been optimized, making searches faster!
  3. Improved the deepsearch feature in .get_anime().
  4. Manually selecting results feature is now a parameter instead of a seperate function (see usage below).

How to use?

Step One: Library Installation

pip install AnilistPython==0.1.3

Step Two: Instance Creation

from AnilistPython import Anilist
anilist = Anilist()

Step Three: Usage

The AnilistPython library has been split into three distinct sections. Each section possess a different set of functions used for retrieving data in that category. Please visit the full documentation for more info or skip to the General Function Overview section for usage.

General Function Overview

The following functions are supported by AnilistPyhon version 0.1.3. Only the default parameter has been displayed below. For more information, visit the full documentation.

# ANIME
anilist.get_anime("Owari no Seraph")        # returns a dictionary containing info about owari no seraph
anilist.get_anime_with_id(126830)           # returns a dictionary with Code Geass (ID:126830) info 
anilist.get_anime_id("ReZero")              # returns Re:Zero's ID on Anilist
anilist.print_anime_info("Madoka Magica")   # prints all information regarding the anime Madoka Magica

# returns a list of anime with the given restrictions
anilist.search_anime(genre=['Action', 'Adventure', 'Drama'], year=[2016, 2019], score=range(80, 95))

#CHARACTER
anilist.get_character("Emilia")             # returns a dictionary containing the info about Emilia-tan 
anilist.get_character_with_id(13701)        # returns a dictionary with Misaka Mikoto (ID:13701) info
anilist.get_character_id("Milim")           # returns character Milim's ID on Anilist
anilist.print_anime_info("Kirito")          # prints all information regarding the character Kirito

# MANGA
anilist.get_manga("Seraph of the End")      # returns a dictionary containing info about seraph of the end
anilist.get_manga_with_id(113399)           # returns a dictionary with Tearmoon (ID:113399) info
anilist.get_manga_id("Tearmoon Empire")     # returns Tearmoon Empire's ID on Anilist (manga)
anilist.print_manga_info("Tensei Slime")    # prints all information regarding the manga Tensei Slime

Note: The feature for manully selecting the top three search results in the terminal is now controlled by a parameter (manual_select) in .get functions. For more information, please visit the full documentation. A sample program that has manual select enabled would be:

anilist.get_anime("Owari no Seraph", manual_select=True)

Discord Bot Support

AnilistPython was originially designed to support various Discord Bot features in relation to anime, but through out the course of its development, more features became available to use by the general programs other than Discord bots. With that been said, the current version of AnilistPython has further optimized its functions for bot support. From the pre-formatted JSON file upon data retrieval to offline database support (see full documentation), it is now able to be implemented in bots with ease.

Upcoming AnilistPython Version 0.2.0 will provide functions to generate pre-formated Discord embeds (Anime, Manga, Character embeds) as well as other features that make AnilistPython bot implementations easy to use.

Sample anime discord bot supported by AnilistPython V0.1.3: Anime C.C. Discord Bot

Note: Please make sure that parameter manual_select has not been set to True in bot implementations. (False by default)

Credits

Lead Developer: Kevin L. (ReZeroE)

Special thanks to AniList's ApiV2 GraphQL Dev team for making this possible.

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

AnilistPython-0.1.3.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

AnilistPython-0.1.3-py3-none-any.whl (4.3 MB view details)

Uploaded Python 3

File details

Details for the file AnilistPython-0.1.3.tar.gz.

File metadata

  • Download URL: AnilistPython-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.2

File hashes

Hashes for AnilistPython-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e818ba9eaaeecd59c89c06c10982fe7bce6ebd7b17a13a54587d3ec1be6de36c
MD5 5c7d3071617fd287ebeeafc8261727ce
BLAKE2b-256 901d83c6981c575fd404a3be2e1dae2e362aa3498ac24134f902016eae422d33

See more details on using hashes here.

File details

Details for the file AnilistPython-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: AnilistPython-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.2

File hashes

Hashes for AnilistPython-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 38186bdcca8155898ebe00a18c9287daca70256b1026c3e8781be2705b5df1fe
MD5 bd64675f5fec280333e874ddc3e9d4fb
BLAKE2b-256 81a36b0d290ea53759e4dff221d42f489aaa19614cc6d6cf93e2760d2cbc3b4f

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