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

Adaptation

Sample 5 template

Adaptation

Sample profile template

Adaptation

Thank the author for the code:

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-1.2.7.tar.gz (17.8 MB view hashes)

Uploaded Source

Supported by

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