python library (FastOptDict) for dictionary

0x00 Introduction

FastOptDict is a simple dictionary library. It allows you to find all the keys, values, and paths in the dictionary variable.

For example, we have a dictionary variable and we have to find out the value for the key “test”.

1
2
3
4
5
>>> import FastOptDict
>>> dict_data = {"a": "b", "c": "d", "e": [{"f": "a"}, "e", {"h": ["tt", "dd"]}], "h": ["tt", "dd"], "i": "c","z": {"f": "a","t":{"x":"z"}}}

>>> value_list = FastOptDict.get_value_by_key("a")
>>> print(value_list)

It uses a path generation algorithm to finish the task instead of using regex.

Read more