Skip to main content

Asynchronous module for working with API Honkai: Star Rail

Project description

Asynchronous module for working with API Honkai: Star Rail

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

Installation:

pip install honkaistarrail

PyPi: OPEN

You can also see other usage examples here: OPEN

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

ID Banned:

1 - Event Banner 2 - Light Cone 3 - Standart Banner

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 honkaistarrail import starrail

async def get_jump_history():
    link = ""
    async with starrail.Jump(link = link,banner = 1,lang = "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())

In developing:

  1. Automatic code redemption.
  2. Automatic collection of daily marks on HoYoLab.

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.8.tar.gz (16.4 kB view hashes)

Uploaded Source

Built Distribution

honkaistarrail-0.0.8-py3-none-any.whl (13.5 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