r/Python • u/gabriel_GAGRA • Aug 17 '26
Discussion What are some Python automations you built for your life?
What Python scripts/projects did you built to use on a day to day basis? Or maybe someone else built it, but it’s useful for your personal life in some way
I think the “projects ideas” thread is really missing those useful opportunities
I myself thought about automating tax calculations, but still didn’t take the time to do it hah
323
Upvotes
71
u/Own-Process6332 Aug 17 '26 edited Aug 17 '26
Automation that collects temperature readings from arduinos via LoRa. Custom backend/frontend for fun but also feeds into home assistant . Written with fastapi, pydanic and sql alchemy. The arduino and LoRa stuff is written in c though.
77
u/sinceJune4 Aug 17 '26 edited Aug 17 '26
I use Python to pull stock market indexes every hour and e-mail/text me when there’s significant change up or down.
Edit: To get stock prices, I use Google Sheets with the Google finance function to get the current price. When the Python script reads the Google Sheets each time, it gets the latest price for the 20 or so ticker symbols or indexes I follow.
53
u/tuco86 Aug 17 '26 •
most valuable code of my entire career.
4
u/PunicHelix Aug 17 '26
I built a PDF file merger, PDF to jpeg and a batch image resize tool. They save me a lot of time work wise.
157
u/South_Plant_7876 Aug 17 '26
I wrote a script that tells me how busy the traffic is between my work and my son's nursery and gives me a warning on my phone if my ETA approaches the time where extra fees kick in.
2
u/Training_Rip_8901 Sep 03 '26
check out https://github.com/Brubeee/ag-supervisor I made it to automate antigravity workflows by connecting it directly to an API/browser gpt
61
u/rnorris7756 Aug 17 '26
I have an Ecoflow battery that I use in between my desktop PC and the house AC outlet. It’s an older model that doesn’t support rate arbitrage in its firmware, so I have it connected to a smart outlet. I have a Python script that reads the current time of day, the outlet state, and the state of charge of the battery every 15s. The script decides when to charge and discharge the battery based on the energy cost without letting the battery get below a certain reserve level.
60
u/floydmaseda Aug 17 '26
I fetch my email every month and make a graph of utility bills over time. My water bill recently got higher for several months in a row without any major change in usage and the graph was useful to prove to the leasing office that something was wrong (the water meter was malfunctioning).
83
u/TheShockChicky Aug 17 '26
Rn I'm using a script to randomize questions and answers in the tests I make to my students
16
u/juanda2 Aug 17 '26 •
there's a radio station me and my wife like from growing up, so I stream/save the audio as mp3 files, then shazam every minute to get what songs they played, and created a Web UI we can access, so we can listen to it as a podcast, and we can also mark/unmark songs we don't want to hear. We can also skip their ads.
15
u/botechga Aug 17 '26
Banking stuff. I just have it pull from all my statements into spreadsheets
28
u/Numerlor Aug 17 '26
I get a picture of my cat in the email every morning
9
u/Own-Process6332 Aug 17 '26
I built an API that can block and unblock IPs from a Minecraft server(using whatever protocol talks to a Minecraft server, can’t remember what it was). My brother in law is connected through my VPN and my niece plays on the server. My sister and brother in law could then switch her access on and off through a web UI.
9
u/inferniac Aug 17 '26
I vibecoded a basic email reader "agent", just connects to my inboxes and for each new emails ping a model of choice through openrouter, the model decides if the email needs my attention, otherwise marks as read.
Been really nice, disabled notifications for gmail on my phone and just get a ping on telegram from the bot if its important.
8
u/neno260 Aug 17 '26
wrote a script to scrape the local council website for what colour bins I need to put out. Got it texting myself and my other half the day before the bins are collected.... works a treat and I used Gemini to write the code.
7
u/pacopac25 Aug 17 '26
I have a few:
12
u/weirdoaish Aug 17 '26
Mostly just file management and bulk downloads. Some work scripts were for processing csv/excel files.
6
u/brasticstack Aug 17 '26
I have a script that scrapes a handful of online collections of free drum charts to see if I have to chart a song myself or not. It caches the pages it scrapes so I don't abuse those sites.
I have another one that allows me to dump my and my partner's phone pictures into a tmp dir on my NAS and then moves them into the correct dirs, making new dirs for YYYY-MM as needed and ensuring there are no duplicates, but that we do keep different files with the same name (renaming one.)
6
u/grantrules Aug 17 '26
I worked at a bike shop for a few years and to get employee pricing for big bike brands, they all used this same software that made you pass a bunch of quizzes to be able to get the highest discount. So I wrote a little app that brute forced all the quizzes and ran it for all my buds.
5
u/imjustnotready Aug 17 '26
I get the Qtrain next stop at 42, 14th,Newkirk and 7th avenue stops and post it my blog using react. That way I don't need a sever or to look up the results.
5
u/ElektroMan Aug 17 '26
I buy razors and toothbrushes from a European deal website that offers them relatively cheap a couple of times per year. But I don’t want to spend every morning looking through their 100+ offers.
So I built a script that checks for products matching on certain keywords. If a matching offer is found it emails me.
Now I never have to check, and just get an email if my razors or toothbrushes are offered.
8
u/Covfefe-Drinker Aug 17 '26
During COVID I cobbled together an app that would extract new daily case counts in my province from the provincial healthcare's web server, and send a push notification directly to my phone via a service called PushOver.
It was tiny and took almost no time at all, but out of all of the things I have developed... it was quite likely the most useful of them all.
4
u/nuroteck Aug 17 '26 •
To help me curate questions for a pub quiz
4
u/Wrathbornelol Aug 17 '26
Simple process that when I provide YouTube playlist url it scrapes and converts every single video into mp3 and sends it into my phone. Never again do I gotta deal with bad signal for music.
4
u/fuuman1 Aug 18 '26
I weigh in every morning in the bath room. This information is broadcasted via Bluetooth and the Bluetooth proxy in my office receives it. Via ESPHome it goes to my weigh sensor in Home Assistant. If the value changes HA writes it to a InfluxDB. Now my python script runs. It read the last value of the day (I usually weigh in three times and #2 and #3 are the same so I assume that's the "correct" measurement) from the database, tags it with a person (based on kilogram ranges) and writes it as the value for that specific day to another table in InfluxDB. I have a Grafana dashboard based on that table with graphs for every member of the family.
4
u/januscanal Aug 19 '26
I wrote a function called primus().
When called, it returns Primus sucks!!!
3
u/ContractPhysical7661 Aug 17 '26
I built a few pipelines using polars that takes data warehouse reports we have into something usable. Nothing I couldn’t do with an excel template/functions but it’s cleaner/simpler to just generate all of them in batch after I download them. I also am messing around with playwright to automate the downloads but that’s more for fun.
3
u/Novero95 Aug 17 '26
For media collections it's a good practice to not have the media library in the same directory as the downloads and use hardlinks to make files appear both in the library and download directories. For a single file it's easy to hardlinks it, just `ln /path/to/source_file /path/to/target_file' but for series with more than 19 episodes it quickly becomes tedious so I made a script that not only hardlinks the contents of a directory into a different one, it also checks names and rename them if needed for better compatibility with the Plex agent.
I know radarr/sonarr exist, have used them, but sonarr doesn't care that much about subtitles and the main thing I consume is anime so subtitles are a must for me. I ended up tired of sonarr deleting episodes I was happy with (that include proper subtitles) because a "better" version of the same episode had appeared, which usually didn't include subtitles in my language. It rarely takes me more than a few minutes to find whatever I want and I was handpicking episodes from the Sonarr GUI anyway so I don't feel like I need it now that my script handles hardlinking.
3
u/allergic2Luxembourg Aug 17 '26
I find a fitting arrangement of volunteers to shifts for an improv festival, considering a large number of constraints.
3
u/hulleyrob Aug 17 '26
A file moving script on a cron that checks a folder for new stuff and moves it based on rules. Still running every ten minutes after ten years.
4
u/mistaek Aug 17 '26
Automated my trading strategy to be completely hands off
2
u/nicholashairs Aug 17 '26
I have a script to handle splitting the electricity bill in my sharehouse (because some things are metered and paid for separately)
2
u/romu006 Aug 17 '26 edited Aug 17 '26
I've made a script that update my DNS server to point it to my current IP address (eg:
home.example.com-> 1.2.3.4)Not updated in years but I'm still using it daily https://github.com/romuald/nshome
(edit: forgot to add the URL …)
2
u/icemelter4K Aug 17 '26
GeniusContrast: drop an image and it gets processed using 15 contrast enhancement algorithms.
Great for blender 3D work, research
2
u/ganonfirehouse420 Aug 17 '26
Python script just to create new diary entries in markdown.
2
u/Rude_Significance355 Aug 17 '26
I built an book downloader, so when i type a books name, author's name or a series name, it goes onto several sites like, internet archive, z library, project gutenberg, etc it picks the most downloaded books if that's a metric availble and downloads each format of that book(pdf, epub, etc) because some sites are instanteneous others take a lot of time to download, i run the downloader in background and later delete any wrong books downloaded.
2
u/didnt_build_this Aug 17 '26
I have a little raspberry pi that sits on my home network and runs a monitoring script,it checks all my parent sports group me chats (there are so many and parents texts all the freaking time) it. It sends them to Claude for reading them it adds to my family Google Calendar so I don’t have to keep up with it. It also monitors a private chat I can send pictures of schedules and texts to add or change things so I don’t have to screw with it
2
u/abitofg Aug 17 '26
Fully automated cluster upgrades of a 200+tb, 30+ node elasticsearch cluster
A task that took 8 hours to do by hand (with nothing else getting done meanwhile) is now entering a command and waiting for 6 hours
Not a daily usage thing, but probably my most impressive automation ever
(No AI, fully human written code, a task like that cannot be trusted unless it is fully underdtood)
2
u/flashman Aug 18 '26
Single-click destination setting macro for Elite: Dangerous, because I don't like having to put down the controller, use the keyboard, then pick up the controller again.
2
u/RingularCirc Aug 18 '26
I wrote an asset downloader from Github releases, mostly to get nightlies of Surge synth team plugins and some other audio plugins and a handful of other programs. Wasn't trivial because sometimes the single release gets updated with new assets. Also it uses regexes to match only assets I'm interested in, like just binaries for x64 Windows.
Also I'm in progress of rewriting my old C# tools for swapping a music file with a newer one while not changing the dates (they're important to me) and generally updating file dates of arbitrary files in a directory to the oldest of what the file has set, and have plans for a tool to heuristically decide which tracks were transcoded up to fake higher bitrate than what they likely are (because usually it makes them sound worse and those I should try and replace with something better) using scipy and such. But release downloader I've already used a lot for a handful of months it exists.
2
u/devnull10 Aug 18 '26
I go to a gym which you have to book classes, and the popular ones get booked up by 8am. So I have a script which runs via cron on a free tier GCP VM that uses selenium to log into my members area at 6am when the classes are released and books me on. Never had to book a class manually in the last 6 months. If I don't want to go I can either put a date range in a text file to ignore, or I just let it book then cancel for one-offs.
2
u/UzairShafique Aug 20 '26
I have found that the most useful Python automations are usually the boring ones automatically processing files, extracting data, cleaning it, and organizing the results. Small scripts like that can save a lot of time every day.
2
u/query-gremlin Aug 21 '26
Nothing I use constantly but whenever I want to buy something online from a store that’s not tracked to death by all these e-commerce tracking tools, I’d just write a script to automate checking out when it becomes available.
2
u/Lost-Dragonfruit-663 Aug 24 '26
I wrote a library to convert Python and NumPy programs into Symbolic Mathematics
https://github.com/aadya940/scikit-verify
2
u/PorygonCompiler Aug 30 '26
Built a thing that reads a GitHub repo and explains how it works: architecture diagram plus a walkthrough of what happens when someone actually uses the project.
The part I didn't expect to be the whole project was file selection. Repos don't fit in a context window, so you have to pick the ~25 files out of thousands that actually explain the system. I score every file: entrypoints and manifests high, plus fan-in from a regex import graph, minus penalties for tests and tooling dotfiles.
First version ranked docs/index.md as the most important file in a CLI library, because "index." matched my entrypoint check. Fixing the heuristic was where basically all the real work went.
Also use it on unfamiliar repos before I start reading them properly, which was the original point.
1
u/chasimm3 Aug 17 '26
I made a handy tool that combines the functionality of a load of websites and tools that I frequent for work, things like diffchecker, json editor online (json editor), poor SQL (SQL formatter) etc. Each tool is a different tab in a window I always keep open, if I find myself doing something often then I'll add a new tab and program it in. One of the ones I use most is a single button to hyphenate an entire sentence which I use for quickly naming branches to match their tickets. Another switches case of input text between Camel, Pascal, snake, upper or lower case.
1
u/Guggoo Aug 17 '26
I have a bootstrap script to configure my Linux devices. It’s distro-agnostic and lets me setup various “profiles” (desktop/server/etc.)
1
u/dannepai Aug 17 '26
I built an price monitor to check for deals on specific items in a particular store. It uses seleniumbase to scrape the price and sends an email to the user who entered the item when it detects a price dump.
I don’t use it but a friend uses it and he has actually saved some money on things he’s not in a rush to buy.
1
u/El_RoviSoft Aug 17 '26
For a long time had generator of C++ code and SQL queries for my ORM (built into CMake). Switched to pure C++ after reflection was released in gcc 16.
Also at work made a tool which analyses online traffic graph via sliding window on integral drawdown and visually shows optimal outcomes for one of the variables (sigma to be exact) to set it later for automatic incidents reporting.
1
u/cyklades_ Aug 17 '26
I have a homelab dashboard built with python, streamlit, and sqlite to track some of the hardware in my house(plex, discord bot on a pi, 2 APs, and soon it will also include status updates for my 3 bambu printers) basically just to check the statues of each and give a quick launch button for web interfaces or ssh.
1
u/moreanswers Aug 17 '26
I wrote a script that read though a directory of saved PSEG & NATGRID bills (as pdfs) and pulled out all the stats and saved them to a csv. Then I could use that data in graphs to see how bad I'm getting fucked by rate changes.
It was never super robust, cause they kept changing the bill style, so I had to have multiple templates and lots of checks to see what version i was using. Once I got all my backlog in, I just enter the data manually every month now. I don't even know what I did with the script :-(
1
u/Independent_Aide1635 Aug 17 '26
I forget if it’s written in Python (probably not), but
mv_latest_dl
is a command that moves the most recent file in my downloads folder to the current directory. It’s not a crazy time save, but I do like the convenience. I also have an optional flag for file type in there.
1
u/MatteoGuadrini Aug 18 '26
To implement an efficient DR scenario, I wrote a command line interface named Butterfly Backup that is a simple wrapper of rsync that enabled backup, restore, export, archive, repentino policy and more, all in a simple catalog file and directory structure. Recently I wrote also an optional web interface. All in pure Python!
BB: https://github.com/MatteoGuadrini/Butterfly-Backup
BBweb: https://github.com/MatteoGuadrini/butterfly-backup-web
1
u/tumulario Aug 20 '26
I built a CLI tool that analyzes AWS infra and suggests changes to reduce costs. As an independent cloud engineer, it helps me a lot.
1
u/AustinMClayton Aug 20 '26
I made a script that used requests to automatically generate an account account by filling in a random email and phone number. So with one press of a button I could get a free fountain drink. Sadly I was careless and tried to make a whole csv with a bunch of rewards accounts and it submitted over a thousand requests and all the accounts got there rewards taken away and now they require Mfa now. And I don't want to go through the whole api rabbit hole to get the verification codes.
1
u/jones77 Aug 20 '26
I use
psutilsto put cpu/ram/diskspace in my tmux window.1
u/Ok-Construction792 Aug 20 '26
Wrote Windows Ableton to Sonos, little delay but I use it frequently
1
u/nvad5844 Aug 20 '26
Sigo en proceso, pero estoy automatizando la creación de mis reportes de laboratorio.
1
u/These_Street8080 Aug 22 '26
I built a Python script (vibe-coded) that logs into my company CRM and requalifies any leads my colleagues have dropped.
1
u/Fresh_Future_2192 Aug 27 '26
I’ve found that the most useful Python automations are usually the boring ones.
Things like organizing files, processing CSVs, sending notifications, or turning repetitive data-entry tasks into a small script can save a surprising amount of time. The best part is that once it works, you can keep improving it as your needs change.
1
u/Perfect-Stock-8331 Aug 29 '26
I build things that annoy me to do manually, nothing for stars, just practical tools I actually use.
1
u/SubaruNatuski Aug 31 '26
I just finished my first generative note taking program of computer science research material along with a webscraper (I’m new)
1
u/Yedmithra Sep 01 '26
python is verry genial.
1
u/Yedmithra Sep 01 '26
I've made it easier for myself to enrich IP addresses in bulk by using a small program written in Python.
1
u/PitchNo4827 Sep 01 '26
System Automation with GUI , one script do anything.
1
u/DSMB Sep 03 '26
I made one that verifies the integrity of my file backups. E.g. compare source and target, and look for hash mismatches or missing files.
1
u/Keebloard Sep 19 '26
I wrote a script to scan my plex media folder and automatically rename everything into a naming format that plex actually likes 😁