Skip to Content
Python Automation Cookbook - Third Edition
book

Python Automation Cookbook - Third Edition

by Jaime Buelta
June 2026
Intermediate
676 pages
13h
English
Packt Publishing

Overview

Build practical automation skills through an expanded third edition featuring new chapters on AI models, MCP, and intelligent agents, guiding you from core Python workflows to modern agentic automation.

Key Features

  • Apply proven Python automation recipes to solve real-world tasks
  • Integrate AI models and build intelligent agents for business workflows
  • Extend automation across systems using MCP and modern integrations

Book Description

Automating repetitive tasks and integrating systems efficiently becomes increasingly complex as workflows scale. This book helps you solve that problem with practical Python recipes that guide you from foundational automation to advanced, AI-powered workflows.

You start by building a strong base in Python automation, exploring tested solutions for file handling, web scraping, APIs, testing, and system operations, and learning how to design reliable automation workflows. The cookbook approach enables you to quickly apply solutions to real problems while building a deeper understanding through hands-on practice.

This third edition expands the scope of automation by introducing AI-powered capabilities. You learn how to call AI models within your scripts, use and implement the Model Context Protocol (MCP) for system integration, and design intelligent agents that automate decision-making processes. New chapters provide real-world examples of AI agents in business automation, helping you move beyond scripts to adaptive systems. This book combines practical knowledge with modern techniques to ensure you stay current with evolving automation practices.

By the end of this book, you will be able to design, build, and extend Python automation workflows, including AI-driven solutions, to handle complex real-world tasks with confidence.

What you will learn

  • Automate file, system, and network tasks using Python
  • Build robust scripts for web scraping and API integration
  • Design scalable automation workflows for real use cases
  • Integrate AI models into automation pipelines
  • Implement MCP for system-level automation integration
  • Develop intelligent agents for business automation
  • Apply testing and debugging techniques for automation
  • Create real-world AI-driven automation solutions

Who this book is for

Python developers, automation engineers, DevOps professionals, and system administrators who want to streamline workflows and integrate modern AI capabilities into automation. A basic understanding of Python programming is recommended.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Modern Python Cookbook - Third Edition

Modern Python Cookbook - Third Edition

Steven F. Lott

Publisher Resources

ISBN: 9781806702893