class IntegerConverter(NumberConverter): (source)
This converter only accepts integer values:: Rule("/page/<int:page>") By default it only accepts unsigned, positive values. The ``signed`` parameter will enable signed, negative values. :: Rule("/page/<int(signed=True):page>") :param map: The :class:`Map`. :param fixed_digits: The number of fixed digits in the URL. If you set this to ``4`` for example, the rule will only match if the URL looks like ``/0001/``. The default is variable length. :param min: The minimal value. :param max: The maximal value. :param signed: Allow signed (negative) values. .. versionadded:: 0.15 The ``signed`` parameter.
Class Variable | part |
Undocumented |
Class Variable | regex |
Undocumented |
Inherited from NumberConverter
:
Method | __init__ |
Undocumented |
Method | to |
Undocumented |
Method | to |
Undocumented |
Class Variable | weight |
Undocumented |
Instance Variable | fixed |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | min |
Undocumented |
Instance Variable | signed |
Undocumented |
Property | signed |
Undocumented |
Inherited from BaseConverter
(via NumberConverter
):
Instance Variable | map |
Undocumented |