Asynchronous module for working with API Honkai: Star Rail
Project description
HonkaiStarRail.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 honkaistarrail
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,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.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for honkaistarrail-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de700f5698dd02a1df83e747dae563404021e94ee7cfd0549b55dd5199ec1ec9 |
|
MD5 | a18e7b5609d3f1f10074be221f229447 |
|
BLAKE2b-256 | 9b5ed0bbf64d6a4fbaa7633c26058dca9d3c0b92389431d32396755aff96e2a1 |