Standalone SVG/PNG banknote generation helpers.
Project description
lunamint
Standalone SVG/PNG banknote generation helpers.
Install
pip install lunamint
Gradio UI + API (optional)
pip install lunamint[gradio]
python -m lunamint.app.gradio_app
Gradio will print a local URL. The same app exposes a JSON API endpoint:
POST /run/predict
Content-Type: application/json
{
"data": [
"Ling Treasury",
10,
"./portraits/portrait_ling.png",
"灵国国库",
"天圆地方",
160.0,
60.0,
300.0,
""
]
}
Response includes paths for front_png and back_png plus metadata.
Usage
from lunamint import generate_banknote_pair_svgs_pngs
result = generate_banknote_pair_svgs_pngs(
name="Ling Treasury",
denom=10,
portrait_path="./portraits/portrait_ling.png",
output_dir="./out/10",
)
print(result["front_svg"], result["back_svg"])
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
lunamint-0.1.1.tar.gz
(116.2 kB
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
lunamint-0.1.1-py3-none-any.whl
(140.4 kB
view details)
File details
Details for the file lunamint-0.1.1.tar.gz.
File metadata
- Download URL: lunamint-0.1.1.tar.gz
- Upload date:
- Size: 116.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ea03b1a75401996a93f8b1324d5e79082dc5e9bd27c44b864f9a1d5dfc0090
|
|
| MD5 |
bd609469f0948471d113f4af17503ccf
|
|
| BLAKE2b-256 |
4196af398548d87f9d6e784dab837123a8ad803d4f71f46541b036bcd87ec54c
|
File details
Details for the file lunamint-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lunamint-0.1.1-py3-none-any.whl
- Upload date:
- Size: 140.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b475b0c05fd4fc546bf13e233830b950eda0ad51620502ca182c12ac15406de
|
|
| MD5 |
f79b078de1b8e7be0f56909e66abe221
|
|
| BLAKE2b-256 |
0d127a9e3d74b18cd1fb8734d12b66eaef61dde84d3fbb3731ce225b9ab36091
|