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 |
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.7.tar.gz
(22.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccf97b2379b0023f0014df9d8d46076a4303184f66b4658824fd65d2b2d9adb9
|
|
| MD5 |
32a3d65c62d4d574563ed2b96dfabfd5
|
|
| BLAKE2b-256 |
49fa0eec19047981b70aed1dba4e7dc6aa8a5f662f02f1dca134c34c34b7fac1
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8d03ba67750b3ce1875d756cfeb6c573c6559428676bfb0b4f51d98d8b898ed
|
|
| MD5 |
021066856b304ca810883e7ec6559cfd
|
|
| BLAKE2b-256 |
dfc2fb5bacac31f320761edc0e949e8a379dd176104852d0e22ab86ef188fbf9
|