Generate Islamic Friday sermons (khutbah) using AI (#GodamSahur 2025)
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
khutbahmaker-25.3.5.tar.gz
(19.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file khutbahmaker-25.3.5.tar.gz.
File metadata
- Download URL: khutbahmaker-25.3.5.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27af9830b5a5c338d6ea8ed82cadd62622e0c198d978dc3798198e4b6f3092e6
|
|
| MD5 |
a7ca676f69d08508faad37f38a2074c0
|
|
| BLAKE2b-256 |
6b9d409d9a7b44e20b0f4c09a5ede00144fd34ed015153f7f94743417f8b240e
|
File details
Details for the file khutbahmaker-25.3.5-py3-none-any.whl.
File metadata
- Download URL: khutbahmaker-25.3.5-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d4949452df5b6af915d37c3ea4736eafec48bc21a01adc466cace3b6538dab1
|
|
| MD5 |
ed44b1752af90b4a319667a2fcae5c86
|
|
| BLAKE2b-256 |
beecf6533ef0988c48fe1ffb44c558411729c47786ea0c3e2525d3d2d8c62fc0
|