Module zut.collection
Parse and convert lists and dicts.
Functions
|
|
|
Return a visual string representation of a dict (key1=value1,key2=value2,...), or a JSON string if any key or value contains a comma or equal sign. |
|
Return a visual string representation of a list (value1,value2,...), or a JSON string if any value contains a comma. |
|
Parse an Iterable into an array literal (using PostgreSQL syntax). |
|
Parse a comma-separated string of key=value pairs into a dict, with support for quoted values. |
|
Parse a comma-separated string into a list, with support for quoted items. |
|
Parse an array literal (using PostgreSQL syntax) into a list. |