A python package for generate your certificates instantly!
Project description
instacerty!
This Package enables the instant generation of certificates in PDF format, offering customizable fields such as name, course, instructor, and more. It supports optional elements like background images, badges, signatures, certificate numbers, and issue dates, providing flexibility for users to personalize certificates quickly and efficiently. Ideal for educational institutions, training programs, or events, it simplifies the creation of professional certificates. Future updates will introduce more features such as custom fonts, date format, dynamic QR codes, and enhanced design templates to further enrich the certificate creation process
Output
Features
1. Generate Certificates
- Input Fields: Allows users to input the name, course, instructor, and other details.
- Dynamic PDF Generation: Automatically generates certificates in both PDF using the provided information.
- Customizable Layout: The certificates are designed in A4 landscape format with a user-defined background watermark or logo and signature also.
2. QR Code Integration
- A QR code is automatically generated and added to the bottom of the certificate.
- The QR code encodes information such as the certificate number,name, course like allowing for quick verification.
3. File Handling
- Generate & Store: The application stores the generated certificates (PDF) in the current directory when you create .py file and using this Package
4. Download Certificates
- Certificates in PDF from automatically download after Generate Processs Complete.
5. Date Formatting
- The application formats dates in the day-month-year format for consistency on certificates(in future it will be Customizable format).
Installation
1.Clone the repository:
pip install instacerty
2.Import:
from instacerty import generate_certificate
Usage
1. Basic Usage
from instacerty import generate_certificate
# Certificate details(this 3 field is mandatory)
name = "Alita"
course = "Python Programming"
instructor = "Youtube"
# Generate the certificate
generate_certificate(
name=name,
course=course,
instructor=instructor
)
Output
2. Customizable
from instacerty import generate_certificate
# Certificate details
name = "Alita"
course = "Python Programming"
instructor = "Youtube"
#Change custom bg
bg_image_path = "path/to/background.jpg"
#Change custom badge
badge_image_path = "path/to/badge.png"
#Change custom signature
signature_image_path = "path/to/signature.png"
#Where you want to save the PDF Certificates
custom_save_path="certificates/"
#Custom certificate number
custom_certificate_number="CERT123456"
#Custom issue date
custom_issue_date="15-08-2024"
# Generate the certificate
generate_certificate(
name=name,
course=course,
instructor=instructor,
bg=bg_image_path,
is_badge=True,
badge_img=badge_image_path,
is_signature=True,
signature_img=signature_image_path,
save_path=custom_save_path,
certificate_number=custom_certificate_number,
issue_date=custom_issue_date
)
Function
1 . generate_certificate
- This is main function for generate certificates
Parameters
- name (str): The name of the individual receiving the certificate.
- course (str): The name of the course for which the certificate is awarded.
- instructor (str): The name of the instructor issuing the certificate.
- bg (str, optional): If you want to use custom background for your certificates, the file path to a background image for the certificate else it will take the default background image. Defaults to None.
- is_badge (bool, optional): Whether to include a badge on the certificate. Defaults to True.
- badge_img (str, optional): If you want to use custom badge for your certificates the file path to the badge image else it use default badge image. Defaults to None.
- is_signature (bool, optional): Whether to include a signature on the certificate. Defaults to True.
- signature_img (str, optional): If you want to use custom signature for your certificates The file path to the signature image else it use default signature image. Defaults to None.
- save_path (str, optional): The file path where the generated PDF certificates will be saved. Defaults to None.
- certificate_number (str, optional): If you want to use custom Certificate Number for your certificates , you can use this Parameter. Defaults to None.
- issue_date (str, optional): If you want to use custom Issue Date for your certificates , you can use this Parameter . Defaults to None.
2 . get_certy_number
- This function for generate unique 12-Digit Alphanumeric Number
Other Packages
The following Packages are dependencies for instacerty!
- chardet
- colorama
- pillow
- qrcode
- reportlab
GitHub
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file instacerty-1.0.0.tar.gz
.
File metadata
- Download URL: instacerty-1.0.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd019ff3e9c192782f47cac498ffedb3f1f8d127bbb69addd01b0d2dbae46d85 |
|
MD5 | 6e9d764a38a086b9e045293e7935c19d |
|
BLAKE2b-256 | 33975b7d703a9a496f3b0efa18136959ec2bdd946ab7e8f15a8df07aa4dddc85 |
File details
Details for the file instacerty-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: instacerty-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014a5d9f0795a9807ab869a55e308d8f784d5bb8403d173d77d1340fd98af049 |
|
MD5 | 3cad334134c4834856b1284090015851 |
|
BLAKE2b-256 | 8ee38258ec5249cafc1e5fd00d6647f71acb401e498aa7e8db215f5d49b97550 |