Hand the repetitive office work to Python, safely
A practical, tested guide to automating files, Excel, Word, PDFs and email, with dry runs, logs and checks built in from the first script.
- Rename and file hundreds of documents with a dry run and an undo
- Combine team workbooks into a checked Excel report with live formulas
- Fill Word letters and build email drafts that nothing sends by mistake
- Run a whole month end from one script that stops when the data is wrong
Python Automation for Office Tasks · Bodhih Digital Skills · 15 by Bodhih Training, trainers to 2,000+ companies since 2008.
You already know the problem. Here is what it costs you.
Picture yourself a few weeks from now.
Imagine month end taking forty minutes instead of two days.
Picture a dry run that shows every file change before it happens.
You'll read a log that says exactly what ran and what stopped.
And you'll decide when the emails go, after checking the drafts.
Chapter by chapter
Every chapter starts with a real situation, gives you a method, and ends with something to do today.
- Format
- Licensed PDF e-book, stamped with your name, plus a companion pack (ZIP)
- Length
- 16 chapters and 6 appendices
- Reading time
- About 5 hours, plus practice
- Includes
- 37 practice files, one script per chapter, a monthly workflow, 30 tested recipes, 15 AI prompts, checklists, a 12-question lab, a 30-term glossary and end-of-Part quizzes
- Edition
- November 2026, next review May 2027
- Publisher
- Bodhih Training
What to Automate
Good candidates, time saved, when not to automate and other tools.
Setting Up
Python, libraries, an editor, running scripts and a project folder.
Python Essentials for Automation
Paths, f-strings, loops, dictionaries, errors, functions and patterns.
Working Safely
Working copies, dry runs, clash checks, logs and small samples.
Finding and Listing Files
Listing, glob patterns, dates, duplicates and folder reports.
Renaming and Organising Files
Plan, check, apply, log and undo; good file names.
Working with CSV Files
Reading, filtering and writing; common problems; Excel-friendly files.
Working with PDFs
Reading text, checking totals, merging and scanned pages.
Combining Excel Workbooks
Finding headers, skipping lock files and checking layouts.
Writing Excel Reports
Formatted reports, live formulas and checking formula values.
Generating Word Documents
Templates, placeholders split across runs and checking letters.
Email: Drafts First, Sending Later
Drafts as files, checks, test sending and passwords.
A Complete Monthly Workflow
Settings files, checks that stop the run and logging.
Scheduling and Running Unattended
Task Scheduler, cron and knowing a task ran.
Using AI Assistants to Write Automation
Prompts that ask for safety, and reviewing generated code.
Maintaining and Sharing Automations
READMEs, requirements, handover and when to move tools.
Not just reading. Tools you will actually use.
Getting started
- What to automate
- Setting up
- Python essentials
- Working safely
Files and data
- Listing files
- Renaming safely
- CSV files
- PDFs
Office documents
- Combining Excel
- Excel reports
- Word letters
- Email drafts
Putting it together
- Monthly workflow
- Scheduling
- AI-written code
- Handover
When you finish, you will be able to…
Every outcome is practised in the book through worked examples and a short exercise.
- Choose tasks worth automating
- Work on copies with dry runs and logs
- Rename and organise files with an undo
- Read invoice totals from PDFs
- Combine workbooks and write Excel reports
- Fill Word letters and build email drafts
- Run a checked monthly workflow
- Review AI-written code before running it
A taste of Chapter 13
A half-finished run that has written letters from bad data is worse than one that stopped before writing anything.
The honest comparison
| Typical advice | This book | |
|---|---|---|
| Safety | Mentioned at the end | Dry runs, clash checks, logs and undo in every example |
| Outputs | Typed by hand | Every output produced by running the code |
| Sends straight away | Drafts first, tested sending, passwords never in code | |
| Example | Separate toy scripts | One company's month end, from inbox to sent letters |
| AI | Ignored or trusted | Prompts that ask for safety, and a review checklist |
| After launch | Not covered | Scheduling, READMEs, handover and maintenance |
Made for you if…
- Office managers and administrators
- Finance, accounts and operations staff
- School and college administrators
- Analysts who live in Excel
- Small business owners
- Anyone using AI to write scripts who wants them to be safe
Probably not for you if…
- Professional software developers
- Readers looking for web scraping or app building
- Anyone wanting a no-code tool tutorial
Written by trainers, tested in real rooms.
Bodhih Training has designed and delivered corporate programmes since 2008 for leadership teams, new managers, sales and service teams, and whole organisations. The Bodhih Professional Playbooks distil what works in those workshops into books you can use on a Tuesday morning, without a facilitator in the room.
Reading in two minutes from now
- STEP 1
Tap Buy now
Name, email and country. Pay by UPI, card or netbanking (India) or international card. No account to create.
- STEP 2
Download instantly
Your download page opens at once, and a permanent link lands in your inbox.
- STEP 3
Start with Chapter 1
Read on your phone tonight, or on your commute tomorrow. Do the first "Do this today" exercise and notice the difference.
Your first safe automation starts with a dry run.
Download the guide and practice files, pick the task you dread most each month, and run the first script on a copy today.
Single-user licence stamped with your name. Team licences with volume discounts are available at checkout.
Keep growing with the Bodhih family
Applied AI certification pathways
Certification pathways in applied AI, workplace English and management, with SCORM courses and assessed capstones.
More Bodhih e-books
Practical, research-backed e-books for work and life, updated every six months.
Bodhih.org
Certification pathways in Applied AI, Workplace English and management.
AssessAll
Measure your skills with AI-graded assessments and verified credentials.
Jobulary
Turn what you learn into an individual development plan that stays yours.
Pewple
Book a vetted coach for career, leadership or communication. Pay per session.
Bodhih Training
Run this book as a workshop for your team, in person or live online.
What buyers say
No ratings yet. Only people who have bought this e-book can rate it - every buyer gets a one-click rating link a couple of days after their purchase.
Do I need any programming experience?
No. The book starts from installing Python and explains every line it uses. You should be comfortable with files, folders and spreadsheets.
Are the code outputs in the book real?
Yes. Every output shown was produced by running the companion pack's scripts on the practice files with Python 3.13, and the pack includes a file of all the outputs so you can compare.
Will a script send emails by mistake?
No. The email scripts save drafts as files. Sending is a separate script that only sends when you add --send, and the book tests it against a local test server first.
Does it work on Mac and Windows?
Yes. The scripts use pathlib and standard libraries, so they run on Windows, Mac and Linux. Scheduling is shown with Task Scheduler for Windows and cron for Mac and Linux.
Which libraries does the book use?
pandas, openpyxl, xlsxwriter, python-docx and pypdf, plus Python's built-in modules for files, CSV, logging, settings and email. All are free.
Is this the same as Power Automate or Python in Excel?
No. Those are useful tools, and the book explains when to use them instead. This book covers Python on your own computer, which can rename files, read PDFs and create Word documents.
How is it different from other automation books?
Safety comes first: working copies, dry runs, clash checks, logs, undo, checks that stop a run, and drafts before sending, all built into every example.
Can I use AI to write the scripts?
Yes, and Chapter 15 shows how. It gives prompts that ask for safety features by name and a checklist for reviewing generated code before you run it.
What's in the companion pack?
37 practice files, one script per chapter, a complete monthly workflow with settings, a formula checker, a tested recipe file, 15 AI prompts, checklists and all code outputs.
Is the data real?
No. Hartley & Lowe, its clients, invoices and bookings are fictional, and the people in the book are composites.
Can my team share one copy?
Each copy is licensed to one named person. Team licences with volume discounts are available at checkout.
How much does Python Automation for Office Tasks cost?
₹799 including 18% GST for buyers in India, or $19.99 for buyers outside India. One-time payment, no subscription, with an automatic invoice.
How do I get the e-book after paying?
Instantly. Your download page opens the moment payment succeeds, and a permanent download link is emailed to you. The PDF works on phones, tablets, Kindle (via Send to Kindle), laptops and in print.
Can I get a refund?
Because it is a digital download, e-books are not refundable once downloaded. We always refund a duplicate charge or a failed delivery, and if a file is corrupted and we cannot fix it within 3 working days. Full terms: bodhih.org/refunds.
Can my company buy copies for a team?
Yes. Team and company licences, and workshops based on the book run by Bodhih Training, are available. Write to solutions@bodhih.com or call +91 99000 11601.





