Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
misc.py File Reference

Go to the source code of this file.

Data Structures

class  StreamWrapper
 
class  HiddenText
 
class  ConfiguredBuildBackendHookCaller
 

Namespaces

namespace  pip
 
namespace  pip._internal
 
namespace  pip._internal.utils
 
namespace  pip._internal.utils.misc
 

Functions

str get_pip_version ()
 
Tuple[int, int, int] normalize_version_info (Tuple[int,...] py_version_info)
 
None ensure_dir (str path)
 
str get_prog ()
 
None rmtree (str dir, bool ignore_errors=False)
 
None rmtree_errorhandler (Callable[..., Any] func, str path, Union[ExcInfo, BaseException] exc_info)
 
str display_path (str path)
 
str backup_dir (str dir, str ext=".bak")
 
str ask_path_exists (str message, Iterable[str] options)
 
None _check_no_input (str message)
 
str ask (str message, Iterable[str] options)
 
str ask_input (str message)
 
str ask_password (str message)
 
int strtobool (str val)
 
str format_size (float bytes)
 
Tuple[List[str], List[int]] tabulate (Iterable[Iterable[Any]] rows)
 
bool is_installable_dir (str path)
 
Generator[bytes, None, Noneread_chunks (BinaryIO file, int size=io.DEFAULT_BUFFER_SIZE)
 
str normalize_path (str path, bool resolve_symlinks=True)
 
Tuple[str, str] splitext (str path)
 
None renames (str old, str new)
 
bool is_local (str path)
 
None write_output (Any msg, *Any args)
 
Generator[StreamWrapper, None, Nonecaptured_output (str stream_name)
 
ContextManager[StreamWrappercaptured_stdout ()
 
ContextManager[StreamWrappercaptured_stderr ()
 
Type[Any] enum (*Any sequential, **Any named)
 
str build_netloc (str host, Optional[int] port)
 
str build_url_from_netloc (str netloc, str scheme="https")
 
Tuple[Optional[str], Optional[int]] parse_netloc (str netloc)
 
NetlocTuple split_auth_from_netloc (str netloc)
 
str redact_netloc (str netloc)
 
Tuple[str, NetlocTuple_transform_url (str url, Callable[[str], Tuple[Any,...]] transform_netloc)
 
NetlocTuple _get_netloc (str netloc)
 
Tuple[str] _redact_netloc (str netloc)
 
Tuple[str, str, Tuple[Optional[str], Optional[str]]] split_auth_netloc_from_url (str url)
 
str remove_auth_from_url (str url)
 
str redact_auth_from_url (str url)
 
HiddenText hide_value (str value)
 
HiddenText hide_url (str url)
 
None protect_pip_from_modification_on_windows (bool modifying_pip)
 
None check_externally_managed ()
 
bool is_console_interactive ()
 
Tuple[Any, int] hash_file (str path, int blocksize=1<< 20)
 
Iterator[Tuple[Any, Any]] pairwise (Iterable[Any] iterable)
 
Tuple[Iterable[T], Iterable[T]] partition (Callable[[T], bool] pred, Iterable[T] iterable)
 

Variables

 logger = logging.getLogger(__name__)
 
 T = TypeVar("T")
 
 ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType]
 
 VersionInfo = Tuple[int, int, int]
 
 NetlocTuple = Tuple[str, Tuple[Optional[str], Optional[str]]]