Skip to main content

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:

Card

Card

Card Art

Profile

Profile

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.1.0.tar.gz (110.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenka-0.1.0-py3-none-any.whl (115.5 kB view details)

Uploaded Python 3

File details

Details for the file zenka-0.1.0.tar.gz.

File metadata

  • Download URL: zenka-0.1.0.tar.gz
  • Upload date:
  • Size: 110.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for zenka-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75d905bc7d94e2eb985d1091b88ecf394c9d50a46db2c8a6379e89a78bdd711b
MD5 366a152cdb99344723d31b178dffb6ef
BLAKE2b-256 a1b9dc8a8cf408a9043c996e1517ffd1e53077ca6c3616f8887c905d3d9a73de

See more details on using hashes here.

File details

Details for the file zenka-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zenka-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 115.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for zenka-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e514cbec3237d134f4f4a061bcfafd71573681d9c0a8d8e88e1ee17f5ca92a2
MD5 90b463d3129b7cf4b94dd7d6ea03ad5f
BLAKE2b-256 fe22766ec0f7c11506e4f956888a791a6e2e7c4186e5547e0e202f7f29c17408

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page