enkacard2 2.0.2
An asynchronous module and API that allows you to connect to your bot the generation of Genshin character cards from the Enka.Network website.
Requires Python: >=3.7,<4.0

<p align="center">
 <img src="https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/BannerCard.png?raw=true" alt="Баннер"/>
</p>

____
<img src="https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/Shablon_01.png?raw=true" width = 38% alt="Баннер"/>[<img src="https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/dark/Shablon_02.png?raw=true" width = 6% alt="Баннер"/>](https://pypi.org/project/enkacard/)[<img src="https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/dark/Shablon_03.png?raw=true" width = 7% alt="Баннер"/>](https://discord.gg/Pcb834pHe3)[<img src="https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/dark/Shablon_04.png?raw=truee" width = 7% alt="Баннер"/>](https://github.com/DEViantUA/EnkaCard)[<img src="https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/dark/Shablon_05.png?raw=true" width = 6% alt="Баннер"/>](https://enka.network/)
____

## EnkaCard 
An asynchronous module and API that allows you to connect to your bot the generation of Genshin character cards from the Enka.Network website. <br><br>
* 5 templates to choose from.<br>
* 2 profile templates.<br>
* Customization of all cards with background adaptation.

## Full Documentation:
  - [Documentation EnkaCard2](https://github.com/DEViantUA/EnkaCard/tree/EnkaCard2) 
  - [ENCard](https://github.com/DEViantUA/ENCard) - Addon to the module.
  - [NewVerison](https://github.com/DEViantUA/EnkaCard/tree/main)

## Installation:
```
pip install enkacard
```

## Launch:
``` python
from enkacard2 import encbanner2
import asyncio

async def card():
    async with encbanner2.ENC((uid = "811455610") as encard:
        return await encard.creat(1)

result = asyncio.run(card()) 

print(result)
```
<details>
<summary>Launch Profile</summary>

``` python
from enkacard2 import encbanner2
import asyncio

async def card():
    async with encbanner2.ENC(uid = "811455610") as encard:
        return await encard.profile(1)

result = asyncio.run(card()) 

print(result)
```
</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  |


## Sample Results:
<details>
<summary>Sample 1 template</summary>
 
[![Adaptation][1]][1]
 
[1]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/7.png?raw=true

[![Without Adaptation][2]][2]
 
[2]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/6.png?raw=true
</details>


<details>
<summary>Sample 2 template</summary>
 
[![Adaptation][3]][3]
 
[3]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/4.png?raw=true
  
</details>


<details>
<summary>Sample 3 template</summary>
 
[![Adaptation][4]][4]
 
[4]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/5.png?raw=true
 
</details>

<details>
<summary>Sample 4 template</summary>
 
[![Without Adaptation MINI INFO][5]][5]
 
[5]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/1.png?raw=true
 
[![Without Adaptation FULL INFO][6]][6]
 
[6]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/2.png?raw=true
 
[![Adaptation MINI INFO][7]][7]
 
[7]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/3.png?raw=true
 
</details>

<details>
<summary>Sample 5 template</summary>
 
[![Adaptation][8]][8]
 
[8]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/10.png?raw=true

[![Without Adaptation][9]][9]
 
[9]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/9.png?raw=true
</details>

<details>
<summary>Sample 6 template</summary>
 
[![Adaptation][11]][11]
 
[11]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/12.png?raw=true

[![Without Adaptation][10]][10]
 
[10]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/13.png?raw=true
 
 [![Display 1-4 characters][12]][12]
 
[12]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/14.png?raw=true
</details>

<details>
<summary>Sample 7 template</summary>
 
[![Adaptation][13]][13]
 
[13]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/15.png?raw=true

[![Without Adaptation][14]][14]
 
[14]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/16.png?raw=true
</details>

---

<details>
<summary>Profile sample 1 template</summary>
 
[![Profile][15]][15]
 
[15]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/8.png?raw=true

</details>

<details>
<summary>Profile sample 2 template</summary>
 
[![Profile][16]][16]
 
[16]: https://github.com/DEViantUA/EnkaCard/blob/main/readmeFile/11.png?raw=true

</details>

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