Skip to main content

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

Project description

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.

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

anime-relations-py-0.1.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

anime_relations_py-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file anime-relations-py-0.1.2.tar.gz.

File metadata

  • Download URL: anime-relations-py-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for anime-relations-py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c4c0b4d4d2bcc7c7bd16405bee617353db7887ad483f62f307843176f03e0b33
MD5 5cb3b9d836e4b6b9a2370922504d1ed4
BLAKE2b-256 0aa628e3994f3077551ee28456dafbaca3a4f0c8e3d21b092a5e5c60fb5a1308

See more details on using hashes here.

File details

Details for the file anime_relations_py-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for anime_relations_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58b2d57b732397c9078f3c092c30b94ac267929338d9f97288794c5a06a00d2b
MD5 fe2152085cb080e964bbee1068b93f12
BLAKE2b-256 7e1f1daa3b584c449509daec33d4892073491658057847379e94cd362b73e06b

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