
5 Python Scripts That Save Me 10+ Hours/Week as a Freelancer
5 Python Scripts That Save Me 10+ Hours/Week as a Freelancer Automating the boring parts of running a freelance business Running a freelance business means wearing every hat: salesperson, accountant, project manager, and of course, the actual work. Here are 5 Python scripts I use (and sell) that have genuinely freed up hours every week. 1. Automated Invoice Generator Time saved: 2-3 hours/week Before this script, I was manually filling out invoice templates in Word. Embarrassing in retrospect. import json from datetime import datetime def generate_invoice ( client_data , items ): """ Generate a simple text invoice """ subtotal = sum ( item [ ' qty ' ] * item [ ' rate ' ] for item in items ) vat = subtotal * 0.20 total = subtotal + vat invoice = f """ INVOICE # { client_data [ ' invoice_number ' ] } Date: { datetime . now (). strftime ( ' %Y-%m-%d ' ) } BILL TO: { client_data [ ' company ' ] } { client_data [ ' address ' ] } SERVICES: """ for item in items : line_total = item [ ' qty '
Continue reading on Dev.to Python
Opens in a new tab



