| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/keyring/ |
Upload File : |
ó
F+ÞOc @ s‹ d Z d d l Z d d l m Z d d l Z d d l Z d d l Z d e f d „ ƒ YZ d d „ Z
e d k r‡ e j e
ƒ ƒ n d S( s@ Simple command line interface to get/set password from a keyringiÿÿÿÿN( t OptionParsert CommandLineToolc B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c C s` t d d ƒ | _ | j j d d d d d d d d ƒ| j j d
d d d d d d d
ƒd S( Nt usages %prog [get|set] SERVICE USERNAMEs -ps --keyring-patht destt keyring_patht defaultt helps Path to the keyring backends -bs --keyring-backendt keyring_backends Name of the keyring backend( R t parsert
add_optiont None( t self( ( s/ /usr/lib/python2.7/dist-packages/keyring/cli.pyt __init__
s c
C si | j j | ƒ \ } } y | \ } } } WnD t k
rq t | ƒ d k r^ | j j ƒ d S| j j d ƒ n X| j d k rÚ y, t j j
| j | j ƒ } t j | ƒ WqÚ t
k
rÖ } | j j d | ƒ qÚ Xn | d k rt j | | ƒ } | d k rd S| j | ƒ d S| d k rU| j d | | f ƒ } t j | | | ƒ d S| j j d ƒ d S( Ni i s Wrong number of argumentss$ Unable to load specified keyring: %st gett sets Password for '%s' in '%s': s' You can only 'get' or 'set' a password.( R t
parse_argst
ValueErrort lent
print_helpt errorR R
t keyringt coret load_keyringR t set_keyringt Exceptiont get_passwordt output_passwordt input_passwordt set_password(
R t argvt optst argst kindt servicet usernamet backendt et password( ( s/ /usr/lib/python2.7/dist-packages/keyring/cli.pyt run s8
c C s
t j | ƒ S( sa Ask for a password to the user.
This mostly exists to ease the testing process.
( t getpass( R t prompt( ( s/ /usr/lib/python2.7/dist-packages/keyring/cli.pyR C s c C s | GHd S( sb Output the password to the user.
This mostly exists to ease the testing process.
N( ( R R% ( ( s/ /usr/lib/python2.7/dist-packages/keyring/cli.pyR L s ( t __name__t
__module__R R&