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 details)
Built Distribution
File details
Details for the file binarn-0.0.3.tar.gz
.
File metadata
- Download URL: binarn-0.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c26069c1daae1d518650ef659a7ff543297bfc55a6d3eb8b489a3fa4f704ea66 |
|
MD5 | 4a091205a14e00d444db736b6b388eb0 |
|
BLAKE2b-256 | 42a472b0b8aff567151fb993791d4148dd1290ef00d6c699ab52d1f98f79ec0c |
File details
Details for the file binarn-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: binarn-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c20a753bbc11f1d15bac1d5185cac5c39dff71d19161fba37ae86b018b3630 |
|
MD5 | b6e68d2ed6aebf92328f376ca3970af4 |
|
BLAKE2b-256 | 88b4eea85bebf2ca2f66852e40bf29bb4fd4ce5670aff7450c4598812f784d16 |