Python module for processing EnkaNetwork API and creating profile cards, character
Project description
Zenka
Python module for processing EnkaNetwork API and creating profile cards, character
:white_medium_square: Telegram
:white_medium_square: Generation results
Installation:
pip install zenka
Launch:
import asyncio
from zenka import zenka, ZZZError
async def main(uid: int) -> zenka.ZenkaGenerator:
try:
async with zenka.Client() as client:
data = await client.card(uid)
print(data)
except ZZZError as e:
print(f"Code:{e.code} Message: {e.text}")
return data
uid = 1500004451
asyncio.run(main(uid))
More Example: EXAMPLE
Use API:
import asyncio
from zenka import zenka, ZZZError, ZenkaApi
async def main(uid: int) -> ZenkaApi:
try:
async with zenka.Client() as client:
data = await client.get_api(uid)
print(data)
except ZZZError as e:
print(f"Code:{e.code} Message: {e.text}")
return data
uid = 1500004451
asyncio.run(main(uid))
Languages Supported
| Languege | Code | Enume | Languege | Code | Enume | Languege | Code | Enume |
|---|---|---|---|---|---|---|---|---|
| English | en | Lang.EN | русский | ru | Lang.RU | Chinese | chs | Lang.CN |
| Tiếng Việt | vi | Lang.VI | ไทย | th | Lang.TH | Taiwan | cht | Lang.CHT |
| português | pt | Lang.PT | 한국어 | kr | Lang.KR | deutsch | de | Lang.DE |
| 日本語 | jp | Lang.JP | 中文 | zh | Lang.CN | español | es | Lang.ES |
| 中文 | zh | Lang.CN | Indonesian | id | Lang.ID | français | fr | Lang.FR |
Resultat:
Thank you for your support! ❤️
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zenka-0.2.7.tar.gz
(113.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zenka-0.2.7-py3-none-any.whl
(121.1 kB
view details)
File details
Details for the file zenka-0.2.7.tar.gz.
File metadata
- Download URL: zenka-0.2.7.tar.gz
- Upload date:
- Size: 113.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f69dbc53621e49ef1780777b88e022687e44554c60d369f1d3396e4bd4fd895
|
|
| MD5 |
202a15c1aa17d173cc20d267e51f6c81
|
|
| BLAKE2b-256 |
ee00e386ada0e611336a0dc0e247535e7707b54795eaf4a772677432e479bb8a
|
File details
Details for the file zenka-0.2.7-py3-none-any.whl.
File metadata
- Download URL: zenka-0.2.7-py3-none-any.whl
- Upload date:
- Size: 121.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b85af3beadcfac2169343429b53b47e334d63797e24f0a0cb7159feab3e03a6
|
|
| MD5 |
07a10388b8a374edbd4caf5e580c95c1
|
|
| BLAKE2b-256 |
d709a55d292738abe21b0ac838537f47470c22dea142bfbca60fe167ccea6762
|