nested_params.py |
|
---|---|
A middleware for parsing nested params, like {"a[b]": 'c'} => {'a': {'b': 'c'}}. |
|
|
|
|
|
You can specify a custom key parsing function with the key_parser option. |
|
Takes a flat string of parameters and turns it into a nested dict of parameters, using the function key_parser to split the parameter names into keys. |
|
|
|
Set a new value, v, in the dict d, at the key given by keys. For example,
Treats values of blank keys as elements in a list. |
|
"a[b][c]" => ["a", "b", "c"] |
|