| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/keyring/__pycache__/ |
Upload File : |
�
�e9 � �l � d dl Z d dlZ G d� dej �� Z G d� de� Z G d� de� Zy) � Nc �X � e Zd ZdZej
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 � � y r r r s r
�passwordzCredential.password r r
N)�__name__�
__module__�__qualname__�__doc__�abc�abstractpropertyr r r r
r
r r s7 � �.����� �� ���� �r
r )� metaclassc �6 � e Zd ZdZd� Zed� � Zed� � Zy)�SimpleCredentialz!Simple credentials implementationc � � || _ || _ y r )� _username� _password)r r r s r
�__init__zSimpleCredential.__init__ s � �!���!��r
c � � | j S r )r r s r
r zSimpleCredential.username � � ��~�~�r
c � � | j S r )r r s r
r zSimpleCredential.password r r
N)r r r r r �propertyr r r r
r
r r s2 � �+�"� �� �� �� �r
r c �L � e Zd ZdZd� 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 � � || _ || _ y r )�user_env_var�pwd_env_var)r r$ r% s r
r zEnvironCredential.__init__2 s � �(���&��r
�other�returnc �0 � t | � t |� k( S r )�vars)r r&