Wong Edan's

Stop Being a Slave: The Python Automation Manifesto

March 28, 2026 • By Azzar Budiyanto

The Sane Man’s Guide to Systematic Insanity

Listen up, you beautiful, overworked, caffeinated meatbags! I am Wong Edan, your local digital shaman, and I am here to stop you from wasting your limited lifespan on tasks that a series of 1s and 0s could do better. You’re still manually renaming a thousand PDF files? You’re still copy-pasting data from an email into a spreadsheet? Stop it. You’re making the machines laugh at us. If you’ve ever looked at a repetitive task and felt a piece of your soul wither away, this guide is your salvation.

Python isn’t just a programming language; it’s a Swiss Army knife that someone accidentally turned into a lightsaber. According to the holy texts of Python.org and the collective wisdom of r/learnpython, this language is the gold standard for beginners because it reads like English—well, English if English was actually logical and didn’t have silent letters. Today, we aren’t just “learning code.” We are building digital minions to do our bidding. From web scraping to managing Raspberry Pi sensors, we’re going deep into the rabbit hole.

Section 1: Building the Laboratory (Environment & Philosophy)

Before you can summon the demons of automation, you need a circle of power. In the old days, you had to sacrifice three goats and configure your PATH variables manually. Now, thanks to things like GitHub Codespaces, you can have a full development environment in your browser before you can even finish a cup of coffee. As noted in recent 2024 and 2025 tutorials, Codespaces is becoming the “de facto” for teaching because it removes the “it doesn’t work on my machine” excuse that students love to use.

But let’s say you want to be a traditionalist. You go to Python.org, download the latest version, and hope your OS doesn’t throw a tantrum. A Python script, at its core, is just a text file with a .py extension. But the structure matters. As Codecademy points out, a professional script needs a clear structure: imports at the top, logic in the middle, and execution at the bottom. If you write your code like a plate of spaghetti, don’t come crying to me when it starts haunting your dreams.

“The best way to learn Python is to have a problem you actually care about solving.” — Every sane person on Reddit.

The First Ritual: Your Environment Check


# Check your version to ensure you aren't living in the stone age
import sys
print(f"Python Version: {sys.version}")

If that says anything starting with a ‘2’, please leave. We only deal with Python 3 here. It’s the 2020s, people. Even the architectural designers are using Python 3 for their BIM workflows now.

Section 2: The Bread and Butter – File Manipulation

Search result data from July 29, 2024, identifies “Reading and writing files” as the number one automation task for beginners. Why? Because the world runs on files. Log files, CSVs, text files, and those weird “New Folder (3)” directories you keep on your desktop. Python handles these with a grace that would make a ballet dancer weep.

Consider the with statement. It’s the “safety first” of Python. It opens a file, lets you do your business, and then closes it automatically so you don’t leak memory like a bucket with a hole in it. Here is how you automate the creation of a daily report:


import datetime

def create_daily_log(content):
timestamp = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
filename = f"log_{timestamp}.txt"
with open(filename, "w") as file:
file.write(f"Wong Edan's Automation Report\n")
file.write(f"Status: Operational\n")
file.write(f"Data: {content}")
print(f"Successfully birthed {filename}")

create_daily_log("The user is finally learning. Progress is slow but steady.")

Imagine doing that 50 times a day. You’d lose your mind. Python does it in 0.001 seconds and doesn’t even ask for a lunch break.

Section 3: The Web is Your Buffet – Scraping & Requests

The internet is just a giant, messy database. As documented in the Intro to Web Scraping guide from April 2024, you can extract value from almost any site using the Requests library. Whether you’re checking stock prices or looking for the best price on a vintage mechanical keyboard, automation is the key.

The Requests library is the “magic wand” of Python. You make a GET request, and the server coughs up its data. But beware: scraping is a dark art. Don’t be the guy who hits a server 10,000 times a second and gets IP-banned. Use time.sleep(). Be a gentleman, even if you are a Wong Edan.


import requests

def peek_at_website(url):
try:
response = requests.get(url)
if response.status_code == 200:
print("Server reached! Data obtained.")
# In a real scenario, you'd use BeautifulSoup here to parse the HTML
return response.text[:200] # Just a snippet
else:
print(f"Error: Server said {response.status_code}")
except Exception as e:
print(f"Something went horribly wrong: {e}")

data = peek_at_website("http://example.com")
print(data)

This is the foundation of API Testing. Modern QA Engineers use these exact scripts to validate that Application Programming Interfaces are actually doing their jobs. If the API returns a 404, your script catches it before your customers do.

Section 4: The QA Journey – APIs and Validation

Speaking of QA, the 2025 GeeksforGeeks tutorial highlights that automation isn’t just about saving time—it’s about Validation. As a QA Engineer, your journey usually starts with basic scripts and ends with complex frameworks. You use Python to test if an API response matches the expected JSON schema.

If you’re testing an e-commerce API, you don’t want to manually click “Checkout” a thousand times. You write a loop. You check the status codes. You ensure the “Total Price” calculation isn’t being done by a drunk math student. Python’s requests and unittest libraries are your best friends here. You are the wall between buggy code and the innocent public.

Section 5: Hardware and the IoT Revolution (MQTT & Raspberry Pi)

Now, let’s get physical. Not the Olivia Newton-John kind—the Raspberry Pi kind. According to the Inductive Automation forums and the Paho MQTT guides, Python is the glue that connects physical sensors to industrial software like Ignition.

The Paho MQTT Python Client is a legendary tool for beginners. MQTT is a lightweight messaging protocol. Think of it like a Twitter feed for machines. One sensor “publishes” a temperature, and your script “subscribes” to it. This is how you build a smart home or monitor a factory floor without leaving your couch.


import paho.mqtt.client as mqtt

# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
print(f"Connected with result code {rc}")
client.subscribe("home/sensors/temp")

# The callback for when a PUBLISH message is received from the server.
def on_message(client, userdata, msg):
print(f"Topic: {msg.topic} | Temperature: {str(msg.payload.decode())}C")

client = mqtt.Client()
client.on_connect = on_connect
client.on_message = on_message

# client.connect("mqtt.eclipseprojects.io", 1883, 60)
# client.loop_forever() # This would keep the script running

Using the “Sparkplug” Git repo mentioned in the search data, you can even integrate these Python scripts into high-level SCADA systems. This isn’t just a hobby; this is industrial-grade power in the hands of someone who knows how to type pip install paho-mqtt.

Section 6: Integration – PowerShell and Python

Here’s a secret that the OS purists won’t tell you: you don’t have to choose between Windows and Python. Back in 2017, the tech world realized that Basic PowerShell Scripting could be used to trigger and manage Python scripts. This is “Automation Inception.”

Why would you do this? Maybe you need to perform some Windows-specific system administrative tasks (PowerShell’s specialty) and then pass that data to a Python script for heavy data processing or AI analysis. You can invoke a Python script from a .ps1 file like this:


# This is PowerShell, not Python!
# Run this in your Windows terminal
# python my_automation_script.py --data "Some input from Windows"

This cross-pollination of tools is what separates a “coder” from an “Automation Architect.” You use the best tool for the job, even if it means making different languages talk to each other like a dysfunctional but productive family.

Section 7: The Road to Mastery (Resources and Reality)

You’ve seen the code. You’ve felt the power. Now, where do you go? The r/learnpython community suggests two primary paths. First, the Official Python.org Tutorials. They are dry, yes, but they are the source of truth. Second, “The Python Coding Book”, which is praised for being friendly and relaxed—perfect for those days when your brain feels like it’s been through a blender.

Real-world use cases are everywhere. Architectural designers are using Python to automate Revit and Rhino workflows to generate complex geometries that would take weeks to draw by hand. Business professionals are using it to automate “personal” tasks like sorting their 50,000 unread emails. The common thread? They all started with a simple script that said print("Hello World").

Wong Edan’s Essential Library List:

  • OS: For talking to your computer’s folders and files.
  • Requests: For talking to the internet without crying.
  • Pandas: For when your data looks like a giant, terrifying spreadsheet.
  • Paho-MQTT: For when you want to control the physical world from your keyboard.
  • Selenium: For when you need to automate a browser that hates scrapers.

Wong Edan’s Verdict

The verdict is simple: Automate or Die. Okay, maybe that’s a bit dramatic, but you get the point. Python automation is the only thing standing between you and a life of clicking buttons like a trained pigeon. Whether you are a QA Engineer testing APIs in 2025, an architect designing the next skyscraper, or just a guy who wants his Raspberry Pi to tell him when his plant is thirsty, Python is the answer.

Don’t try to learn everything at once. Pick one annoying task. One thing that makes you sigh when you open your laptop. Automate that. Then do it again. Before you know it, you’ll have a fleet of scripts doing your work while you sit back and ponder the mysteries of the universe—or just play video games. The choice is yours. Now go forth and code, you glorious madmen!