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())
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 |
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(22.3 MB
view hashes)
Built Distribution
Close
Hashes for starrailcard-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd6eec3e632574440e2c4b1816828c6d0f160a14bb8bea56a9895c584c2ab96 |
|
MD5 | 3d2d9dd6a0db61af4e264dc04cd4f205 |
|
BLAKE2b-256 | d436c46a52e8d0c79412942265d2389f51a230385200225aaa667a1fbacec283 |