403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/botocore/__pycache__/useragent.cpython-314.pyc
+
��i�^��Z�Rt^RIt^RIt^RIt^RIHt^RIHtHt^RIH	t	H
t
^RIHt
^RIHt^RIHt]P$!]4t]],R,tRptR
R	/tRt/RR
bRRbRRbRRbRRbRRbRRbRRbRRbRRbR R!bR"R#bR$R%bR&R'bR(R)bR*R+bR,R-b/R.R/bR0R1bR2R3bR4R5bR6R7bR8R9bR:R;bR<R=bR>R?bR@RAbRBRCbRDREbRFRGbRHRIbRJRKbRLRMbRNRObCRPRQRRRSRTRURVRWRXRYRZR[R\R]R^R_R`Ra/	CtRbtRctRdt!ReRf4t!RgRh]	4t!RiRj4t^RkI H!t!!RmRn4t#Rot$R# ]"dRlt!Li;i)qa�
NOTE: All classes and functions in this module are considered private and are
subject to abrupt breaking changes. Please do not use them directly.

To modify the User-Agent header sent by botocore, use one of these
configuration options:
* The ``AWS_SDK_UA_APP_ID`` environment variable.
* The ``sdk_ua_app_id`` setting in the shared AWS config file.
* The ``user_agent_appid`` field in the :py:class:`botocore.config.Config`.
* The ``user_agent_extra`` field in the :py:class:`botocore.config.Config`.

N)�copy)�
ascii_letters�digits)�
NamedTuple�Optional)�__version__)�HAS_CRT)�get_contextz!$%&'*+-.^_`|~,�macos�darwin�Botocore�WAITER�B�	PAGINATOR�C�RETRY_MODE_LEGACY�D�RETRY_MODE_STANDARD�E�RETRY_MODE_ADAPTIVE�F�S3_TRANSFER�G�GZIP_REQUEST_COMPRESSION�L�PROTOCOL_RPC_V2_CBOR�M�ENDPOINT_OVERRIDE�N�ACCOUNT_ID_MODE_PREFERRED�P�ACCOUNT_ID_MODE_DISABLED�Q�ACCOUNT_ID_MODE_REQUIRED�R�SIGV4A_SIGNING�S�RESOLVED_ACCOUNT_ID�T�FLEXIBLE_CHECKSUMS_REQ_CRC32�U�FLEXIBLE_CHECKSUMS_REQ_CRC32C�V�FLEXIBLE_CHECKSUMS_REQ_CRC64�W�FLEXIBLE_CHECKSUMS_REQ_SHA1�X�FLEXIBLE_CHECKSUMS_REQ_SHA256�Y�%FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED�Z�$FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED�a�%FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED�b�$FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED�c�CREDENTIALS_CODE�e�CREDENTIALS_ENV_VARS�g�%CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN�h�CREDENTIALS_STS_ASSUME_ROLE�i�"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID�k�CREDENTIALS_PROFILE�n�"CREDENTIALS_PROFILE_SOURCE_PROFILE�o�"CREDENTIALS_PROFILE_NAMED_PROVIDER�p�$CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN�q�CREDENTIALS_PROFILE_SSO�r�CREDENTIALS_SSO�s�CREDENTIALS_PROFILE_SSO_LEGACY�t�CREDENTIALS_SSO_LEGACY�u�CREDENTIALS_PROFILE_PROCESS�v�CREDENTIALS_PROCESS�w�CREDENTIALS_BOTO2_CONFIG_FILE�x�CREDENTIALS_HTTP�z�CREDENTIALS_IMDS�0�BEARER_SERVICE_ENV_VARS�3�!CLI_V1_TO_V2_MIGRATION_DEBUG_MODE�-c��\4pVfR#\PV4;p'dVPP	V4R#R#)z�Adds metric value to the current context object's ``features`` set.

:type feature_id: str
:param feature_id: The name of the feature to register. Value must be a key
    in the ``_USERAGENT_FEATURE_MAPPINGS`` dict.
N)r	�_USERAGENT_FEATURE_MAPPINGS�get�features�add)�
feature_id�ctx�vals&  �4/usr/lib/python3/dist-packages/botocore/useragent.py�register_feature_idrlhsB���-�C�
�{�	�)�-�-�j�9�9�s�9��������:�c�.�VFp\V4K	R#)z�Adds multiple feature IDs to the current context object's ``features`` set.

:type feature_ids: iterable of str
:param feature_ids: An iterable of feature ID strings to register. Each
    value must be a key in the ``_USERAGENT_FEATURE_MAPPINGS`` dict.
N)rl)�feature_idsrhs& rk�register_feature_idsrp{s��"�
��J�'�"rmc�:a�RPV3RlV44#)abReplaces all not allowed characters in the string with a dash ("-").

Allowed characters are ASCII alphanumerics and ``!$%&'*+-.^_`|~,``. If
``allow_hash`` is ``True``, "#"``" is also allowed.

:type raw_str: str
:param raw_str: The input string to be sanitized.

:type allow_hash: bool
:param allow_hash: Whether "#" is considered an allowed character.
�c3�`<"�TF#pV\9gS'd
VR8XdTMRx�K%	R#5i)�#rbN)�_USERAGENT_ALLOWED_CHARACTERS)�.0r:�
allow_hashs& �rk�	<genexpr>�7sanitize_user_agent_string_component.<locals>.<genexpr>�s7������A�
�-�-�*��c��	
�
�	��s�.�.)�join��raw_strrws&frk�$sanitize_user_agent_string_componentr}�s%����7�7���	��rmc�<a�]tRt^�toRtV3RlRltRtRtVtR#)�UserAgentComponentSizeConfigz�
Configures the max size of a built user agent string component and the
delimiter used to truncate the string if the size is above the max.
c�&<�V^8�dQhRS[RS[/#)��max_size_in_bytes�	delimiter)�int�str)�format�
__classdict__s"�rk�__annotate__�)UserAgentComponentSizeConfig.__annotate__�s�����#��#�rmc�>�WnW nVP4R#�N)r�r��_validate_input)�selfr�r�s&&&rk�__init__�%UserAgentComponentSizeConfig.__init__�s��!2��"�����rmc�Z�VP^8d\RVPR24hR#)�zInvalid `max_size_in_bytes`: z#. Value must be a positive integer.N)r��
ValueError�r�s&rkr��,UserAgentComponentSizeConfig._validate_input�s;���!�!�A�%��/��0F�0F�/G�H4�4��
�&rm)r�r�N)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�r��__static_attributes__�__classdictcell__�r�s@rkrr�s�����
��
�rmrc�Da�]tRt^�toRtRtRtRtRtV3Rlt	Rt
VtR#)�UserAgentComponenta�
Component of a Botocore User-Agent header string in the standard format.

Each component consists of a prefix, a name, a value, and a size_config.
In the string representation these are combined in the format
``prefix/name#value``.

``size_config`` configures the max size and truncation strategy for the
built user agent string component.

This class is considered private and is subject to abrupt breaking changes.
Nc��\VPRR7p\VPRR7pVPeVPR8Xd	VRV2pM!\VPRR7pVRVRV2pVPe<VPVVPPVPP4pV#)zACreate string like 'prefix/name#value' from a UserAgentComponent.T)rwFrr�/rt)r}�prefix�name�value�size_config�_truncate_stringr�r�)r��clean_prefix�
clean_name�clean_string�clean_values&    rk�	to_string�UserAgentComponent.to_string�s���;��K�K�D�
��:��I�I�%�
�
��:�:�����r�!1�*�^�1�Z�L�9�L�>��
�
�t��K�+�^�1�Z�L��+��G�L����'��0�0��� � �2�2�� � �*�*��L�
�rmc���Tp\VPR44V8�d5VPV4pVP4VP	V4pKSVR8Xd\
P
RVVV4V#)z`
Pop ``delimiter``-separated values until encoded string is less than or
equal to ``max_size``.
zutf-8rrz�User agent component `%s` could not be truncated to `%s` bytes with delimiter `%s` without losing all contents. Value will be omitted from user agent string.)�len�encode�split�poprz�logger�debug)r��string�max_sizer��orig�partss&&&&  rkr��#UserAgentComponent._truncate_string�so��
���&�-�-��(�)�H�4��L�L��+�E��I�I�K��^�^�E�*�F��R�<��L�L�@����
��
rmc�j<�V^8�dQh/S[;R&S[;R&S[S[,;R&S[S[,;R&#)r�r�r�r�r�)r�rr)r�r�s"�rkr��UserAgentComponent.__annotate__�sA����
�K���I�� �C�=��!�"�6�7�>�#rm�)r�r�r�r�r�r�r�r�r��__annotate_func__r�r�r�s@rkr�r��s(����� �E�:>�K��.�U�rmr�c�0a�]tRt^�toRtRtRtRtVtR#)�RawStringUserAgentComponentz�
UserAgentComponent interface wrapper around ``str``.

Use for User-Agent header components that are not constructed from
prefix+name+value but instead are provided as strings. No sanitization is
performed.
c��WnR#r���_value)r�r�s&&rkr��$RawStringUserAgentComponent.__init__�s���rmc��VP#r�r�r�s&rkr��%RawStringUserAgentComponent.to_string�s���{�{�rmr�N)	r�r�r�r�r�r�r�r�r�r�s@rkr�r��s�������rmr�)�modify_componentsc��V#r�r�)�
componentss&rkr�r�s���rmc�a�]tRtRtoRtRRlt]R4tRtRt	Rt
R	tR
tRt
RtR
tRtRtRtRtRtRtRtRtVtR#)�UserAgentStringi	a
Generator for AWS SDK User-Agent header strings.

The User-Agent header format contains information from session, client, and
request context. ``UserAgentString`` provides methods for collecting the
information and ``to_string`` for assembling it into the standardized
string format.

Example usage:

    ua_session = UserAgentString.from_environment()
    ua_session.set_session_config(...)
    ua_client = ua_session.with_client_config(Config(...))
    ua_string = ua_request.to_string()

For testing or when information from all sources is available at the same
time, the methods can be chained:

    ua_string = (
        UserAgentString
        .from_environment()
        .set_session_config(...)
        .with_client_config(Config(...))
        .to_string()
    )

Nc��WnW nW0nW@nWPnW`nWpnRVnRVnRVn	RVn
RVnR#)a;
:type platform_name: str
:param platform_name: Name of the operating system or equivalent
    platform name. Should be sourced from :py:meth:`platform.system`.
:type platform_version: str
:param platform_version: Version of the operating system or equivalent
    platform name. Should be sourced from :py:meth:`platform.version`.
:type platform_machine: str
:param platform_version: Processor architecture or machine type. For
example "x86_64". Should be sourced from :py:meth:`platform.machine`.
:type python_version: str
:param python_version: Version of the python implementation as str.
    Should be sourced from :py:meth:`platform.python_version`.
:type python_implementation: str
:param python_implementation: Name of the python implementation.
    Should be sourced from :py:meth:`platform.python_implementation`.
:type execution_env: str
:param execution_env: The value of the AWS execution environment.
    Should be sourced from the ``AWS_EXECUTION_ENV` environment
    variable.
:type crt_version: str
:param crt_version: Version string of awscrt package, if installed.
N)�_platform_name�_platform_version�_platform_machine�_python_version�_python_implementation�_execution_env�_crt_version�_session_user_agent_name�_session_user_agent_version�_session_user_agent_extra�_client_config�_client_features)r��
platform_name�platform_version�platform_machine�python_version�python_implementation�
execution_env�crt_versions&&&&&&&&rkr��UserAgentString.__init__&s[��B,��!1��!1��-��&;�#�+��'��)-��%�+/��(�)-��&�"���!%��rmc
�\�Rp\'d\4;'gRpV!\P!4\P!4\P
!4\P!4\P!4\PPR4VR7#)N�Unknown�AWS_EXECUTION_ENV)r�r�r�r�r�r�r�)r�_get_crt_version�platform�system�release�machiner�r��os�environre)�clsr�s& rk�from_environment� UserAgentString.from_environmentYsw�����7�*�,�9�9�	�K��"�/�/�+�%�-�-�/�%�-�-�/�#�2�2�4�"*�"@�"@�"B��*�*�.�.�)<�=�#�
�	
rmc�*�WnW nW0nV#)a(
Set the user agent configuration values that apply at session level.

:param user_agent_name: The user agent name configured in the
    :py:class:`botocore.session.Session` object. For backwards
    compatibility, this will always be at the beginning of the
    User-Agent string, together with ``user_agent_version``.
:param user_agent_version: The user agent version configured in the
    :py:class:`botocore.session.Session` object.
:param user_agent_extra: The user agent "extra" configured in the
    :py:class:`botocore.session.Session` object.
)r�r�r�)r��session_user_agent_name�session_user_agent_version�session_user_agent_extras&&&&rk�set_session_config�"UserAgentString.set_session_confighs��$)@�%�+E�(�)A�&��rmc��WnR#)z�
Persist client-specific features registered before or during client
creation.

:type features: Set[str]
:param features: A set of client-specific features.
N)r�)r�rfs&&rk�set_client_features�#UserAgentString.set_client_featuress
��!)�rmc�(�\V4pWnV#)z�
Create a copy with all original values and client-specific values.

:type client_config: botocore.config.Config
:param client_config: The client configuration object.
)rr�)r��
client_config�cps&& rk�with_client_config�"UserAgentString.with_client_config�s���$�Z��)���	rmc���RpVP'dJ\VPR4'dVPPpMVPPpVeVP	V4#.VP4O\
R4NVP4OVP4OVP4OVP4OVP4OVP4OVP4OVP4Op\V4pRP!VUu.uF*q3P#4'gKVP#4NK,	up4#uupi)z>
Build User-Agent header string from the object's properties.
N�_supplied_user_agentzua/2.1� )r��hasattrr��
user_agent�_build_legacy_ua_string�_build_sdk_metadatar��_build_os_metadata�_build_architecture_metadata�_build_language_metadata�_build_execution_env_metadata�_build_feature_metadata�_build_config_metadata�
_build_app_id�_build_extrar�rzr�)r��config_ua_overrider��comps&   rkr��UserAgentString.to_string�sf��"�������t�*�*�,B�C�C�%)�%8�%8�%M�%M�"�%)�%8�%8�%C�%C�"��)��/�/�0B�C�C�
�
�
%�
%�
'�
�'��1�
��
$�
$�
&�
��
.�
.�
0�	
�
�
*�
*�
,�
��
/�
/�
1�

��
)�
)�
+�
��
(�
(�
*�
��
�
�
!�
��
�
�
 �
�
�'�z�2�
��x�x�*4�I�*�$���8H�
�T�^�^�
�*�I�
�	
��Is�*E!�E!c���.pVP'd�VP'dpVP\8wgVP\8wdFVP	\VPVP4\R\\4.4M#VP
\\\44VPe'VP
\RRVP44V#)aD
Build the SDK name and version component of the User-Agent header.

For backwards-compatibility both session-level and client-level config
of custom tool names are honored. If this removes the Botocore
information from the start of the string, Botocore's name and version
are included as a separate field with "md" prefix.
�md�awscrt)r�r��_USERAGENT_SDK_NAME�botocore_version�extendr��appendr�)r��sdk_mds& rkr��#UserAgentString._build_sdk_metadata�s������)�)�)��0�0�0��-�-�1D�D��3�3�7G�G�
�M�M�&��5�5��8�8��'��1�3C���

�
�M�M�"�#6�8H�I�
����(��M�M�"�4��4�3D�3D�E�
��
rmc�N�VPf\RR4.#VPP4pV\9dTpMV\9d\V,pMRpVe\RW P
4.#\RR4\RVPVP
4.#)a�
Build the OS/platform components of the User-Agent header string.

For recognized platform names that match or map to an entry in the list
of standardized OS names, a single component with prefix "os" is
returned. Otherwise, one component "os/other" is returned and a second
with prefix "md" and the raw platform name.

String representations of example return values:
 * ``os/macos#10.13.6``
 * ``os/linux``
 * ``os/other``
 * ``os/other md/foobar#1.2.3``
Nr��otherr)r�r��lower�_USERAGENT_ALLOWED_OS_NAMES�!_USERAGENT_PLATFORM_NAME_MAPPINGSr�)r��plt_name_lower�	os_familys&  rkr�"UserAgentString._build_os_metadata�s������&�&�t�W�5�6�6��,�,�2�2�4���8�8�&�I�
�@�
@�9�.�I�I��I�� �"�4��4J�4J�K��
�
#�4��1�"��$�-�-�t�/E�/E���
rmc�v�VP'd'\RRVPP44.#.#)z�
Build architecture component of the User-Agent header string.

Returns the machine type with prefix "md" and name "arch", if one is
available. Common values include "x86_64", "arm64", "i386".
r�arch)r�r�rr�s&rkr�,UserAgentString._build_architecture_metadatas?���!�!�!�"��&�$�"8�"8�">�">�"@���
�
�	rmc��\RRVP4.pVP'd'VP\RRVP44V#)ak
Build the language components of the User-Agent header string.

Returns the Python version in a component with prefix "lang" and name
"python". The Python implementation (e.g. CPython, PyPy) is returned as
separate metadata component with prefix "md" and name "pyimpl".

String representation of an example return value:
``lang/python#3.10.4 md/pyimpl#CPython``
�lang�pythonr�pyimpl)r�r�r�r)r��lang_mds& rkr�(UserAgentString._build_language_metadatasP��
�v�x��1E�1E�F�
���&�&�&��N�N�"�4��4�3N�3N�O�
��rmc�X�VP'd\RVP4.#.#)z�
Build the execution environment component of the User-Agent header.

Returns a single component prefixed with "exec-env", usually sourced
from the environment variable AWS_EXECUTION_ENV.
zexec-env)r�r�r�s&rkr�-UserAgentString._build_execution_env_metadata's+������&�z�4�3F�3F�G�H�H��Irmc��\4pVf\4MVPpVP;'g\4pVP	V4pV'g.#\RR4p\
RRPV4VR7.#)z�
Build the features component of the User-Agent header string.

Returns a single component with prefix "m" followed by a list of
comma-separated metric values.
i�,�m)r�)r	�setrfr��unionrr�rz)r�ri�context_features�client_featuresrfr�s&     rkr�'UserAgentString._build_feature_metadata3sy���m��$'�K�3�5�S�\�\���/�/�8�8�3�5��"�(�(�)9�:����I�2�4��=����S�X�X�h�'�[�
�
�	
rmc�:�VP'dVPP'g.#VPPPR4p\RRV4.pVPP'dVP\RR44V#)z�
Build the configuration components of the User-Agent header string.

Returns a list of components with prefix "cfg" followed by the config
setting name and its value. Tracked configuration settings may be
added or removed in future versions.
�mode�cfgz
retry-modezendpoint-discovery)r��retriesrer��endpoint_discovery_enabledr)r��
retry_mode�cfg_mds&  rkr�&UserAgentString._build_config_metadataGs���"�"�"�$�*=�*=�*E�*E�*E��I��(�(�0�0�4�4�V�<�
�$�U�L�*�E�F�����9�9�9��M�M�,�U�4H�I�J��
rmc���VP'dMVPP'd1\VPPRR7p\RV24.#.#)a�
Build app component of the User-Agent header string.

Returns a single component with prefix "app" and value sourced from the
``user_agent_appid`` field in :py:class:`botocore.config.Config` or
the ``sdk_ua_app_id`` setting in the shared configuration file, or the
``AWS_SDK_UA_APP_ID`` environment variable. These are the recommended
ways for apps built with Botocore to insert their identifer into the
User-Agent header.
Tr{zapp/)r��user_agent_appidr}r�)r��appids& rkr�UserAgentString._build_app_idWsW������4�#6�#6�#G�#G�#G�8��+�+�<�<���E�0�$�u�g��?�@�@��Irmc�.�.pVP'd%VP\VP44VP'dKVPP'd/VP\VPP44V#)aEUser agent string components based on legacy "extra" settings.

Creates components from the session-level and client-level
``user_agent_extra`` setting, if present. Both are passed through
verbatim and should be appended at the end of the string.

Preferred ways to inject application-specific information into
botocore's User-Agent header string are the ``user_agent_appid` field
in :py:class:`botocore.config.Config`. The ``AWS_SDK_UA_APP_ID``
environment variable and the ``sdk_ua_app_id`` configuration file
setting are alternative ways to set the ``user_agent_appid`` config.
)r�rr�r��user_agent_extra)r��extras& rkr�UserAgentString._build_extrajsx�����)�)�)��L�L�+�D�,J�,J�K�
�����4�#6�#6�#G�#G�#G��L�L�+��'�'�8�8��
�
�rmc��V.pVP'dVPVP4VPP'd&VPVPP4RP	V4#)r�)r�rr�r<rz)r�rr�s&& rkr��'UserAgentString._build_legacy_ua_string�se��(�)�
��)�)�)����d�<�<�=����/�/�/����d�1�1�B�B�C��x�x�
�#�#rmc��VP4pVPPR4'dVPPRV4R#R#)z
User-AgentN)r��headersre�replace_header)r��operation_name�request�kwargs�	ua_strings&&&, rk�&rebuild_and_replace_user_agent_handler�6UserAgentString.rebuild_and_replace_user_agent_handler�s>���N�N�$�	��?�?���|�,�,��O�O�*�*�<��C�-rm)r�r�r�r�r�r�r�r�r�r�r�r�r�)r�r�r�r�r�r��classmethodr�r�r�r�r�r�rrrrrrrrr�rHr�r�r�s@rkr�r�	sy�����81%�f�
��
��.)�	�
�B'�R$�L
��(
�
�(� �&�4$�D�Drmr�c�H�^RIpVP# \dR#i;i)zP
This function is considered private and is subject to abrupt breaking
changes.
N)r
r�AttributeError)r
s rkr�r��s(��
���!�!�!������s��!�!)�windows�linuxr
�android�ios�watchos�tvosr)%r��loggingr�r�rr�rr�typingrr�botocorerr�botocore.compatr�botocore.contextr	�	getLoggerr�r�rurrrrdrlrpr}rr�r��!botocore.customizations.useragentr��ImportErrorr�r�r�rmrk�<module>r[s�����	���(�'�4�#�(�	�	�	�8�	$��!.�� 6�9J� J��	��&.�w�$7�!�
!��,��c�,���,���,��3�	,�
�3�,��3�
,���,��C�,���,� ��,���,���,��c�,��3�,�#�C�,� $�S�!,�"#�C�#,�$"�3�%,�&$�S�',�(,�S�),�*+�C�+,�,,�S�-,�.+�C�/,�0��1,�2�C�3,�4,�S�5,�6"�3�7,�8)�#�9,�:�3�;,�<)�#�=,�>)�#�?,�@+�C�A,�B�s�C,�D�s�E,�F%�c��c�!�3��3�#�S������s�'��W,��^�&(��(��&?��?�D
�
�$�C�HD�HD�V
��c����s�D�
D*�)D*

Youez - 2016 - github.com/yon3zu
LinuXploit