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 | Provenance | Actions |
|---|---|---|---|---|
| lunamint-0.1.3.tar.gz | 140.8 kB | Without provenance | Details for lunamint-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lunamint-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for lunamint-0.1.3-py3-none-any.whl |
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
|
Security for lunamint 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.