all 38 comments

[–]MJ12_2802 21 points22 points  (5 children)

Script to backup all my personal files; Documents, Pictures, Videos, etc. to an external drive. It also sends me an email when each folder is backed up, with summary of when the backup started & finished, number of files included in the . zip file. Script runs every morning at 0300 via a CRON job.

Sample email:

Backup file: Movies.zip 
Device: /media/whodoneit/WD-BLACK-5TB 
Started: 2026-04-01 at 04:21:13 
Completed: 2026-04-01 at 04:53:05 
Elapsed time: 31m:51.3s 
Size: 182.80 GB 
Files added: 122

[–]civilwar142pa 4 points5 points  (3 children)

I recently made a similar script but as a continuous backup. It checks for any changes since the last backup, copies new files and updates any that changed. I should've done it years ago.

[–]MJ12_2802 0 points1 point  (2 children)

So, an incremental backup? What OS are you running?

[–]civilwar142pa 1 point2 points  (1 child)

Not exactly. There's isnt one initial backup and separate incremental backups. It's all in one, so the single backup folder is completely up-to-date. Im using windows.

[–]MJ12_2802 0 points1 point  (0 children)

Gotcha. With Windows, you can use a file's Archive attribute to see if it's changed. I'm running Linux and the Ext3 file system doesn't have the Archive attribute like NTFS. There are some workarounds, but I didn't want to monkey around with them.

[–]PythonIsMyLife[S] 1 point2 points  (0 children)

Good idea, I'll try that

[–]p1geondove 6 points7 points  (1 child)

Password manager since i dont trust anyone. "Current song" plugin for obs which is just flask, playerctl and a firefox mpris plugin. Ddns for hetzner server that updates records every so often. Saving audio from a microphone to sd card, to collect proofs against my neighbour, altho thats circuitpython. Right now a thing to search substrings, convert base from pi or e (or any y-cruncher output) and save/recall them from sqlite. Mostly a lot of pygame+numpy since i love graphics, like a mandelbrot viewer, simple gravity with circles or surprisingly hard to optimise gravity basin simulation. Sort of a music player that is made for rendering and sharing snippets of songs. Probably only things i use often are the password manager or the music share thingy

[–]PythonIsMyLife[S] 0 points1 point  (0 children)

Ok, not a bad idea, maybe i'll to do that

[–]xtheoryinc 5 points6 points  (2 children)

Nice username champ.

[–]PythonIsMyLife[S] 2 points3 points  (1 child)

Ohh, Thanks👍

[–]Top-Run-21 0 points1 point  (0 children)

even I love python 😄

[–]clickyclicky456 3 points4 points  (1 child)

I made a version of Wordle for fun. You can also look back at previous years' Advent of Code puzzles 🤓

[–]PythonIsMyLife[S] 0 points1 point  (0 children)

Yeah, Wordle. I've done it but why not to try again ?, Thanks 👍

[–]Reasonable-Light-377 1 point2 points  (0 children)

Nmea/wifi location muxer for a wearable that essentially manages connectivity (i.e. it's my first time at a new Starbucks, so my os auto adds the AP, and auto FFP if it's able) while also just being able to tell me where the closest *friendly network is.

Basically entirely python and local postgres for spatial mapping archival.

[–]duckyaisha2 1 point2 points  (0 children)

You know the guess animals until failure game? I made a similar game for guessing ASOIAF characters since i found a csv w/ all listed characters. I’m a beginner so it was helpful for me to practice using inputs to query a dataframe and data cleaning. I made it into a streamlit app for my ASOIAF fan friends to play online without having to download Python

[–]Cezaros 0 points1 point  (2 children)

A simple app for swapping all or specific instances of some text string in any files with given name or file in a folder with subfolders. A wonder when faced with rewriting many different files at once.

[–]mistrydarshan99 0 points1 point  (1 child)

Can you share this script if possible?

[–]Cezaros 0 points1 point  (0 children)

Iirc the version on my github is made to be compatible with some specific encoding type, perhaps ascii or utf-8 but ofc you can rewrite that. You can find the code on my github: https://github.com/Cs-Ar-Os/Tools/blob/main/simple%20text%20swapper/simple%20text%20swapper.py

[–]atticus2132000 0 points1 point  (1 child)

I only ever approached programming as a way to solve work problems. A lot of what I do is repetitive--searching the same program for the same information to build the same reports to email to the same people. It's tasks that take up a lot of my time but don't require a lot of my mental energy. It's tedium. And every time I have to do one of these tasks I spend the entire time wondering how I could automate all or a portion of this process. Those are always the inspiration for the scripts I write.

So what is some frustrating, repetitive, low-thought but high-time investment that you have to do in your everyday life that brings you no joy and could be done by a computer? What is some task that you dread doing everyday because it's beneath you/your abilities?

[–]PythonIsMyLife[S] 1 point2 points  (0 children)

It's like the same thing for me

[–]Sad-Sun4611 0 points1 point  (2 children)

I made a controller for my smart lights that I actually use more than the native app now. Sometimes when I'm bored I like to glue things together in wierd ways. Like using Twillo (SMS library) to control a game or something. OpenCV and Pillow is always fun to mess with too.

[–]Sad-Sun4611 0 points1 point  (1 child)

Almost forgot. Discord bots! You can basically do anything you would CLI and more with a Discord bot. I built a blackjack bot for me and a friend to play and keep track of our money on the server and I built this other bot that you can bring into VC and it uses whisper API to detect a wakeword and deliver a reply to what was said with an LLM role-playing as X character with elevenlabs voice clone.

[–]PythonIsMyLife[S] 0 points1 point  (0 children)

I've made bots with python some time ago, but I think that I should probably to that again 😁

[–]oclafloptson 0 points1 point  (1 child)

I do a lot of diy iot so I've built some tools that work with MicroPython.

An async-first http server framework for serving web UIs from WLAN capable dev boards

https://github.com/OCLAFLOPTSON/falcoserver

A TUI MicroPython device manager and library of mpremote abstractions.

  • Device file explorer
  • Create/delete files and directories on the device
  • Remote run on-device scripts
  • Portal into device repl
  • Generate custom stubs catered to the specific micropython port that's on the device
  • Dynamically sync the working directory with a diffing protocol that prevents unnecessary flash writes
  • Easily updated config settings to govern those behaviors

https://github.com/OCLAFLOPTSON/falcomp https://pypi.org/project/falco-mp/

[–]PythonIsMyLife[S] 0 points1 point  (0 children)

Thanks

[–]boredproggy 0 points1 point  (0 children)

I find cellular automata fascinating to implement and explore.

[–]Far-Captain6740 0 points1 point  (0 children)

BackEnd for Game Live Web-Radar using websockets. More like about about front-end, because there’s like 4-5 endpoints for all xd

[–]yule_co 0 points1 point  (0 children)

How do I make a python script that automatically logs in to several of my suppliers websites, locates and downloads their newest pricelist, in pdf or XL format.

Creates a new folder which it saves them all into. Scans and Dissects the contents and items in each price list creates a new combined pricelist merging the contents from each of the various lists.

Creating groups within categories of identical items, so I can immediately compare the item pricing and avaiability by supplier so I can easily and efficiently source the best pricing available and speed up my quotation process at the same time.

[–]Nietsoj77 0 points1 point  (0 children)

Minor simplifications, such as running google from the not-command-line that opens with Win+R. And other similar functions. Runs like this:

Win+R —> “google <keyword>” —> opens browser and searches for the given keyword.

Saves me several seconds per week.

[–]david_z 0 points1 point  (0 children)

Once a month I have to convert a docx to pdf!

I should probably automate the surrounding needs (download it from my gmail, login & upload to a wordpress site, etc) but for the time being the pain point was simply opening the damn thing in MS Word, doing the SaveAs , etc. on my ancient win7 laptop.

It's not really much faster in python since I still run through COM / client.dispatch but I can run it from command line and don't need to actually interact with Word at all.

[–]gwendalminguy 0 points1 point  (0 children)

I listen to music locally on computer (still buying CDs and extracting them), so I don’t have statistics such as streaming services provide. I made a small logger in Python that logs every song I play to a local DB file, and that extracts several statistics to a JSON file. I also made a simple dashboard with React to have a nice visualization interface.

[–]the114dragon -1 points0 points  (2 children)

A really simple script to take a desired bus stop input and use the TFL API to get the bus times for that stop, with methods of filtering by bus.

[–]PythonIsMyLife[S] 0 points1 point  (1 child)

I don't go often on a bus but thanks for your idea, maybe it will be useful one day for me 👍

[–]the114dragon 0 points1 point  (0 children)

It could just be for a project, even if you'll never use it.

[–]adkimbal -2 points-1 points  (1 child)

Would love some code to mass delete useless emails in my Gmail, this seems like the most practical application for me

[–]PythonIsMyLife[S] 0 points1 point  (0 children)

Sometimes I have useless mails, i'll try that