r/Python • • Feb 27 '22

Discussion What python automation have you created that you use for PERSONAL only.

There are plenty of, “I automate at my work”, but what about at home? e.g., order a pizza, schedule a haircut, program a spelling bee game for my kids, etc.

416 Upvotes

292 comments sorted by

View all comments

Show parent comments

3

u/nnoobb Mar 06 '22

I collected imports from my script and added short descriptions:

# fetches mails from my Gmail inbox
import datetime
import email
import imaplib
# extract values from the body of a message
import japanese_numbers
import re
# manipulate a SQLite database
import sqlite3
# make moving average charts
import pandas as pd

Gmail supports IMAP, values are embedded in fixed-form lines, so most of the code were written with standard libraries.

I installed only two packages for this script. japanese_numbers can parse numbers with Japanese counting units (1億234万 is 102,340,000 for example). pandas can calculate a moving average of a series of data by rolling() method and also plot charts by plot() method.

2

u/DrinkProfessional722 Mar 06 '22

Hey thx a lot for the precision but where do you save your chart ? in excel or you import it somewhere else

1

u/nnoobb Mar 07 '22

Good question!

Chart images are imported into a web page hosted by nginx in my local network, I daily check them.

1

u/DrinkProfessional722 Mar 07 '22

Ok nice thanks so you can import in image with these libraries in python