#! python3
# This program is your personalized password manager.

# MODIFY THE CODE BELOW TO ADD ACCOUNTS AND PASSWORDS------------------

PASSWORDS = {'email': 'password1',
             'phoneBill': 'password2',
             'bank': 'password3' ,
             'neopets': 'uL9K&8@x!LZojaY46v5rCwstTL7W7!ruaF^V%UBsVVtv#!Ay7Y3ygdrK6S3y6&%oJafARUoxeKCLjcM9@ns@o47iSnxrULmoU@RE3Fx&6co#Y8pQSiVA#jbYkT9m2YXU&NP%psKX84ogbZP%Pm$FUBZP#g%wB^EXakWo4K9C^K@MBiw%tjf#NUxuf!pNNAXXHtYRwiKArqqdy^jvw6PVUiui83LB#E%EWEf$&FrKN3RErRP5#feUy&qTcq&JRJ#rj546$53jpBuqqu&A%2mW@2VNvizcUbZ3YG!T5mQg@XsEcUipTy%3bFhfW2gqJ^%cud!xRpDR^Ev%HjHb7rqCFY%YEoL6yBQCv2PCjHT5TDv84M2bJWsj43UZ5m%Mo@TePGSTgwxiaMs3&Lhr3#HeytWdYL7x6!ked@e4dziK8iVohZHHf@dFzP5!buseNTrc&M#Fj2Qx@D6Ju^nyfa!YM&!CdGNy2GY6p3ahikXR4ASKcrSchtd@3wK6WHaMTnL!' }

# DO NOT MODIFY ANYTHING BELOW THIS LINE-------------------------------

import sys, pyperclip
if len(sys.argv) < 2:
    print('Usage: py pw.py [account] - copy account password')
    sys.exit()

account = sys.argv[1]   # first command line arg is the account name

if account in PASSWORDS:
    pyperclip.copy(PASSWORDS[account])
    print('Password for ' + account + ' copied to clipboard.')
else:
    print('There is no account named ' + account)