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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zenka-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fc1831d050ba8ba250eb29c973c668e0d9797f41d6d7716d425e0d65d1c309e4
MD5 c513658cce1aeaca67639732e95e09f1
BLAKE2b-256 bbfc983c3a5438e5b6ed6ac7255a097e98b3a8ded7e470dd54a6b7f5d74699a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zenka-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 116.4 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.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f6ee0cf48cb35cc2cd4593989d5e8c87e8bb077f798e914d88c8e8b3a20c269b
MD5 95f152787d2f97ac3e612aa19683a0f2
BLAKE2b-256 11853c50f1576d6bc4eabe88e2245fbc065e586e63eef8894da46d9e032ddda8

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