Skip to main content

yatta-py

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.
Developing something for Hoyoverse games? You might be interested in other API wrappers written by me.

Note: I am not the developer of Project Yatta.

Features

  • Fully typed.
  • Fully asynchronous by using aiofiles, aiohttp, and asyncio, 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 documentation to learn more about on how to use this wrapper.

Questions, Issues, Feedback, Contributions

Whether you want to make any bug reports, feature requests, or contribute to the wrapper, simply open an issue or pull request in this repository.
If GitHub is not your type, you can find me on Discord, my username is @seria_ati.

Metadata

Release files for yatta-py 1.3.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yatta-py 1.3.13
File Size Uploaded
yatta_py-1.3.13.tar.gz 120.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yatta-py 1.3.13
File Interpreter ABI Platform
yatta_py-1.3.13-py3-none-any.whl Python 3 none any Details

Total release size: 165.2 kB

Release files / yatta_py-1.3.13.tar.gz

Download URL yatta_py-1.3.13.tar.gz
Size 120.2 kB
Tags Source
SHA-256 checksum
How to use checksums
14dd4b45159fd84e99a05db4fc38be4e923027b7366668d97eba8a33ed4209c0
BLAKE2b-256 checksum
How to use checksums
5b6b9cf170b7219325caabd5d26b7b6def348a15c0ad78a954e01ff9641bde58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.10

Release files / yatta_py-1.3.13-py3-none-any.whl

Download URL yatta_py-1.3.13-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fb89db3f8489f8b03e44c2ea60a525f36d34c1d759960fb8d2fe67be6423d00
BLAKE2b-256 checksum
How to use checksums
f95439d4a224eb5c1cdff679ed4f46e53fbe1a828b78a9f98e7ac1ea2fbf8a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.10

Release history Release notifications | RSS feed

This release

1.3.13 This release

2 release files

1.3.12

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page