Skip to main content

anime-relations-py

PyPI version

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

More information on anime episode relations can be found here.

Installation

$ pip install -U anime-relations-py

Usage

>>> 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.

Release files for anime-relations-py 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anime-relations-py 0.1.2
File Size Uploaded
anime-relations-py-0.1.2.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anime-relations-py 0.1.2
File Interpreter ABI Platform
anime_relations_py-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / anime-relations-py-0.1.2.tar.gz

Download URL anime-relations-py-0.1.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c4c0b4d4d2bcc7c7bd16405bee617353db7887ad483f62f307843176f03e0b33
BLAKE2b-256 checksum
How to use checksums
0aa628e3994f3077551ee28456dafbaca3a4f0c8e3d21b092a5e5c60fb5a1308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / anime_relations_py-0.1.2-py3-none-any.whl

Download URL anime_relations_py-0.1.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58b2d57b732397c9078f3c092c30b94ac267929338d9f97288794c5a06a00d2b
BLAKE2b-256 checksum
How to use checksums
7e1f1daa3b584c449509daec33d4892073491658057847379e94cd362b73e06b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page