https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/roboto/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/roboto/__pycache__/awsqueryservice.cpython-310.pyc
o

ckF[e�@stddlmZddlZddlZddlZddlZddlZddlZddlm	Z	Gdd�dej
j�ZGdd�dej
j�ZdS)�)�print_functionN)�awsqueryrequestcseZdZ�fdd�Z�ZS)�NoCredentialsErrorcsd}tt|��|�dS)NzUnable to find credentials)�superr�__init__)�self�s��	__class__��=/usr/lib/python3/dist-packages/boto/roboto/awsqueryservice.pyrszNoCredentialsError.__init__)�__name__�
__module__�__qualname__r�
__classcell__rrr	rr
srcsXeZdZdZdZdZdZdZdZdZ	dZ
gZ�fdd�Zd	d
�Z
dd�Zd
d�Z�ZS)�AWSQueryService�zsign-v2�/i��aws�AWS_URLcs�||_|��|��d|jvr2|jr2|j�d|jdd�}|jD]}|d|kr1|d|jd<q"d|jvr=|j|jd<d|jvrH|j|jd<ztt|�j	di|j��d|_
WdStjj
yft��w)	N�host�region_namer�name�endpoint�path�portr)�args�check_for_credential_file�check_for_env_url�Regions�get�Path�Portrrr�aws_response�boto�	exception�NoAuthHandlerFoundr)rrr�regionr	rrrs,
�
�

�zAWSQueryService.__init__cCs�dtjvrptjd}tj�|�}tj�|�}tj�|�rjt|�}|��}|��|D]=}|ddkrgd|vrg|�	dd�\}}|�
�dkrSd|jvrR|�
�}||jd<q*|�
�dkrgd	|jvrg|�
�}||jd	<q*dStd
�dSdS)aq
        Checks for the existence of an AWS credential file.
        If the environment variable AWS_CREDENTIAL_FILE is
        set and points to a file, that file will be read and
        will be searched credentials.
        Note that if credentials have been explicitelypassed
        into the class constructor, those values always take
        precedence.
        �AWS_CREDENTIAL_FILEr�#�=��AWSAccessKeyId�aws_access_key_id�AWSSecretKey�aws_secret_access_keyz+Warning: unable to read AWS_CREDENTIAL_FILEN)
�os�environr�
expanduser�
expandvars�isfile�open�	readlines�close�split�stripr�print)rr�fp�lines�liner�valuerrrr2s2




�

��
�z)AWSQueryService.check_for_credential_filecCs�|j�dd�}|r
|jd=|s|jtjvrtj|j}|rwt�|�}d|jvr7|jdkr2d|jd<nd|jd<|j}d}|�d�}t	|�dkrQ|d	}t
|d�}d
|jvr[||jd
<|rgd|jvrg||jd<|jryd|jvr{|j|jd<dSdSdSdS)
a�
        First checks to see if a url argument was explicitly passed
        in.  If so, that will be used.  If not, it checks for the
        existence of the environment variable specified in ENV_URL.
        If this is set, it should contain a fully qualified URL to the
        service you want to use.
        Note that any values passed explicitly to the class constructor
        will take precedence.
        �urlN�	is_secure�httpsTF�:r+rrrr)rr �EnvURLr0r1�urlparse�scheme�netlocr8�len�intr)rr?�rsltrr�lrrrrSs2








�z!AWSQueryService.check_for_env_urlcCs|jgS)N)�Authentication)rrrr�_required_auth_capabilityxsz)AWSQueryService._required_auth_capability)r
rr�Name�Description�
APIVersionrKr!r"�ProviderrCrrrrrLrrrr	rrs!%r)�
__future__rr0rDr$�boto.connection�boto.jsonresponse�boto.exception�boto.robotorr%�BotoClientErrorr�
connection�AWSQueryConnectionrrrrr�<module>s

https://t.me/RX1948 - 2025