Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 304 Bytes

File metadata and controls

14 lines (10 loc) · 304 Bytes

filterpath

Recursively gets and filters dict/list-like objects with a path-like syntax

Examples

>>> from filterpath import get
>>> obj = ["one", {"two": {"three": [4, [{"four": [5]}], 6]}}]
>>> get(obj, "1.two.three.-2.0.four.0")
5

See more in-depth examples in tests/get_test.py