trace-dkey is a simple tool for tracing keys in nested dictionaries.
You can install trace-dkey using pip:
pip install trace-dkey
You can use trace-dkey as a command-line tool:
python -m trace_dkey --file=test.json --key=name
You can use trace-dkey in your Python code as follows:
from trace_dkey import trace
data = {'a': {'b': {'c': {'d': {'e': {'f': 1}}}}}}
path = trace(data, 'f')
print(path) # Output: [['a', 'b', 'c', 'd', 'e', 'f']]