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 |
Thank the author for the code:
- Patreon: https://www.patreon.com/deviantapi
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-1.2.2.tar.gz
(19.4 MB
view hashes)
Built Distribution
Close
Hashes for starrailcard-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7aeaa1c18c32d75f8b61280933dcbea292ce26ff4a236370ac023c3aa120675 |
|
MD5 | f10eafb603bc6b99a82f1c352c5bc06a |
|
BLAKE2b-256 | e8182d640fbb898249f6cb8272eebc093ef59a8e9c6376fb3cbe5b1e3638ecd3 |