Skip to content

mooncell07/Azaka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Asynchronous Python Wrapper for the VNDB REST API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages