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:
- Automatic code redemption.
- Automatic collection of daily marks on HoYoLab.
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file honkaistarrail-0.0.8.tar.gz.
File metadata
- Download URL: honkaistarrail-0.0.8.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.2.2 CPython/3.9.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5805c416c635fbc66d0f641ac235d6a0dd2e582b0cea321314b919bbbbe4937d
|
|
| MD5 |
8767efbc2140b29476098d1d114aa33e
|
|
| BLAKE2b-256 |
93c3259c0571f2fa0bd9e1e9937ddb03f3ced232e7fcf076e15b349d0fb0ec6c
|
File details
Details for the file honkaistarrail-0.0.8-py3-none-any.whl.
File metadata
- Download URL: honkaistarrail-0.0.8-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.2.2 CPython/3.9.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1d1e4188208dfb892806cc9dfa7d151c9559baf1b64cefe5261727e24492647
|
|
| MD5 |
aed235284b057e1852cbac9d3b741b13
|
|
| BLAKE2b-256 |
ed48ababa69171e84cf5df5bf5217b818ef7a1bdbe267a3965d7fb5758e80e9b
|