wuwaimagen


Namewuwaimagen JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/Wuthery/WuWaConvene.py
SummaryWuWaImaGen - is a Python module that allows you to generate images for projects based on the game Wuthering Waves
upload_time2024-07-12 20:17:36
maintainerNone
docs_urlNone
authorDeviantUa
requires_python>=3.9
licenseMIT
keywords wuthering waves generation wuwa gacha convene card api
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/Wuthery/WuWaConvene.py/main/ReadMeConfig/banner.png" alt="Баннер"/>
</p>

# WuWaImaGen.py
WuWaImaGen - is a Python module that allows you to generate images for projects based on the game Wuthering Waves


### Possibilities:

* Generate card Gacha
* Counting  Gacha history
* Automatically receive a link to the journal
* Counting history
* Generating a calendar of events in the game

### Helpful information:
* [Documentation](https://github.com/Wuthery/WuWaImaGen.py/wiki/Documentation) 
* [Discord](https://discord.gg/rKrbqz5utj)

### Install:

```
pip install wuwaimagen
```

### Launch:

```python
import asyncio
import wuwaimagen

'''
This example allows you to generate a gacha card and calculate your luck.
More examples here: https://github.com/Wuthery/WuWaImaGen.py/tree/main/Example
'''

client = wuwaimagen.ClientWuWa(assets=True)

async def main():    
    async with client:
        data = await client.get_gacha_info("YOU_LINK", 1, lang= 'en', generator=True)
        for key in data.data:
            icon = await key.get_icon()
            if key.typeRecord == 1:
                print(f"==[{key.resourceType}] ({key.qualityLevel}) {key.name} - {key.time} [{key.drop}]\nICON: {icon.icon}\nBANNER: {icon.banner}\n")
            else:
                print(f"[{key.resourceType}] ({key.qualityLevel}) {key.name} - {key.time}[{key.drop}]\nICON: {icon.icon}\n")
        
        print(f"Total Spin: {data.info.total_spin}\nAstrite: {data.info.astrite}\n==|Five Stars: {data.info.five_stars.resonator} | {data.info.five_stars.weapon}\n==|Four Stars: {data.info.four_stars.resonator} | {data.info.four_stars.weapon}\n==Three Stars: {data.info.three_stars.weapon}")
        print(f"Card: {data.card}")

                
asyncio.run(main())

```


-------
> [!NOTE]  
> The module is still under development, this is not the final version, so stay tuned for updates

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Wuthery/WuWaConvene.py",
    "name": "wuwaimagen",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Wuthering, Waves, generation, WuWa, gacha, convene, card, api",
    "author": "DeviantUa",
    "author_email": "deviantapi@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/6d/3cc842bfd011dd1f5334551c76d838633d8e61d50038861947d4205fc678/wuwaimagen-0.1.3.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n <img src=\"https://raw.githubusercontent.com/Wuthery/WuWaConvene.py/main/ReadMeConfig/banner.png\" alt=\"\u0411\u0430\u043d\u043d\u0435\u0440\"/>\n</p>\n\n# WuWaImaGen.py\nWuWaImaGen - is a Python module that allows you to generate images for projects based on the game Wuthering Waves\n\n\n### Possibilities:\n\n* Generate card Gacha\n* Counting  Gacha history\n* Automatically receive a link to the journal\n* Counting history\n* Generating a calendar of events in the game\n\n### Helpful information:\n* [Documentation](https://github.com/Wuthery/WuWaImaGen.py/wiki/Documentation) \n* [Discord](https://discord.gg/rKrbqz5utj)\n\n### Install:\n\n```\npip install wuwaimagen\n```\n\n### Launch:\n\n```python\nimport asyncio\nimport wuwaimagen\n\n'''\nThis example allows you to generate a gacha card and calculate your luck.\nMore examples here: https://github.com/Wuthery/WuWaImaGen.py/tree/main/Example\n'''\n\nclient = wuwaimagen.ClientWuWa(assets=True)\n\nasync def main():    \n    async with client:\n        data = await client.get_gacha_info(\"YOU_LINK\", 1, lang= 'en', generator=True)\n        for key in data.data:\n            icon = await key.get_icon()\n            if key.typeRecord == 1:\n                print(f\"==[{key.resourceType}] ({key.qualityLevel}) {key.name} - {key.time} [{key.drop}]\\nICON: {icon.icon}\\nBANNER: {icon.banner}\\n\")\n            else:\n                print(f\"[{key.resourceType}] ({key.qualityLevel}) {key.name} - {key.time}[{key.drop}]\\nICON: {icon.icon}\\n\")\n        \n        print(f\"Total Spin: {data.info.total_spin}\\nAstrite: {data.info.astrite}\\n==|Five Stars: {data.info.five_stars.resonator} | {data.info.five_stars.weapon}\\n==|Four Stars: {data.info.four_stars.resonator} | {data.info.four_stars.weapon}\\n==Three Stars: {data.info.three_stars.weapon}\")\n        print(f\"Card: {data.card}\")\n\n                \nasyncio.run(main())\n\n```\n\n\n-------\n> [!NOTE]  \n> The module is still under development, this is not the final version, so stay tuned for updates\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "WuWaImaGen - is a Python module that allows you to generate images for projects based on the game Wuthering Waves",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/Wuthery/WuWaConvene.py",
        "Repository": "https://github.com/Wuthery/WuWaConvene.py"
    },
    "split_keywords": [
        "wuthering",
        " waves",
        " generation",
        " wuwa",
        " gacha",
        " convene",
        " card",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e74547329a6919fd86d7e21878808dcf05d3999c5d97a07dca955f68f0e8ab5a",
                "md5": "50acaf8d5736ab2f866bb67d45685c6f",
                "sha256": "f4225b18976c1eac5581771449bd9766355f4f137b50418f3eb7d4d5e76291e2"
            },
            "downloads": -1,
            "filename": "wuwaimagen-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "50acaf8d5736ab2f866bb67d45685c6f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 139167,
            "upload_time": "2024-07-12T20:17:34",
            "upload_time_iso_8601": "2024-07-12T20:17:34.506624Z",
            "url": "https://files.pythonhosted.org/packages/e7/45/47329a6919fd86d7e21878808dcf05d3999c5d97a07dca955f68f0e8ab5a/wuwaimagen-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa6d3cc842bfd011dd1f5334551c76d838633d8e61d50038861947d4205fc678",
                "md5": "46cbaf2e9938efc17070bfd6b145971b",
                "sha256": "df5f7fa558804dcdd8eef632ca15f9819c814cf42645a483131b3f085701f10a"
            },
            "downloads": -1,
            "filename": "wuwaimagen-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "46cbaf2e9938efc17070bfd6b145971b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 130095,
            "upload_time": "2024-07-12T20:17:36",
            "upload_time_iso_8601": "2024-07-12T20:17:36.449893Z",
            "url": "https://files.pythonhosted.org/packages/aa/6d/3cc842bfd011dd1f5334551c76d838633d8e61d50038861947d4205fc678/wuwaimagen-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-12 20:17:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Wuthery",
    "github_project": "WuWaConvene.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "wuwaimagen"
}
        
Elapsed time: 0.46477s