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

Card Teams

Teams

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.6.tar.gz (113.3 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.2.6-py3-none-any.whl (121.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zenka-0.2.6.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

Hashes for zenka-0.2.6.tar.gz
Algorithm Hash digest
SHA256 3ac5bd2d1bb1db88d921533bf746deb678dd96b196ec6c264602a6faa0f6e12c
MD5 651e6bbea4ebd6447b33900a988e562f
BLAKE2b-256 5eca8b014af515ea54c6163e6be5fb5f9b2e11a149a5c2e0bb46288f3dc010d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zenka-0.2.6-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

Hashes for zenka-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b023028258cfd2c4deb1d7684a27877e86f3e345b8a474a86aaa4e1d56236d33
MD5 157e58254e40b0086e342b1cab3b135b
BLAKE2b-256 732e38315714b4a25e5b4d594be2eea47d603ab260f80b61e3126d95149ee543

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