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)
Built Distribution
Close
Hashes for honkaistarrail-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6a884470a5c9171183bde4bea11f05f2e2c059460f864867e1bd68f2355ee1 |
|
MD5 | 21b813eca2d5d4e7c033ef59ce697992 |
|
BLAKE2b-256 | 19f15b97e98f9974312d2c01ecfb9db8445bb1ea981f3adb9a30da954efb21cd |