hsr-pic-parcer


Namehsr-pic-parcer JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/vano979797/hsr_pic_parser
Summaryparser to get images from hsr mana
upload_time2024-04-21 14:14:39
maintainerNone
docs_urlNone
authorvano979797
requires_python>=3.7
licenseNone
keywords python parse hsr
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # hsr_pic_parser

## Introduction

This is a Python library for getting pictures of characters, light cones, relics and planetaries with names from [starrail.mana](https://starrail.mana.wiki/).


## Installation

```python
pip install hsr-pic-parcer
```

## Available functionality

```python
get_char_pic(name) # returns binary picture of the character and full name of the character
get_char_icon_pic(name) # returns binary icon picture of the character and full name of the character
get_cone_pic(number) # returns binary picture of the light cone and full name of the light cone
get_cone_icon_pic(number) # returns binary icon picture of the light cone and full name of the light cone
get_relic_icon_pic(number) # returns binary icon picture of the relic or planetary and full name of the relic or planetary
get_character_prydwen(name) # returns binary picture of the character from prydwen
```

## Examples

You can get picture of character using the following code:

```python
from hsr_pic_parser import get_char_pic

picture, name = get_char_pic('argenti')
```
The name of the character should be identical to the one used on [starrail.mana](https://starrail.mana.wiki/).

You can get picture and the name of the light cone:

```python
from hsr_pic_parser import get_cone_pic

picture, name = get_cone_pic(20000)
```
The code of the light cone should be equivalent to the one used on [starrail.mana](https://starrail.mana.wiki/).

```python
from hsr_pic_parser import get_relic_icon_pic

picture, name = get_relic_icon_pic(101)

def save_image_as_png(image_data, output_file_path):
    with open(output_file_path, "wb") as png_file:
        png_file.write(image_data)

save_image_as_png(picture, f"${name}.png")
```

You can get the name and the picture of the charater from prydwen [prydwen.gg](https://www.prydwen.gg/star-rail/characters/).

```python
from hsr_pic_parser import get_character_prydwen

picture, name = get_character_prydwen('argenti')
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/vano979797/hsr_pic_parser",
    "name": "hsr-pic-parcer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "python parse hsr",
    "author": "vano979797",
    "author_email": "vano979797@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bf/a5/66bf2e95a2625b2d167658f9a13ae9908246e91f72b11b70cd9dba6ce6a2/hsr_pic_parcer-1.0.2.tar.gz",
    "platform": null,
    "description": "# hsr_pic_parser\n\n## Introduction\n\nThis is a Python library for getting pictures of characters, light cones, relics and planetaries with names from [starrail.mana](https://starrail.mana.wiki/).\n\n\n## Installation\n\n```python\npip install hsr-pic-parcer\n```\n\n## Available functionality\n\n```python\nget_char_pic(name) # returns binary picture of the character and full name of the character\nget_char_icon_pic(name) # returns binary icon picture of the character and full name of the character\nget_cone_pic(number) # returns binary picture of the light cone and full name of the light cone\nget_cone_icon_pic(number) # returns binary icon picture of the light cone and full name of the light cone\nget_relic_icon_pic(number) # returns binary icon picture of the relic or planetary and full name of the relic or planetary\nget_character_prydwen(name) # returns binary picture of the character from prydwen\n```\n\n## Examples\n\nYou can get picture of character using the following code:\n\n```python\nfrom hsr_pic_parser import get_char_pic\n\npicture, name = get_char_pic('argenti')\n```\nThe name of the character should be identical to the one used on [starrail.mana](https://starrail.mana.wiki/).\n\nYou can get picture and the name of the light cone:\n\n```python\nfrom hsr_pic_parser import get_cone_pic\n\npicture, name = get_cone_pic(20000)\n```\nThe code of the light cone should be equivalent to the one used on [starrail.mana](https://starrail.mana.wiki/).\n\n```python\nfrom hsr_pic_parser import get_relic_icon_pic\n\npicture, name = get_relic_icon_pic(101)\n\ndef save_image_as_png(image_data, output_file_path):\n    with open(output_file_path, \"wb\") as png_file:\n        png_file.write(image_data)\n\nsave_image_as_png(picture, f\"${name}.png\")\n```\n\nYou can get the name and the picture of the charater from prydwen [prydwen.gg](https://www.prydwen.gg/star-rail/characters/).\n\n```python\nfrom hsr_pic_parser import get_character_prydwen\n\npicture, name = get_character_prydwen('argenti')\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "parser to get images from hsr mana",
    "version": "1.0.2",
    "project_urls": {
        "Documentation": "https://github.com/vano979797/hsr_pic_parser/blob/4a0309d617f93c56714fe206753119f690109219/README.md",
        "Homepage": "https://github.com/vano979797/hsr_pic_parser"
    },
    "split_keywords": [
        "python",
        "parse",
        "hsr"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79bbd40fd5a683e3731637f064a28d48dc18e7d619103fd700a027903d9fb9cf",
                "md5": "23ff9bc0f43d59bc8987d668e931177d",
                "sha256": "c6691f9048f4ce441fec7e52d0582336c3cca7380b59b9793b42bdda04cf1af1"
            },
            "downloads": -1,
            "filename": "hsr_pic_parcer-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "23ff9bc0f43d59bc8987d668e931177d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5585,
            "upload_time": "2024-04-21T14:13:56",
            "upload_time_iso_8601": "2024-04-21T14:13:56.850192Z",
            "url": "https://files.pythonhosted.org/packages/79/bb/d40fd5a683e3731637f064a28d48dc18e7d619103fd700a027903d9fb9cf/hsr_pic_parcer-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bfa566bf2e95a2625b2d167658f9a13ae9908246e91f72b11b70cd9dba6ce6a2",
                "md5": "ec42321177796022bae02a79f333f22a",
                "sha256": "acdd397539b44fe5e03c44c9399a08ed46d6a20a2804630605be7a5d50d2699a"
            },
            "downloads": -1,
            "filename": "hsr_pic_parcer-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ec42321177796022bae02a79f333f22a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3919,
            "upload_time": "2024-04-21T14:14:39",
            "upload_time_iso_8601": "2024-04-21T14:14:39.667775Z",
            "url": "https://files.pythonhosted.org/packages/bf/a5/66bf2e95a2625b2d167658f9a13ae9908246e91f72b11b70cd9dba6ce6a2/hsr_pic_parcer-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-21 14:14:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "vano979797",
    "github_project": "hsr_pic_parser",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hsr-pic-parcer"
}
        
Elapsed time: 0.24290s