OpenQuizz
Une application de gestion des contenus pédagogiques
flask_restx.fields Namespace Reference

Data Structures

class  Arbitrary
 
class  Boolean
 
class  ClassName
 
class  Date
 
class  DateTime
 
class  Fixed
 
class  Float
 
class  FormattedString
 
class  Integer
 
class  List
 
class  MarshallingError
 
class  MinMaxMixin
 
class  Nested
 
class  NumberMixin
 
class  Polymorph
 
class  Raw
 
class  String
 
class  StringMixin
 
class  Url
 
class  Wildcard
 

Functions

def is_indexable_but_not_string (obj)
 
def is_integer_indexable (obj)
 
def get_value (key, obj, default=None)
 
def to_marshallable_type (obj)
 

Variables

 ZERO = Decimal()
 

Function Documentation

◆ get_value()

def flask_restx.fields.get_value (   key,
  obj,
  default = None 
)
Helper for pulling a keyed value off various types of objects

◆ is_indexable_but_not_string()

def flask_restx.fields.is_indexable_but_not_string (   obj)

◆ is_integer_indexable()

def flask_restx.fields.is_integer_indexable (   obj)

◆ to_marshallable_type()

def flask_restx.fields.to_marshallable_type (   obj)
Helper for converting an object to a dictionary only if it is not
dictionary already or an indexable object nor a simple type

Variable Documentation

◆ ZERO

ZERO = Decimal()