
    Mg                     H    S SK J r   S SKrS SKrS SKJr  \ " S5      S 5       rg)    )pluginN)Forezrandom passwordc           	      n  ^   [        U R                  S5      5      n Sn[        R                  [        R                  -   m   U R                  U5      nUS:X  a  T[        R                  -  mO(US:w  a"  U R                  S[        R
                  5        MU    SnU R                  US	R                  U4S
 j[        U5       5       5      -   5        g ! [         a#    U R                  S[        R
                  5         Of = fGM  ! [         a$    U R                  S[        R
                  5         M  f = f)NzEnter password length: zOnly integers will be acceptedz&Do you want special characters?(y/n): z Sorry, I didn't understand that.ynz"Sorry, your response is not valid.zYour random password is:  c              3   P   >#    U  H  n[         R                  " T5      v   M     g 7f)N)randomchoice).0_passwords     E/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/random_password.py	<genexpr>"random_password.<locals>.<genexpr>$   s%      "A+?a #)--"9"9+?s   #&)intinput
ValueErrorsayr   REDstringascii_lettersdigitspunctuationjoinrange)jarvissstring_lengthprompt
user_inputpre_textr   s         @r   random_passwordr#      s!   
	C-F GHM 6F##fmm3HC
	f-J
 ***H3JJ;TXXF3*H
JJx"'' "A+0+?"A A A B/  	CJJ7B	C	   	JJ9488D	s#   C D *D ?D *D43D4)r   r
   r   coloramar   r#        r   <module>r'      s-        B Br&   