For the moment, I use Firefox and it's random password generator to generate passwords for don't really care sites. For other sites where security is more important to me, I use a pretty simple Python password generator called pw_generator.py. Looking at it I just realized that when I switched to using secrets, I never removed the other imports. It's not something that I use all that often but handy when I need it.
Code:
import string
import random
import secrets
# Getting password length
length = int(input("Enter password length: "))
password = ''.join((secrets.choice(string.ascii_letters + string.digits + string.punctuation) for i in range(length)))
print(password)
Code:
C:\Users\user\Desktop>python pw_generator.py
Enter password length: 16
QSQMf7,"IrG&:7^3
C:\Users\user\Desktop>python pw_generator.py
Enter password length: 24
Y6rBEU2DH>vj&b0o8!.hr5;A