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

Data Structures

class  _Missing
 

Namespaces

 marshmallow.utils
 

Functions

bool is_generator (obj)
 
bool is_iterable_but_not_string (obj)
 
bool is_collection (obj)
 
bool is_instance_or_subclass (val, class_)
 
bool is_keyed_tuple (obj)
 
None pprint (obj, *args, **kwargs)
 
bool is_aware (dt.datetime datetime)
 
dt.datetime from_rfc (str datestring)
 
str rfcformat (dt.datetime datetime)
 
dt.timezone get_fixed_timezone (typing.Union[int, float, dt.timedelta] offset)
 
def from_iso_datetime (value)
 
def from_iso_time (value)
 
def from_iso_date (value)
 
str isoformat (dt.datetime datetime)
 
str to_iso_time (dt.time time)
 
str to_iso_date (dt.date date)
 
str ensure_text_type (typing.Union[str, bytes] val)
 
def pluck (typing.List[typing.Dict[str, typing.Any]] dictlist, str key)
 
def get_value (obj, typing.Union[int, str] key, default=missing)
 
def set_value (typing.Dict[str, typing.Any] dct, str key, typing.Any value)
 
def callable_or_raise (obj)
 
typing.List[str] get_func_args (typing.Callable func)
 
def resolve_field_instance (cls_or_instance)
 

Variables

 EXCLUDE
 
 INCLUDE
 
 RAISE
 
 missing