Anilistpy anilistpy

Build Status CodeFactor PyPI - Downloads pypi verison GitHub license

An easy to use python3 wrapper for anilist.co APIv2

agpl3

Installing

Installing from pypi

pip install anilistpy

Installing from git

pip install git+https://github.com/anilistpy/anilistpy

Installing from git (Unstable / Development branch)

pip install git+https://github.com/anilistpy/anilistpy@dev

Importing

import anilistpy

or manually import the method/class you need

from anilistpy import Anime

Using the API wrapper

Objects:

Init:

starting the anilistpy.Anime() object

Anime() takes one argument, that is the id of the anime on anilist.co

example:

from anilistpy import Anime
animeObject = Anime(1) # 1 is the id of the anime

Methods:

  • Anime.reload()

Reloads the objects, sends the API request again

  • Anime.json()

Returns the raw json from the API

  • Anime.title(LA)

Return the title of the anime.

LA should be one of romaji, english, native

source code