khutbahmaker
Generate Islamic Friday sermons (khutbah) using AI (#GodamSahur 2025).
Installation
pip install khutbahmaker
Key Features
- 📝 Content Generation
- Topic-based Khutbah Generation
- Multiple Language Support
- Adjustable Length Options
- Various Tone Settings
- 📊 Output Formats
- Professional PDF Generation
- Clean Markdown Text
- RTL Support for Arabic
- Beautiful Typography
- 🌐 Flexible Integration
- Interactive Web UI
- Python Library
- Customizable Settings
Usage
Python Library
from khutbahmaker import KhutbahMaker
# Initialize
client = KhutbahMaker(
mode="default", # Mode (default/webui)
api_key="YOUR_KEY", # AI service API key
model="gemini-2.0-flash-thinking-exp-01-21" # AI model to use
timeout=180 # AI request timeout in seconds
)
# Generate khutbah
pdf_file, markdown_text = client.generate_khutbah(
topic="Ramadan Preparation", # Main topic/theme
length="Short", # short/medium/long
tone="Inspirational", # Tone of the khutbah
language="Bahasa Malaysia" # Target language
)
Web UI
Start the Gradio web interface:
client = KhutbahMaker(mode="webui")
# OR
client.start_webui(
host="localhost", # Server host
port=7860, # Server port
browser=False, # Launch browser
upload_size="4MB", # Max upload size
public=False, # Enable public URL
limit=10, # Max concurrent requests
quiet=False # Quiet mode
)
Configuration
Target Languages
- Bahasa Malaysia
- Arabic
- English
- Mandarin
- Tamil
Khutbah Lengths
- Short: 10-15 minutes
- Medium: 15-20 minutes
- Long: 20-30 minutes
Tone Options
- Scholarly
- Inspirational
- Practical
- Reflective
- Motivational
- Educational
- Historical
- Narrative
PDF Result Format
- Professional Title
- Opening Praises
- Quranic Verses & Hadith
- Main Content
- Practical Advice
- Closing Prayers
- RTL Support for Arabic
License
See LICENSE for details.
Metadata
Release files for khutbahmaker 25.3.5
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 |
|---|---|---|---|---|
| khutbahmaker-25.3.5.tar.gz | 19.8 kB | Without provenance | Details for khutbahmaker-25.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| khutbahmaker-25.3.5-py3-none-any.whl | Python 3 | none | any | Details for khutbahmaker-25.3.5-py3-none-any.whl |
Total release size: 39.6 kB
Release files / khutbahmaker-25.3.5.tar.gz
| Download URL | khutbahmaker-25.3.5.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27af9830b5a5c338d6ea8ed82cadd62622e0c198d978dc3798198e4b6f3092e6
|
|
BLAKE2b-256 checksum How to use checksums |
6b9d409d9a7b44e20b0f4c09a5ede00144fd34ed015153f7f94743417f8b240e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Release files / khutbahmaker-25.3.5-py3-none-any.whl
| Download URL | khutbahmaker-25.3.5-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d4949452df5b6af915d37c3ea4736eafec48bc21a01adc466cace3b6538dab1
|
|
BLAKE2b-256 checksum How to use checksums |
beecf6533ef0988c48fe1ffb44c558411729c47786ea0c3e2525d3d2d8c62fc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Security for khutbahmaker 25.3.5
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.