Metadata-Version: 2.1
Name: anime-relations-py
Version: 0.1.2
Summary: A parser for anime-relations. So you don't have to.
Home-page: https://github.com/tylergibbs2/anime-relations-py
Author: Tyler
License: MIT
Project-URL: Documentation, https://github.com/tylergibbs2/anime-relations-py/blob/master/README.md
Project-URL: Issue tracker, https://github.com/tylergibbs2/anime-relations-py/issues
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.md

# anime-relations-py

[![PyPI version](https://img.shields.io/pypi/v/anime-relations-py?color=blue)](https://pypi.org/project/anime-relations-py/)

A parser for anime-relations. So you don't have to.

[More information on anime episode relations can be found here.](https://github.com/erengy/anime-relations)

## Installation

```sh
$ pip install -U anime-relations-py
```

## Usage

```py
>>> from anime_relations_py import AnimeRelations

>>> parser = AnimeRelations()    # instance is empty until fetched
>>> parser.fetch_sync()          # alt: await parser.fetch_async()

>>> rule = parser.from_mal(40028)
>>> rule
Rule(mal_from=40028, kitsu_from=42422, anilist_from=110277, episodes_from=(60, 75), mal_to=40028, kitsu_to=42422, anilist_to=110277, episodes_to=(1, 16))
>>> rule.get_episode_redirect(65)
6
>>> rule.mal_to
40028
>>> parser.meta
{'version': '1.3.0', 'last_modified': '2021-02-25'}
```

For more advanced usage and other methods, please look at the source code. It's quite short and well-documented.
