Skip to main content

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


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)

Uploaded Source

Built Distribution

binarn-0.0.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page