Python async API wrapper for hsr.yatta.top
Project description
yatta-py
Quick links
Developing something for Hoyoverse games? Here's a collection of Python async API wrappers for Hoyoverse games made by me:
- enka.py is an Enka Network API wrapper for fetching in-game showcase.
- yatta.py is a Project Yatta API wrapper for fetching Honkai Star Rail game data.
- ambr.py is a Project Ambr API wrapper for fetching Genshin Impact game data.
- hakushin.py is a Hakushin API wrapper for fetching Genshin Impact and Honkai Star Rail beta game data.
Introduction
yatta-py is an async API wrapper for Project Yatta written in Python.
Project Yatta is a beautiful website that displays Honkai: Star Rail game data.
Note: I am not the developer of Project Yatta.
Features
- Fully typed.
- Fully asynchronous by using
aiofiles
,aiohttp
, andasyncio
, suitable for Discord bots. - Provides direct icon URLs.
- Supports Python 3.11+.
- Supports all game languages.
- Supports persistent caching using SQLite.
- Supports Pydantic V2, this also means full autocomplete support.
Installation
# poetry
poetry add yatta-py
# pip
pip install yatta-py
Quick Example
import yatta
import asyncio
async def main() -> None:
async with yatta.YattaAPI(yatta.Language.CHT) as client:
await client.fetch_characters()
asyncio.run(main())
Getting Started
Read the wiki to learn more about on how to use this wrapper.
Questions, Issues, Contributions
For questions, you can contact me on Discord or open an issue.
To report issues with this wrapper, open an issue.
To contribute, fork this repo and submit a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yatta_py-1.3.8.tar.gz
(22.9 kB
view hashes)
Built Distribution
yatta_py-1.3.8-py3-none-any.whl
(26.2 kB
view hashes)