class IntegerConverter(NumberConverter):
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>")
Parameters | |
map | The Map . |
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. |
min | The minimal value. |
max | The maximal value. |
signed | Allow signed (negative) values. |
Class Variable | regex |
Undocumented |
Inherited from NumberConverter
:
Method | __init__ |
Undocumented |
Method | to_python |
Undocumented |
Method | to_url |
Undocumented |
Class Variable | weight |
Undocumented |
Instance Variable | fixed_digits |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | min |
Undocumented |
Instance Variable | signed |
Undocumented |
Property | signed_regex |
Undocumented |
Inherited from BaseConverter
(via NumberConverter
):
Instance Variable | map |
Undocumented |