I — ANIME · ANILIBERTY

py-aniliberty

Async Python SDK for the AniLibria API: releases, episodes with HLS links, catalog, schedule, torrents and account features.

PYTHON 3.11+ LICENSE MIT PYPI ↗ GITHUB ↗ CHANGELOG

Installation

Install the package from PyPI. Python 3.11 or newer is required.

SHELL
$  uv add py-aniliberty
# or
$  pip install py-aniliberty

Quick start

Open a client as an async context manager, list the latest releases, then fetch one release and the HLS link of its first episode.

PYTHON
import asyncio

from aniliberty import AniLiberty


async def main() -> None:
    async with AniLiberty() as client:
        for release in await client.releases.latest(limit=3):
            print(release.name.main)

        release = await client.releases.get("sousou-no-frieren")
        episode = await client.episodes.get(release.episodes[0].id)
        print(episode.hls_1080 or episode.hls_720)


asyncio.run(main())

API reference

NAME DESCRIPTION
AniLiberty() Async client; use it with async with.
client.releases.latest(limit) The latest releases.
client.releases.get(alias) A release by its alias.
client.episodes.get(id) An episode with HLS links (hls_1080, hls_720).
API COVERAGE Which SDK method covers each of the 80 API operations.