Skip to main content

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

Project description

anime-relations-py

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

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.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

anime_relations_py-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anime-relations-py-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for anime-relations-py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a44a855b8e5f754b3c528f72b81ddef637354474f4052d318199408a7e7a2a5b
MD5 1423565d44f8476af7eb3227d152012f
BLAKE2b-256 dc3ca455bc4fa98db8d6271e36b0693325d3ce32d1dc951193fad0707dd1f3c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anime_relations_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for anime_relations_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77825db65ea0b2dbf0f7da18d7c604c50512c12d6f91ac6c74731c6b74b1b92f
MD5 aec6ea48cc73d2e1712ecca79e61d7ee
BLAKE2b-256 571e861b14689337c5c1c4cc51276accfcc84b3c42111a4449209047b00b981c

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