1-Introduction 2-welcoming of guest with bouquet 3-Inauguration of the function Lamp lightening 4-Prayer 5-Gift distribution 6-Student speech 7-Principal sir nd sukumar sir speech 8-Vote of thanks Make a agenda in word format with today's date and the h as guru poornima
mkdir -p /tmp/workspace/guru-poornima && ls /tmp/workspace/guru-poornima/
python3 << 'EOF' from docx import Document from docx.shared import Pt, Inches, RGBColor from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.oxml.ns import qn from docx.oxml import OxmlElement doc = Document() # ── Page margins ──────────────────────────────────────────────── section = doc.sections[0] section.top_margin = Inches(1.0) section.bottom_margin = Inches(1.0) section.left_margin = Inches(1.2) section.right_margin = Inches(1.2) # ── Default body style ────────────────────────────────────────── normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) # ── Helper: add a horizontal rule ─────────────────────────────── def add_hr(doc): p = doc.add_paragraph() p.alignment = WD_ALIGN_PARAGRAPH.CENTER run = p.add_run("─" * 60) run.font.color.rgb = RGBColor(0xC0, 0x9A, 0x00) run.font.size = Pt(9) return p # ══════════════════════════════════════════════════════════════ # HEADER BLOCK # ══════════════════════════════════════════════════════════════ # Festival name h1 = doc.add_paragraph() h1.alignment = WD_ALIGN_PARAGRAPH.CENTER r = h1.add_run("🪔 GURU POORNIMA 🪔") r.font.name = "Times New Roman" r.font.size = Pt(26) r.font.bold = True r.font.color.rgb = RGBColor(0xB8, 0x6A, 0x00) # deep saffron / gold # Sub-title sub = doc.add_paragraph() sub.alignment = WD_ALIGN_PARAGRAPH.CENTER rs = sub.add_run("Celebration Programme") rs.font.name = "Times New Roman" rs.font.size = Pt(16) rs.font.italic = True rs.font.color.rgb = RGBColor(0x4A, 0x4A, 0x4A) # Date date_p = doc.add_paragraph() date_p.alignment = WD_ALIGN_PARAGRAPH.CENTER rd = date_p.add_run("Date: Wednesday, 29th July 2026") rd.font.name = "Times New Roman" rd.font.size = Pt(13) rd.font.bold = True rd.font.color.rgb = RGBColor(0x1A, 1A, 0x1A) add_hr(doc) # ══════════════════════════════════════════════════════════════ # AGENDA HEADING # ══════════════════════════════════════════════════════════════ ag_head = doc.add_paragraph() ag_head.alignment = WD_ALIGN_PARAGRAPH.CENTER rh = ag_head.add_run("PROGRAMME AGENDA") rh.font.name = "Times New Roman" rh.font.size = Pt(15) rh.font.bold = True rh.font.color.rgb = RGBColor(0x8B, 0x00, 0x00) # dark red / maroon doc.add_paragraph() # spacer # ══════════════════════════════════════════════════════════════ # AGENDA ITEMS # ══════════════════════════════════════════════════════════════ agenda_items = [ ("1.", "Introduction", "Opening of the programme with a brief introduction to the significance of Guru Poornima."), ("2.", "Welcoming of Guest with Bouquet", "Chief guests and dignitaries are warmly welcomed with floral bouquets by the students."), ("3.", "Inauguration of the Function – Lamp Lighting", "The auspicious lighting of the traditional lamp (Deepa Prajwalan) to formally inaugurate the function."), ("4.", "Prayer", "Collective prayer / Guru Vandana to seek the blessings of teachers and the Almighty."), ("5.", "Gift Distribution", "Ceremonial distribution of gifts to the honoured Gurus as a token of love and gratitude from students."), ("6.", "Student Speech", "A heartfelt speech delivered by a student reflecting the importance of Guru-Shishya tradition."), ("7.", "Principal's Speech & Sukumar Sir's Speech", "Inspiring address by the Principal followed by a special speech by Sukumar Sir."), ("8.", "Vote of Thanks", "Expression of sincere gratitude to all guests, teachers, students and organisers for making the event a success."), ] for num, title, desc in agenda_items: # Number + Title line item_p = doc.add_paragraph() item_p.paragraph_format.space_before = Pt(6) item_p.paragraph_format.space_after = Pt(2) item_p.paragraph_format.left_indent = Inches(0.15) rnum = item_p.add_run(f"{num} ") rnum.font.name = "Times New Roman" rnum.font.size = Pt(13) rnum.font.bold = True rnum.font.color.rgb = RGBColor(0xB8, 0x6A, 0x00) rtitle = item_p.add_run(title) rtitle.font.name = "Times New Roman" rtitle.font.size = Pt(13) rtitle.font.bold = True rtitle.font.color.rgb = RGBColor(0x1A, 0x1A, 0x1A) # Description line desc_p = doc.add_paragraph() desc_p.paragraph_format.left_indent = Inches(0.55) desc_p.paragraph_format.space_after = Pt(4) rdesc = desc_p.add_run(desc) rdesc.font.name = "Times New Roman" rdesc.font.size = Pt(11) rdesc.font.italic = True rdesc.font.color.rgb = RGBColor(0x44, 0x44, 0x44) add_hr(doc) # ══════════════════════════════════════════════════════════════ # FOOTER NOTE # ══════════════════════════════════════════════════════════════ foot_p = doc.add_paragraph() foot_p.alignment = WD_ALIGN_PARAGRAPH.CENTER rf = foot_p.add_run("\"गुरुर्ब्रह्मा गुरुर्विष्णुः गुरुर्देवो महेश्वरः | गुरुः साक्षात् परब्रह्म तस्मै श्री गुरवे नमः ||\"") rf.font.name = "Times New Roman" rf.font.size = Pt(11) rf.font.italic = True rf.font.color.rgb = RGBColor(0x8B, 0x00, 0x00) # ── Save ──────────────────────────────────────────────────────── out = "/tmp/workspace/guru-poornima/Guru_Poornima_Agenda.docx" doc.save(out) print("Saved:", out) EOF
python3 << 'EOF' from docx import Document from docx.shared import Pt, Inches, RGBColor from docx.enum.text import WD_ALIGN_PARAGRAPH doc = Document() # Page margins section = doc.sections[0] section.top_margin = Inches(1.0) section.bottom_margin = Inches(1.0) section.left_margin = Inches(1.2) section.right_margin = Inches(1.2) # Default style normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) GOLD = RGBColor(0xB8, 0x6A, 0x00) MAROON = RGBColor(0x8B, 0x00, 0x00) DARK = RGBColor(0x1A, 0x1A, 0x1A) GRAY = RGBColor(0x44, 0x44, 0x44) LGOLD = RGBColor(0xC0, 0x9A, 0x00) def add_hr(doc): p = doc.add_paragraph() p.alignment = WD_ALIGN_PARAGRAPH.CENTER run = p.add_run("─" * 60) run.font.color.rgb = LGOLD run.font.size = Pt(9) # ── Festival name ── h1 = doc.add_paragraph() h1.alignment = WD_ALIGN_PARAGRAPH.CENTER r = h1.add_run("GURU POORNIMA") r.font.name = "Times New Roman" r.font.size = Pt(26) r.font.bold = True r.font.color.rgb = GOLD # Sub-title sub = doc.add_paragraph() sub.alignment = WD_ALIGN_PARAGRAPH.CENTER rs = sub.add_run("Celebration Programme") rs.font.name = "Times New Roman" rs.font.size = Pt(16) rs.font.italic = True rs.font.color.rgb = GRAY # Date date_p = doc.add_paragraph() date_p.alignment = WD_ALIGN_PARAGRAPH.CENTER rd = date_p.add_run("Date: Wednesday, 29th July 2026") rd.font.name = "Times New Roman" rd.font.size = Pt(13) rd.font.bold = True rd.font.color.rgb = DARK add_hr(doc) # Agenda heading ag_head = doc.add_paragraph() ag_head.alignment = WD_ALIGN_PARAGRAPH.CENTER rh = ag_head.add_run("PROGRAMME AGENDA") rh.font.name = "Times New Roman" rh.font.size = Pt(15) rh.font.bold = True rh.font.color.rgb = MAROON doc.add_paragraph() # spacer # Agenda items agenda_items = [ ("1.", "Introduction", "Opening of the programme with a brief introduction to the significance of Guru Poornima."), ("2.", "Welcoming of Guest with Bouquet", "Chief guests and dignitaries are warmly welcomed with floral bouquets by the students."), ("3.", "Inauguration of the Function - Lamp Lighting", "The auspicious lighting of the traditional lamp (Deepa Prajwalan) to formally inaugurate the function."), ("4.", "Prayer", "Collective prayer / Guru Vandana to seek the blessings of teachers and the Almighty."), ("5.", "Gift Distribution", "Ceremonial distribution of gifts to the honoured Gurus as a token of love and gratitude from students."), ("6.", "Student Speech", "A heartfelt speech delivered by a student reflecting the importance of Guru-Shishya tradition."), ("7.", "Principal's Speech & Sukumar Sir's Speech", "Inspiring address by the Principal followed by a special speech by Sukumar Sir."), ("8.", "Vote of Thanks", "Expression of sincere gratitude to all guests, teachers, students and organisers for making the event a success."), ] for num, title, desc in agenda_items: item_p = doc.add_paragraph() item_p.paragraph_format.space_before = Pt(6) item_p.paragraph_format.space_after = Pt(2) item_p.paragraph_format.left_indent = Inches(0.15) rnum = item_p.add_run(f"{num} ") rnum.font.name = "Times New Roman" rnum.font.size = Pt(13) rnum.font.bold = True rnum.font.color.rgb = GOLD rtitle = item_p.add_run(title) rtitle.font.name = "Times New Roman" rtitle.font.size = Pt(13) rtitle.font.bold = True rtitle.font.color.rgb = DARK desc_p = doc.add_paragraph() desc_p.paragraph_format.left_indent = Inches(0.55) desc_p.paragraph_format.space_after = Pt(4) rdesc = desc_p.add_run(desc) rdesc.font.name = "Times New Roman" rdesc.font.size = Pt(11) rdesc.font.italic = True rdesc.font.color.rgb = GRAY add_hr(doc) # Footer shloka foot_p = doc.add_paragraph() foot_p.alignment = WD_ALIGN_PARAGRAPH.CENTER rf = foot_p.add_run( '"Gurur Brahma Gurur Vishnu, Gurur Devo Maheshwarah | ' 'Guruh Sakshat Parabrahma, Tasmai Shri Gurave Namah ||"' ) rf.font.name = "Times New Roman" rf.font.size = Pt(11) rf.font.italic = True rf.font.color.rgb = MAROON # Save out = "/tmp/workspace/guru-poornima/Guru_Poornima_Agenda.docx" doc.save(out) print("Saved:", out) EOF
Guru Poornima Agenda
Word Document · DOCX
Make it just as mentioned don't add any extra things make it column
python3 << 'EOF' from docx import Document from docx.shared import Pt, Inches, RGBColor from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.oxml.ns import qn from docx.oxml import OxmlElement doc = Document() # Page margins section = doc.sections[0] section.top_margin = Inches(1.0) section.bottom_margin = Inches(1.0) section.left_margin = Inches(1.0) section.right_margin = Inches(1.0) # Default style normal = doc.styles["Normal"] normal.font.name = "Times New Roman" normal.font.size = Pt(12) DARK = RGBColor(0x00, 0x00, 0x00) # ── Title ── h1 = doc.add_paragraph() h1.alignment = WD_ALIGN_PARAGRAPH.CENTER r = h1.add_run("GURU POORNIMA") r.font.name = "Times New Roman" r.font.size = Pt(20) r.font.bold = True r.font.color.rgb = DARK # Date date_p = doc.add_paragraph() date_p.alignment = WD_ALIGN_PARAGRAPH.CENTER rd = date_p.add_run("Date: 29th July 2026") rd.font.name = "Times New Roman" rd.font.size = Pt(12) rd.font.bold = True rd.font.color.rgb = DARK doc.add_paragraph() # spacer # ── Table with 2 columns: Sr. No. | Programme ── table = doc.add_table(rows=1, cols=2) table.style = "Table Grid" # Header row hdr_cells = table.rows[0].cells hdr_cells[0].text = "Sr. No." hdr_cells[1].text = "Programme" for cell in hdr_cells: for para in cell.paragraphs: para.alignment = WD_ALIGN_PARAGRAPH.CENTER for run in para.runs: run.font.bold = True run.font.size = Pt(12) run.font.name = "Times New Roman" # Set column widths table.columns[0].width = Inches(1.0) table.columns[1].width = Inches(5.5) # Agenda data agenda_items = [ ("1", "Introduction"), ("2", "Welcoming of Guest with Bouquet"), ("3", "Inauguration of the Function - Lamp Lighting"), ("4", "Prayer"), ("5", "Gift Distribution"), ("6", "Student Speech"), ("7", "Principal Sir and Sukumar Sir Speech"), ("8", "Vote of Thanks"), ] for num, item in agenda_items: row_cells = table.add_row().cells row_cells[0].text = num row_cells[1].text = item for cell in row_cells: for para in cell.paragraphs: para.alignment = WD_ALIGN_PARAGRAPH.CENTER for run in para.runs: run.font.size = Pt(12) run.font.name = "Times New Roman" # Save out = "/tmp/workspace/guru-poornima/Guru_Poornima_Agenda.docx" doc.save(out) print("Saved:", out) EOF
| Sr. No. | Programme |
|---|---|
| 1 | Introduction |
| 2 | Welcoming of Guest with Bouquet |
| 3 | Inauguration of the Function - Lamp Lighting |
| 4 | Prayer |
| 5 | Gift Distribution |
| 6 | Student Speech |
| 7 | Principal Sir and Sukumar Sir Speech |
| 8 | Vote of Thanks |
Guru Poornima Agenda
Word Document · DOCX