File: //usr/local/lib/python3.10/site-packages/pip/_internal/network/__pycache__/auth.cpython-310.pyc
o
��i{@ � @ sT d Z ddlZddlZddlZddlZddlmZmZ ddl m
Z
mZmZm
Z
mZmZ ddlmZmZ ddlmZmZ ddlmZ ddlmZ dd lmZmZmZmZmZ dd
l m!Z! ee"�Z#da$G dd
� d
e
�Z%G dd� de�Z&G dd� de&�Z'G dd� de&�Z(G dd� de&�Z)de&fdd�Z*dee+ dee+ dee! fdd�Z,G dd� de�Z-dS )z�Network Authentication Helpers
Contains interface (MultiDomainBasicAuth) and associated glue code for
providing credentials in the context of network requests.
� N)�ABC�abstractmethod)�Any�Dict�List�
NamedTuple�Optional�Tuple)�AuthBase�
HTTPBasicAuth)�Request�Response)�get_netrc_auth)� getLogger)�ask� ask_input�ask_password�remove_auth_from_url�split_auth_netloc_from_url)�AuthInfoFc @ s&