OpenQuizz
Une application de gestion des contenus pédagogiques
click.core Namespace Reference

Data Structures

class  Argument
 
class  BaseCommand
 
class  Command
 
class  CommandCollection
 
class  Context
 
class  Group
 
class  MultiCommand
 
class  Option
 
class  Parameter
 

Functions

def fast_exit (code)
 
def batch (iterable, batch_size)
 
def invoke_param_callback (callback, ctx, param, value)
 
def augment_usage_errors (ctx, param=None)
 
def iter_params_for_processing (invocation_order, declaration_order)
 

Variables

string SUBCOMMAND_METAVAR = "COMMAND [ARGS]..."
 
string SUBCOMMANDS_METAVAR = "COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]..."
 
string DEPRECATED_HELP_NOTICE = " (DEPRECATED)"
 
string DEPRECATED_INVOKE_NOTICE = "DeprecationWarning: The command %(name)s is deprecated."
 

Function Documentation

◆ augment_usage_errors()

def click.core.augment_usage_errors (   ctx,
  param = None 
)
Context manager that attaches extra information to exceptions.

◆ batch()

def click.core.batch (   iterable,
  batch_size 
)

◆ fast_exit()

def click.core.fast_exit (   code)
Exit without garbage collection, this speeds up exit by about 10ms for
things like bash completion.

◆ invoke_param_callback()

def click.core.invoke_param_callback (   callback,
  ctx,
  param,
  value 
)

◆ iter_params_for_processing()

def click.core.iter_params_for_processing (   invocation_order,
  declaration_order 
)
Given a sequence of parameters in the order as should be considered
for processing and an iterable of parameters that exist, this returns
a list in the correct order as they should be processed.

Variable Documentation

◆ DEPRECATED_HELP_NOTICE

string DEPRECATED_HELP_NOTICE = " (DEPRECATED)"

◆ DEPRECATED_INVOKE_NOTICE

string DEPRECATED_INVOKE_NOTICE = "DeprecationWarning: The command %(name)s is deprecated."

◆ SUBCOMMAND_METAVAR

string SUBCOMMAND_METAVAR = "COMMAND [ARGS]..."

◆ SUBCOMMANDS_METAVAR

string SUBCOMMANDS_METAVAR = "COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]..."