OpenQuizz
Une application de gestion des contenus pédagogiques
misc.py File Reference

Data Structures

class  StreamWrapper
 
class  HiddenText
 

Namespaces

 pip._internal.utils.misc
 

Functions

def get_pip_version ()
 
def normalize_version_info (py_version_info)
 
def ensure_dir (path)
 
def get_prog ()
 
def rmtree (dir, ignore_errors=False)
 
def rmtree_errorhandler (func, path, exc_info)
 
def display_path (path)
 
def backup_dir (dir, ext=".bak")
 
def ask_path_exists (message, options)
 
def ask (message, options)
 
def ask_input (message)
 
def ask_password (message)
 
def strtobool (val)
 
def format_size (bytes)
 
def tabulate (rows)
 
bool is_installable_dir (str path)
 
def read_chunks (file, size=io.DEFAULT_BUFFER_SIZE)
 
def normalize_path (path, resolve_symlinks=True)
 
def splitext (path)
 
def renames (old, new)
 
def is_local (path)
 
def dist_is_local (dist)
 
def dist_in_usersite (dist)
 
def dist_in_site_packages (dist)
 
def dist_is_editable (dist)
 
def get_installed_distributions (local_only=True, skip=stdlib_pkgs, include_editables=True, editables_only=False, user_only=False, paths=None)
 
def get_distribution (req_name)
 
def egg_link_path (dist)
 
def dist_location (dist)
 
def write_output (msg, *args)
 
def captured_output (stream_name)
 
def captured_stdout ()
 
def captured_stderr ()
 
def enum (*sequential, **named)
 
def build_netloc (host, port)
 
def build_url_from_netloc (netloc, scheme="https")
 
def parse_netloc (netloc)
 
def split_auth_from_netloc (netloc)
 
def redact_netloc (netloc)
 
def split_auth_netloc_from_url (url)
 
def remove_auth_from_url (url)
 
def redact_auth_from_url (url)
 
def hide_value (value)
 
def hide_url (url)
 
def protect_pip_from_modification_on_windows (modifying_pip)
 
def is_console_interactive ()
 
def hash_file (path, blocksize=1<< 20)
 
def is_wheel_installed ()
 
def pairwise (iterable)
 
def partition (pred, iterable)
 

Variables

 logger
 
 T
 
 ExcInfo
 
 VersionInfo
 
 NetlocTuple