Metadata-Version: 2.1
Name: starrailcard
Version: 1.2.5
Summary: Module for generating Honkai Star Rail character cards
Home-page: https://github.com/DEViantUA/StarRailCard
Author: None
Project-URL: Source, https://github.com/DEViantUA/StarRailCard
Project-URL: Documentation, https://github.com/DEViantUA/StarRailCard/blob/main/README.md
Keywords: honkai,cards,generation,honkaistarraill,raill,starraill,builds,honkairail,honkai
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: Pillow>=10.0.1
Requires-Dist: honkairail>=1.1.4
Requires-Dist: python>=3.9
Provides-Extra: dev
Requires-Dist: cachetools>=5.3.1; extra == "dev"

<p align="center">
 <img src="https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/documentation/StarRailCardM.png" alt="Р‘Р°РЅРЅРµСЂ"/>
</p>

____

## StarRailCard
Module for generating Honkai Star Rail character cards

* Ability to generate with or without background.<br>
* Ability to set a custom image.<br>
* Flexible map settings.

## Installation:
```
pip install starrailcard
```

## Launch:
``` python
from starrailcard import honkaicard 
import asyncio

async def mains():
    async with honkaicard.MiHoMoCard(template=1) as hmhm:
        r = await hmhm.creat(700649319)
        print(r)

asyncio.run(mains())
```

<details>
<summary>Add image author</summary>

``` python
from starrailcard import honkaicard 
import asyncio

async def mains():
    async with honkaicard.MiHoMoCard(template=1) as hmhm:
        r = await hmhm.creat(700649319)
        for key in r.card:
            cards = await hmhm.add_author(link= "https://www.deviantart.com/dezzso", card= key.card)
            #cards.save(f"{key.id}.png") #A function to save an image with the author's stamp added.
        print(r)

asyncio.run(mains())
```
</details>


<details>
<summary>Create a profile card.</summary>

``` python
from starrailcard import honkaicard 
import asyncio

async def mains():
    async with honkaicard.MiHoMoCard(template=1) as hmhm:
        r = await hmhm.get_profile(700649319,  card = True)
        print(r)

asyncio.run(mains())
```
</details>


## Languages Supported
| Languege    |  Code   | Languege    |  Code   | Languege    |  Code   |
|-------------|---------|-------------|---------|-------------|---------|
|  English    |     en  |  СЂСѓСЃСЃРєРёР№    |     ru  |  Chinese    |    chs  |
|  Tiбєїng Viб»‡t |     vi  |  а№„аё—аёў        |     th  | Taiwan     |    cht  |
|  portuguГЄs  |     pt  | н•њкµ­м–ґ      |     kr  | deutsch    |     de  |
|  ж—Ґжњ¬иЄћ      |     jp  | дё­ж–‡        |     zh  | espaГ±ol    |     es  |
|  дё­ж–‡        |     zh  | Indonesian |     id  | franГ§ais   |     fr  |



<details>
<summary>Sample 1 template</summary>
 
[![Adaptation][3]][3]
 
[3]: https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/documentation/a-18.png
  
</details>


<details>
<summary>Sample 2 template</summary>
 
[![Adaptation][4]][4]
 
[4]: https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/documentation/a-19.png
 
</details>


<details>
<summary>Sample 3 template</summary>
 
[![Adaptation][2]][2]
 
[2]: https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/documentation/a-21.png
 
</details>


<details>
<summary>Sample 4 template</summary>
 
[![Adaptation][5]][5]
 
[5]: https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/documentation/a-25.png
 
</details>


<details>
<summary>Sample 5 template</summary>
 
[![Adaptation][6]][6]
 
[6]: https://github.com/DEViantUA/StarRailCard/blob/main/documentation/a-26.png?raw=true
 
</details>


<details>
<summary>Sample profile template</summary>
 
[![Adaptation][1]][1]
 
[1]: https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/documentation/a-22.png
 
</details>

# Thank the author for the code: 
* **Patreon**: https://www.patreon.com/deviantapi
