Skip to main content

Asynchronous module for working with API Honkai: Star Rail

Project description

StarRail.py

Asynchronous module for working with API Honkai: Star Rail

At the moment it only supports counting guarantors and getting a jumps

Installation:

pip install starrail

Launc:

# Copyright 2023 DEViantUa <t.me/deviant_ua>
# All rights reserved.

'''
This method returns the full history of jumps for the 
last 3 months, does not return the results of jumps 
and how much is left before the guarantor.
'''

import asyncio
from starrail import starrail

async def get_jump_history():
    link = ""
    async with starrail.Jump(link,3,"en") as hist:
        async for key in hist.get_history():
            for info in key:
                print(f'[{info.type}] Name: {info.name} ({info.rank}*) - {info.time.strftime("%d.%m.%Y %H:%M:%S")}')


asyncio.run(get_jump_history())

You can also see other usage examples here: OPEN

Instructions for getting a link to the history of jumps: OPEN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

honkaistarrail-0.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

honkaistarrail-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page