Find arbitrary keys in deep dictionaries.
Project description
binarn
binarn is a small tool to find an arbitrary key in a deep dictionary. It returns the full path to that key (if any) as well as its value.
It is intended as a debugging/exploration tool only.
Install
pip install binarn
Usage
import binarn
binarn.find_one(my_deep_dict, key="my_key")
# => (("key1", "key2", "my_key"), "value")
Origin of the name
"binarn" may look like a random name, but it has a true meaning. It stands for "binarn is not a random name".
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
binarn-0.0.3.tar.gz
(2.6 kB
view hashes)
Built Distribution
binarn-0.0.3-py3-none-any.whl
(2.9 kB
view hashes)