DEV Community

0x7B Official
0x7B Official

Posted on

10 Tiny Python Tools That Feel Like Magic

1. Automated File Backup

import shutil, os, datetime

src = input("Enter source file/folder: ")
dst = input("Enter destination folder: ")

try:
    if not os.path.exists(dst):
        os.makedirs(dst)
    backup_name = f"{os.path.basename(src)}_{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}"
    dst_path = os.path.join(dst, backup_name)
    if os.path.isdir(src):
        shutil.copytree(src, dst_path)
    else:
        shutil.copy2(src, dst_path)
    print(f"[✔] Backup saved at {dst_path}")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

2. Automated Website Pinger

import os, datetime

host = input("Enter website or IP: ")
logfile = "ping_log.txt"

try:
    response = os.system(f"ping -c 4 {host}")
    with open(logfile, "a") as f:
        f.write(f"{datetime.datetime.now()} - {host} - {'UP' if response == 0 else 'DOWN'}\n")
    print("[✔] Result logged to ping_log.txt")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

3. Git Commit Automation

import os, datetime, subprocess

msg = input("Commit message: ")
logfile = "git_log.txt"

try:
    subprocess.run(["git", "add", "."], check=True)
    subprocess.run(["git", "commit", "-m", msg], check=True)
    with open(logfile, "a") as f:
        f.write(f"{datetime.datetime.now()} - Commit: {msg}\n")
    print("[✔] Commit logged")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

4. API Request Logger

import requests, datetime

url = input("Enter API endpoint: ")
logfile = "api_log.txt"

try:
    r = requests.get(url)
    with open(logfile, "a") as f:
        f.write(f"{datetime.datetime.now()} - {url} - {r.status_code}\n")
    print(f"[✔] Response: {r.status_code}")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

5. Automated PDF Merger

from PyPDF2 import PdfMerger

files = input("Enter PDF files separated by space: ").split()
output = "merged.pdf"

try:
    merger = PdfMerger()
    for f in files:
        merger.append(f)
    merger.write(output)
    merger.close()
    print(f"[✔] PDFs merged into {output}")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

6. Folder Cleaner (by file type)

import os, shutil

folder = input("Enter folder path: ")
ext = input("Enter file extension (e.g. .txt): ")
target = folder + "_cleaned"

try:
    os.makedirs(target, exist_ok=True)
    for f in os.listdir(folder):
        if f.endswith(ext):
            shutil.move(os.path.join(folder, f), os.path.join(target, f))
    print(f"[✔] Files moved to {target}")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

7. CSV Analyzer

import pandas as pd

file = input("Enter CSV file path: ")

try:
    df = pd.read_csv(file)
    print("[✔] Summary:")
    print(df.describe())
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

8. Automated Image Resizer

from PIL import Image
import os

file = input("Enter image path: ")
size = int(input("Enter new size (px): "))

try:
    img = Image.open(file)
    img.thumbnail((size, size))
    new_file = f"resized_{os.path.basename(file)}"
    img.save(new_file)
    print(f"[✔] Image saved as {new_file}")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

9. YouTube Downloader (audio only)

from pytube import YouTube

url = input("Enter YouTube URL: ")

try:
    yt = YouTube(url)
    stream = yt.streams.filter(only_audio=True).first()
    out_file = stream.download()
    print(f"[✔] Downloaded: {out_file}")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

10. Automated Daily Journal Writer

import datetime

entry = input("Write today’s entry: ")
logfile = "journal.txt"

try:
    with open(logfile, "a") as f:
        f.write(f"{datetime.datetime.now().strftime('%Y-%m-%d')} - {entry}\n")
    print("[✔] Journal updated")
except Exception as e:
    print(f"[✘] Error: {e}")
Enter fullscreen mode Exit fullscreen mode

Want to turn ideas into income?

Here are our step-by-step playbooks that show you exactly how.

Product Title Link
Earn $997 Selling Starter Packs to Offline Clients Link
$1000+ Plan: Rank a Simple Website for Local Keywords Link
$500/Week from Faceless Gigs in 7 Days Link
$300/3 Days: Sell a Resource Vault with Free Tools Link
$250/24 Hrs: Sell a High-Value PDF Without Writing an eBook Link
Make $100/Day from Notion Systems Link
$5K Flip: Grow & Sell Social Accounts for Profit Link
Turn Free or AI Content into $500+ Products Link
Make $1K/Month Helping Local Businesses Link
Host a $97 Mini-Course Without Filming Link
Create & Sell Plug-and-Play Tools in 5 Days — No Code Link
Sell Quick Freelance Tasks for $100+/Day Link
10 Low-Work Laptop Businesses You Can Launch Today Link
Launch Your First Digital Product in 7 Days — No Audience Needed Link
Build a Simple Local Website and Charge $500+ Link

Don’t just read — grab one, use it today, and start making it back by tomorrow.
👉 See all playbooks here


The easiest win? A clean, basic website that small business owners actually pay for. This playbook shows you exactly how to do it.

Build a Hyper-Simple Website for a Local Business and Charge $500+

Imagine this: You help a local business finally get online, transforming their visibility, and they happily pay you $500 or more for a website you built in just a few hours.You feel empowered.They feel grateful.It’s a win-win — and you don’t need to be an expert to make it happen.I’ve created a complete toolkit designed to remove every obstacle and hand you a simple, repeatable system to build websites, find clients, and get paid — fast.Here’s what you get:📘 1. The Local Digital Goldmine Guide (10 Pages of Pure Value) This step-by-step guide breaks down the entire process into simple, actionable steps: Why Local Businesses Need Simple Websites: Understand the massive opportunity in your local area. The No-Code Website Formula: Build a sleek, professional site in under 2 hours using free or low-cost tools. Finding & Pitching Clients Without Cold Calling: Use non-salesy strategies to attract clients, even if you hate selling. Pricing & Upselling for Recurring Income: Charge $500+ upfront, then stack passive income with hosting and maintenance upsells. You’ll finish this guide not just feeling motivated — but knowing exactly what to do next.✅ 2. Plug-and-Play Checklist (Stay Laser-Focused) Success is simple when you follow a proven process. This checklist is your roadmap: 📍 Pre-Launch Preparation: Research businesses, choose tools, and set up your payment system. 🔍 Client Outreach: Use personalized email scripts and follow-ups to land your first paying client. 🛠️ Website Build: Follow a structured flow to build and launch your client's site. 🤝 Client Management: Communicate like a pro, gather testimonials, and build lasting relationships. 💸 Pricing & Upsells: Lock in high-paying clients, then offer ongoing services for passive income. No overthinking. No confusion. Just tick the boxes, and watch your business grow.🔑 3. Handcrafted ChatGPT Prompts (Your AI-Powered Assistant) Why struggle to write client emails or site content when AI can do it for you? These prompts will save you hours: ✍️ Website Content: Generate compelling headlines, service descriptions, and "About Us" sections. 📧 Client Emails: Draft outreach, follow-ups, and pitch emails in seconds. 📈 SEO & Optimization: Find the best local keywords, write meta descriptions, and boost site rankings. 🎨 Design & Aesthetics: Get layout suggestions, color palette ideas, and font recommendations. 💰 Pricing & Upsells: Brainstorm service packages, pricing tiers, and irresistible upsell offers. You’ll feel like you have a full team behind you — even if you’re a one-person business.👉 This Isn’t Just a Product — It’s a Transformation You’re not just buying a bundle of files. You’re buying: 🔓 Clarity: Know exactly what to do, step by step. ⚡ Speed: Build and launch sites faster than you thought possible. 🧠 Confidence: Feel equipped to approach clients and charge what you're worth. 📈 Freedom: Create a flexible, low-stress income stream from anywhere. Think about it: There are thousands of local businesses that desperately need a website.With this toolkit, you can be the person who delivers that solution — and gets paid handsomely for it.It’s not a question of whether you can do this. The question is: How soon do you want to start?🚀 One decision. One small investment. Infinite potential. Let’s build something incredible.

favicon 0x7bshop.gumroad.com

👉 Get it here: Build a $500+ Website the Easy Way

Top comments (0)