honkaistarrail


Namehonkaistarrail JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/DEViantUA/HonkaiStarRail.py
SummaryAsynchronous module for working with API Honkai: Star Rail
upload_time2023-06-29 13:26:06
maintainer
docs_urlNone
authorNone
requires_python>=3.7,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img src="https://raw.githubusercontent.com/DEViantUA/HonkaiStarRail.py/main/Readme/HSR-BANNER.png" />
</p>

# 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](https://pypi.org/project/honkaistarrail/)

You can also see other usage examples here: [OPEN](https://github.com/DEViantUA/starrail.py/tree/main/Examples)

Instructions for getting a link to the history of jumps: [OPEN](https://github.com/DEViantUA/starrail.py/blob/main/Instruction.md)

### ID Banned:
``1`` - Event Banner
``2`` - Light Cone
``3`` - Standart Banner


### Launc:

```py
# 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.

___
<p align="center">
  <img src="https://raw.githubusercontent.com/DEViantUA/HonkaiStarRail.py/main/Readme/%D0%91%D0%B5%D0%B7-%D0%B8%D0%BC%D0%B5%D0%BD%D0%B8-1.png" />
</p>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DEViantUA/HonkaiStarRail.py",
    "name": "honkaistarrail",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "None",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/93/c3/259c0571f2fa0bd9e1e9937ddb03f3ced232e7fcf076e15b349d0fb0ec6c/honkaistarrail-0.0.8.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/DEViantUA/HonkaiStarRail.py/main/Readme/HSR-BANNER.png\" />\n</p>\n\n# Asynchronous module for working with API Honkai: Star Rail\n\nAt the moment it only supports counting guarantors and getting a jumps \n\n### Installation: \n```\npip install honkaistarrail\n```\nPyPi: [OPEN](https://pypi.org/project/honkaistarrail/)\n\nYou can also see other usage examples here: [OPEN](https://github.com/DEViantUA/starrail.py/tree/main/Examples)\n\nInstructions for getting a link to the history of jumps: [OPEN](https://github.com/DEViantUA/starrail.py/blob/main/Instruction.md)\n\n### ID Banned:\n``1`` - Event Banner\n``2`` - Light Cone\n``3`` - Standart Banner\n\n\n### Launc:\n\n```py\n# Copyright 2023 DEViantUa <t.me/deviant_ua>\n# All rights reserved.\n\n'''\nThis method returns the full history of jumps for the \nlast 3 months, does not return the results of jumps \nand how much is left before the guarantor.\n'''\n\nimport asyncio\nfrom honkaistarrail import starrail\n\nasync def get_jump_history():\n    link = \"\"\n    async with starrail.Jump(link = link,banner = 1,lang = \"en\") as hist:\n        async for key in hist.get_history():\n            for info in key:\n                print(f'[{info.type}] Name: {info.name} ({info.rank}*) - {info.time.strftime(\"%d.%m.%Y %H:%M:%S\")}')\n\n\nasyncio.run(get_jump_history())\n```\n\n\n# In developing:\n\n1. Automatic code redemption.\n2. Automatic collection of daily marks on HoYoLab.\n\n___\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/DEViantUA/HonkaiStarRail.py/main/Readme/%D0%91%D0%B5%D0%B7-%D0%B8%D0%BC%D0%B5%D0%BD%D0%B8-1.png\" />\n</p>\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Asynchronous module for working with API Honkai: Star Rail",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/DEViantUA/HonkaiStarRail.py",
        "Repository": "https://github.com/DEViantUA/HonkaiStarRail.py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ed48ababa69171e84cf5df5bf5217b818ef7a1bdbe267a3965d7fb5758e80e9b",
                "md5": "aed235284b057e1852cbac9d3b741b13",
                "sha256": "a1d1e4188208dfb892806cc9dfa7d151c9559baf1b64cefe5261727e24492647"
            },
            "downloads": -1,
            "filename": "honkaistarrail-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aed235284b057e1852cbac9d3b741b13",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 13493,
            "upload_time": "2023-06-29T13:26:04",
            "upload_time_iso_8601": "2023-06-29T13:26:04.403586Z",
            "url": "https://files.pythonhosted.org/packages/ed/48/ababa69171e84cf5df5bf5217b818ef7a1bdbe267a3965d7fb5758e80e9b/honkaistarrail-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93c3259c0571f2fa0bd9e1e9937ddb03f3ced232e7fcf076e15b349d0fb0ec6c",
                "md5": "8767efbc2140b29476098d1d114aa33e",
                "sha256": "5805c416c635fbc66d0f641ac235d6a0dd2e582b0cea321314b919bbbbe4937d"
            },
            "downloads": -1,
            "filename": "honkaistarrail-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "8767efbc2140b29476098d1d114aa33e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 16442,
            "upload_time": "2023-06-29T13:26:06",
            "upload_time_iso_8601": "2023-06-29T13:26:06.129755Z",
            "url": "https://files.pythonhosted.org/packages/93/c3/259c0571f2fa0bd9e1e9937ddb03f3ced232e7fcf076e15b349d0fb0ec6c/honkaistarrail-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-29 13:26:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DEViantUA",
    "github_project": "HonkaiStarRail.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "honkaistarrail"
}
        
Elapsed time: 0.10919s