Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.55 KB

File metadata and controls

48 lines (32 loc) · 1.55 KB

Stargazers Issues Releases Version

Azaka

Welcome to Azaka, a work-in-progress asynchronous API Wrapper around the visual novel database written in python.

Installation

You can install Azaka using pip.

pip install azaka

Usage

Example of getting some basic VN data.

import asyncio
from azaka import Client, Node, select

# Refer https://api.vndb.org/kana#database-querying for fields, filters etc.
query = (
    select("title", "image.url")
    .frm("vn")
    .where(Node("id") == "v17")
)

async def main() -> None:
    async with Client() as client:
        resp = await client.execute(query=query)
        vn = resp.results[0]
        print(vn.id, vn.title, vn.image["url"], sep="\n")

asyncio.run(main())

Docs

Preliminary documentation is available @ Azaka Docs