Niti.
Automate Office Tasks with Python cover

Python Automation

Automate Office Tasks with Python

Non-programmers get short scripts to automate tedious daily work.

You spend an hour every week doing something a script could do in four seconds, and you have never written a script because every tutorial assumes you want to become a software engineer.

48 pages · PDF + EPUB · Instant download

What this actually is

Forty-eight pages of Python scripts, each one solving a specific problem that most people currently do by hand. Renaming four hundred files so they sort properly. Pulling every row out of a spreadsheet that matches a condition. Downloading a number from a web page every morning without opening a browser.

None of it requires prior programming experience. The book assumes you have a computer, an internet connection, and a task you are tired of doing manually. It does not assume you know what a variable is. That gets covered early, in two short chapters, and nothing after that point requires you to remember much from a computer science class you did not take.

Why short scripts specifically

The gap between knowing no programming and writing a useful script is about three evenings. The gap between writing a useful script and building software is a career. This book lives entirely in the first gap.

A script is a file that does one thing. It runs, it finishes, and it does not need to be maintained by a team. The ones in this book range from a handful of lines to a few dozen. Most of them solve problems that take a human between ten minutes and two hours and take the script under five seconds.

That ratio is the entire argument. Not that programming is beautiful or that everyone should learn it, but that certain tasks are so repetitive and so mechanical that handing them to a machine is an obvious trade.

What you will build

The book is organised around projects rather than concepts. Each chapter starts with a real problem, not a contrived exercise, and ends with a script you can run on your own files.

Chapter three builds a file organiser that sorts a cluttered Downloads folder by type. Chapter five writes a script that reads an Excel file, filters rows by a condition, and writes the results to a new file. Chapter seven pulls a price from a public web page and logs it to a spreadsheet; chapter eight puts that on a schedule you set once.

Every script is printed in full. There is no 'left as an exercise for the reader' anywhere in this book.

What it does not cover

This is not an introduction to software engineering. There are no classes, no web frameworks, no databases, and no deployment pipelines. If a chapter starts feeling like a computer science lecture, something has gone wrong.

There is also no attempt at completeness. Python has hundreds of libraries. This book uses nine of them, chosen because they solve the problems in front of you without requiring three hours of setup first.

Refunds and format

The book is a PDF and EPUB, delivered instantly as a single download. Read the PDF on one screen while you type into another, or the EPUB on a Kindle, Kobo or phone. Buyers get every future revision at no extra cost, delivered through the same download link.

Refunds are handled by the checkout platform and do not require a reason. If the book does not help, ask for one. A refund costs less than a PDF gathering dust in a folder you never open.

What's inside

  1. Installing Python and running a script

    • Setup on Windows and Mac
    • The terminal in two minutes
  2. Variables, conditions and loops

    • The minimum you need
    • Nothing more
  3. Sorting a messy Downloads folder

    • Reading file extensions
    • Moving files into the right place
  4. Renaming files in bulk

    • Pattern matching
    • Date prefixes
    • Undoing a bad rename
  5. Reading and filtering spreadsheets

    • Opening Excel without Excel
    • Writing results to a new file
  6. Cleaning messy CSV data

    • Missing values
    • Duplicate rows
    • Consistent formatting
  7. Pulling data from a web page

    • Requests and selectors
    • Saving to a spreadsheet
  8. Running scripts on a schedule

    • Task Scheduler and cron
    • Scripts that email when they finish

Written for

  • Office workers who rename files, clean spreadsheets or copy data by hand every week
  • Anyone who has Googled 'how to automate' and bounced off tutorials that assumed too much
  • Small business owners whose data lives in Excel and whose time does not
  • People who can use a computer confidently but have never written a line of code

Not written for

  • Working developers: the Python here is deliberately introductory and will feel slow
  • Anyone after a web development or app-building guide, which this is not
  • People who need enterprise automation with error handling and logging at production scale
  • Anyone who wants to understand computer science rather than skip past it to a working script

Before you buy

Do I need to install anything?

Python itself, which is free. Chapter one walks through the installation on Windows and Mac in about five minutes. Everything after that uses free libraries that install with a single command.

How long does it take to finish?

Most readers finish in two or three evenings. Each chapter is self-contained, so you can stop after any one and still have a working script.

Will the scripts work on my computer?

They run on Windows, Mac and Linux. The only requirement is Python 3.10 or later, and the book covers how to check that.

Is this a refundable purchase?

Yes. Gumroad handles refunds and a refund request does not require a reason.

Ready

Automate Office Tasks with Python

48 pages · PDF + EPUB · Instant download

Get it on Gumroad$17 USD