PDF eBook133 pagesAbout 5 hours, plus practice

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.

Quick answer

Sound familiar?

You already know the problem. Here is what it costs you.

Now imagine this

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.

Inside the book

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
  1. What to Automate

    Good candidates, time saved, when not to automate and other tools.

  2. Setting Up

    Python, libraries, an editor, running scripts and a project folder.

  3. Python Essentials for Automation

    Paths, f-strings, loops, dictionaries, errors, functions and patterns.

  4. Working Safely

    Working copies, dry runs, clash checks, logs and small samples.

  5. Finding and Listing Files

    Listing, glob patterns, dates, duplicates and folder reports.

  6. Renaming and Organising Files

    Plan, check, apply, log and undo; good file names.

  7. Working with CSV Files

    Reading, filtering and writing; common problems; Excel-friendly files.

  8. Working with PDFs

    Reading text, checking totals, merging and scanned pages.

  9. Combining Excel Workbooks

    Finding headers, skipping lock files and checking layouts.

  10. Writing Excel Reports

    Formatted reports, live formulas and checking formula values.

  11. Generating Word Documents

    Templates, placeholders split across runs and checking letters.

  12. Email: Drafts First, Sending Later

    Drafts as files, checks, test sending and passwords.

  13. A Complete Monthly Workflow

    Settings files, checks that stop the run and logging.

  14. Scheduling and Running Unattended

    Task Scheduler, cron and knowing a task ran.

  15. Using AI Assistants to Write Automation

    Prompts that ask for safety, and reviewing generated code.

  16. Maintaining and Sharing Automations

    READMEs, requirements, handover and when to move tools.

What you get

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
Outcomes

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
Read a page

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.

From Python Automation for Office Tasks, Bodhih Training
Why this book

The honest comparison

Typical adviceThis book
SafetyMentioned at the endDry runs, clash checks, logs and undo in every example
OutputsTyped by handEvery output produced by running the code
EmailSends straight awayDrafts first, tested sending, passwords never in code
ExampleSeparate toy scriptsOne company's month end, from inbox to sent letters
AIIgnored or trustedPrompts that ask for safety, and a review checklist
After launchNot coveredScheduling, READMEs, handover and maintenance
Who it’s for

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
Being honest

Probably not for you if…

  • Professional software developers
  • Readers looking for web scraping or app building
  • Anyone wanting a no-code tool tutorial
Why Bodhih

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.

2008Training organisations since
2,000+Companies served
200,000+Professionals trained
18,000+Programmes delivered
How it works

Reading in two minutes from now

  1. STEP 1

    Tap Buy now

    Name, email and country. Pay by UPI, card or netbanking (India) or international card. No account to create.

  2. STEP 2

    Download instantly

    Your download page opens at once, and a permanent link lands in your inbox.

  3. 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.

Ready when you are

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.

$19.99one-time payment

Single-user licence stamped with your name. Team licences with volume discounts are available at checkout.

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.

Questions readers ask

Python Automation for Office Tasks: FAQs

Already bought? Resend my link

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.

$19.99