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"])
Metadata
Release files for lunamint 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lunamint-0.1.3.tar.gz | 140.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lunamint-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 307.3 kB
Release files / lunamint-0.1.3.tar.gz
| Download URL | lunamint-0.1.3.tar.gz |
|---|---|
| Size | 140.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d287a17fe0d7bcb8970999dd6cd255010d6dd3ce4e80d1924d0409131f2f9a76
|
|
BLAKE2b-256 checksum How to use checksums |
e46371c05c002b9d0e1f084684ceb3bd6f0fa1caed4a9209958cad0690112437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.6
|
Release files / lunamint-0.1.3-py3-none-any.whl
| Download URL | lunamint-0.1.3-py3-none-any.whl |
|---|---|
| Size | 166.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bf137b35d29c2144d41a1b6a55de7f806b5492fe24c65bf9a79f1cf3ed6de95
|
|
BLAKE2b-256 checksum How to use checksums |
ece98706e33465d45bfd7b9d3e70f65b532c27c8721c74a9e52f4a47cd0b6ab2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.6
|