Skip to main content

Module for generating Honkai Star Rail character cards

Project description

Баннер


StarRailCard

Module for generating Honkai Star Rail character cards

  • Ability to generate with or without background.
  • Ability to set a custom image.
  • Flexible map settings.

Installation:

pip install starrailcard

Launch:

from starrailcard import honkaicard 
import asyncio

async def mains():
    async with honkaicard.MiHoMoCard(template=1) as hmhm:
        r = await hmhm.creat(700649319)
        print(r)

asyncio.run(mains())
Add image author
from starrailcard import honkaicard 
import asyncio

async def mains():
    async with honkaicard.MiHoMoCard(template=1) as hmhm:
        r = await hmhm.creat(700649319)
        for key in r.card:
            cards = await hmhm.add_author(link= "https://www.deviantart.com/dezzso", card= key.card)
            #cards.save(f"{key.id}.png") #A function to save an image with the author's stamp added.
        print(r)

asyncio.run(mains())
Create a profile card.
from starrailcard import honkaicard 
import asyncio

async def mains():
    async with honkaicard.MiHoMoCard(template=1) as hmhm:
        r = await hmhm.get_profile(700649319,  card = True)
        print(r)

asyncio.run(mains())

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 1 template

Adaptation

Sample 2 template

Adaptation

Sample 3 template

Adaptation

Sample profile template

Adaptation

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

starrailcard-0.1.7.tar.gz (22.7 MB view details)

Uploaded Source

Built Distribution

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

starrailcard-0.1.7-py3-none-any.whl (23.0 MB view details)

Uploaded Python 3

File details

Details for the file starrailcard-0.1.7.tar.gz.

File metadata

  • Download URL: starrailcard-0.1.7.tar.gz
  • Upload date:
  • Size: 22.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.11 Windows/10

File hashes

Hashes for starrailcard-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ccf97b2379b0023f0014df9d8d46076a4303184f66b4658824fd65d2b2d9adb9
MD5 32a3d65c62d4d574563ed2b96dfabfd5
BLAKE2b-256 49fa0eec19047981b70aed1dba4e7dc6aa8a5f662f02f1dca134c34c34b7fac1

See more details on using hashes here.

File details

Details for the file starrailcard-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: starrailcard-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 23.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.11 Windows/10

File hashes

Hashes for starrailcard-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d03ba67750b3ce1875d756cfeb6c573c6559428676bfb0b4f51d98d8b898ed
MD5 021066856b304ca810883e7ec6559cfd
BLAKE2b-256 dfc2fb5bacac31f320761edc0e949e8a379dd176104852d0e22ab86ef188fbf9

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