This release is a pre-release and may not be stable for production use.
forge-mvc-qrcode
Opt-in Forge de génération de QR Codes.
Produire un QR Code PNG ou SVG depuis du texte ou une URL, et le servir via une réponse HTTP utilisable dans un contrôleur Forge.
Le cœur de Forge ignore tout des QR Codes. Ce paquet fournit l'API. L'application décide de ce qu'elle encode.
Installation
pip install --pre forge-mvc-qrcode
Dépendances : forge-mvc (cœur) et segno (génération pur Python, sans Pillow).
Génération PNG et SVG
from forge_mvc_qrcode import QrCode
qr = QrCode.from_text("https://forgemvc.com")
png_bytes = qr.to_png() # octets PNG
svg_text = qr.to_svg() # document SVG (texte)
Un texte vide lève QrCodeError.
Réponse HTTP depuis un contrôleur
from forge_mvc_qrcode import QrCodeResponse
def qrcode(request):
return QrCodeResponse.from_text("https://forgemvc.com")
La réponse est un PNG par défaut (Content-Type: image/png).
Passer fmt="svg" pour un SVG (Content-Type: image/svg+xml).
Limites de ce socle
Ce paquet ne fait que générer et servir un QR Code. Pas de commande CLI, pas de stockage, pas de scanner, pas de PDF, pas de logique métier (badge, ticket, inventaire). Ces usages restent à la charge de l'application ou de tickets ultérieurs.
Metadata
Release files for forge-mvc-qrcode 1.0.0rc9
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 |
|---|---|---|---|---|
| forge_mvc_qrcode-1.0.0rc9.tar.gz | 16.2 kB | Without provenance | Details for forge_mvc_qrcode-1.0.0rc9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forge_mvc_qrcode-1.0.0rc9-py3-none-any.whl | Python 3 | none | any | Details for forge_mvc_qrcode-1.0.0rc9-py3-none-any.whl |
Total release size: 27.0 kB
Release files / forge_mvc_qrcode-1.0.0rc9.tar.gz
| Download URL | forge_mvc_qrcode-1.0.0rc9.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32f274094bc107d0a105ce38f50396e59e8f759b1cec5450a7c3dc4924b8213b
|
|
BLAKE2b-256 checksum How to use checksums |
9bc88e2a1171fc725303fbc37a9d2c32f09a74f370279cba3dfccc06c4859058
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / forge_mvc_qrcode-1.0.0rc9-py3-none-any.whl
| Download URL | forge_mvc_qrcode-1.0.0rc9-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b62fb0e5cc33b501b9fd18ed88c685ef097e298d6febfcf0a7dee1ce4c02ea53
|
|
BLAKE2b-256 checksum How to use checksums |
a5f7400c5f09f5fb1f7494400de04e4fe3efe176d8f5bfafd0d2a142162e2ca2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for forge-mvc-qrcode 1.0.0rc9
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.