pramanpatram-lib
Python Wrapper Library for Pramanpatram to generate event certificates
Supported Features
- Generating event certificates with only attendee names
Installation
$ pip install pramanpatram
Getting Started
Import the package
import Pramanpatram
Create .csv file containing the Column header as Attendees with the Attendee names
Pass the parameters into patram.generate_certificates():
| Parameter | Description |
|---|---|
csv_path |
Path of CSV File |
sample_path |
Path of Certificate Template File |
text_coords_x |
X Coordinate of the text to be printed |
text_coords_y |
Y Coordinate of the text to be printed |
text_size |
Size of text to be printed |
r_Value |
Red Colour Value (Set to 0 for Black) |
g_Value |
Green Colour Value (Set to 0 for Black) |
b_Value |
Blue Colour Value (Set to 0 for Black) |
text_width |
Width of text |
certificate_text |
Text to be printed on the certificate (use {name} to print the name in the position) |
certificate_path |
Location to save certificates |
Run the program to find your certificates in the path you mentioned.
Documentation
Available Methods
-
generate_certificates(self, csv_path, sample_path, text_coords_x, text_coords_y, text_size, r_value, g_value, b_value, text_width, certificate_text, certificate_path)Takes 12 inputs and generates the certificates in the specified path
Example:
import os from pramanpatram.pramanpatram import Pramanpatram def test_generate_certificate(): csv_path = "attendees.csv" sample_path = "sample.jpg" text_coords_x = 110 text_coords_y = 120 text_size = 20 r_value = 0 g_value = 0 b_value = 0 text_width = 40 certificate_text = "Thanks {name}" certificate_path = "certificates" if not os.path.exists(csv_path): print(f"CSV file not found at path: {csv_path}") return if not os.path.exists(certificate_path): os.makedirs(certificate_path) print(f"Created directory for certificates at path: {certificate_path}") patram = Pramanpatram() result = patram.generate_certificates(csv_path, sample_path, text_coords_x, text_coords_y, text_size, r_value, g_value, b_value, text_width, certificate_text, certificate_path) print(result) test_generate_certificate()
Metadata
Release files for pramanpatram 1.0.1
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 |
|---|---|---|---|---|
| pramanpatram-1.0.1.tar.gz | 4.9 kB | Without provenance | Details for pramanpatram-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pramanpatram-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pramanpatram-1.0.1-py3-none-any.whl |
Total release size: 9.5 kB
Release files / pramanpatram-1.0.1.tar.gz
| Download URL | pramanpatram-1.0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49eb69c7e192e1581a23abffefc1a3798ccace35a540b4c2c9791594b895cab7
|
|
BLAKE2b-256 checksum How to use checksums |
1e876609711782ce21af7d4f3a2837d2ccdb96f04ce6ee16487158c76cd3f9a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / pramanpatram-1.0.1-py3-none-any.whl
| Download URL | pramanpatram-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
085059b7aebe5e447a26dda044619f48022a9ee0f8b6afa77e5d65694836a609
|
|
BLAKE2b-256 checksum How to use checksums |
170b1f6e15de20a3c3bb8401cc2e994bddf5c9698229f590fe20165c3e1b9fdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for pramanpatram 1.0.1
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.