python_diploma_generator
Generate PDF diplomas using images and a CSV file
Install
pip install diploma_generator
Usage as module
Params:
- background_image_path: path to the background image
- x: x position of the name in cm
- y: y position of the name in cm
- w: width of the name in cm
- h: height of the name in cm
- font_size: font size of the name
- font_path: path to the font
from diploma_generator import DiplomaGenerator
diploma_generator = DiplomaGenerator(
background_image_path,
x, y,
w, h,
font_size, font_path
)
diploma_generator.add_diploma_page(person_name, Optional[qr_code_text])
diploma_generator.save("output.pdf")
Usage as CLI single diploma
diploma_generator \
--background_image_path <path> \
-n <name> \
-xy "1,11" \
-wh "24,1" \
-o "output.pdf"
Usage as CLI multiple diplomas
diploma_generator \
--background_image_path <path> \
--csv <path> \
-xy "1,11" \
-wh "24,1" \
-o "output.pdf"
Example CSV (name, qr, output)
Nombre 1,Para el QR,diploma1
Nombre 2,,diploma.pdf
Nombre 3,,
Metadata
Release files for diploma-generator 1.0.2
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 |
|---|---|---|---|---|
| diploma_generator-1.0.2.tar.gz | 3.8 kB | Without provenance | Details for diploma_generator-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diploma_generator-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for diploma_generator-1.0.2-py3-none-any.whl |
Total release size: 106.8 kB
Release files / diploma_generator-1.0.2.tar.gz
| Download URL | diploma_generator-1.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4374eca0514d2d41b0d3a642b1b827aa5a70fa290e03081c39a532ad558d1f3e
|
|
BLAKE2b-256 checksum How to use checksums |
8b52823a4ee9d0178840591dd76109dd6106b2b530b81fb270cd037ca7a42907
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / diploma_generator-1.0.2-py3-none-any.whl
| Download URL | diploma_generator-1.0.2-py3-none-any.whl |
|---|---|
| Size | 103.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad98b0ed905c337915ec3e726e4d73724721a559fd0bba56ca41eb1d8291674d
|
|
BLAKE2b-256 checksum How to use checksums |
f912f640fa54faa9660733ab416cc5d6d3f53d500b656dacc32edadd08bd5415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for diploma-generator 1.0.2
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.