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.5.tar.gz
(24.2 kB
view hashes)
Built Distribution
Close
Hashes for starrailcard-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed6fb418e0d91c0513c1aab838e0d31e9b32c7e315669733962a75ec58a0b9a |
|
MD5 | 6d92e6a2841d36cf94fa54d1a2ee38ce |
|
BLAKE2b-256 | 575af85fd2f7b1463921fc9d62e7490036b2298aa6801935f0524e6a60d19838 |