|
13 | 13 | [](https://requires.io/github/fabiocaccamo/python-benedict/requirements/?branch=master) |
14 | 14 |
|
15 | 15 | # python-benedict |
16 | | -python-benedict is a dict subclass with **keypath** support, **I/O** shortcuts (`Base64`, `CSV`, `JSON`, `TOML`, `XML`, `YAML`, `query-string`) and many **utilities**... for humans, obviously. |
| 16 | +python-benedict is a dict subclass with **keylist/keypath** support, **I/O** shortcuts (`Base64`, `CSV`, `JSON`, `TOML`, `XML`, `YAML`, `query-string`) and many **utilities**... for humans, obviously. |
17 | 17 |
|
18 | 18 | ## Features |
19 | 19 | - 100% **backward-compatible**, you can safely wrap existing dictionaries. |
20 | | -- Full **keypath** support using **keypath-separator** *(dot syntax by default)* or **list of keys**. |
| 20 | +- Full **keylist** support using **list of keys** as key. |
| 21 | +- Full **keypath** support using **keypath-separator** *(dot syntax by default)*. |
21 | 22 | - Easy **I/O operations** with most common formats: `Base64`, `CSV`, `JSON`, `TOML`, `XML`, `YAML`, `query-string`. |
22 | 23 | - Many **utility** and **parse methods** to retrieve data as needed *(check the [API](#api) section)*. |
23 | 24 | - Well **tested**, check the badges ;) |
@@ -209,9 +210,10 @@ Utilities that return a dictionary always return a new `benedict` instance. |
209 | 210 | - #### clean |
210 | 211 |
|
211 | 212 | ```python |
212 | | -# Clean the current dict removing all empty values: None, '', {}, [], (). |
213 | | -# If strings, dicts or lists flags are False, related empty values will not be deleted. |
214 | | -d.clean(strings=True, dicts=True, lists=True) |
| 213 | +# Clean the current dict instance removing all empty values: None, '', {}, [], (). |
| 214 | +# If strings or collections (dict, list, set, tuple) flags are False, |
| 215 | +# related empty values will not be deleted. |
| 216 | +d.clean(strings=True, collections=True) |
215 | 217 | ``` |
216 | 218 |
|
217 | 219 | - #### clone |
|
0 commit comments