Skip to main content
# dict-utils ![License MIT](https://go-shields.herokuapp.com/license-MIT-blue.png)

[![Travis-CI Status](https://secure.travis-ci.org/glowdigitalmedia/dict-utils.png?branch=master)](http://travis-ci.org/#!/glowdigitalmedia/dict-utils)
[![Coverage Status](https://coveralls.io/repos/glowdigitalmedia/dict-utils/badge.png?branch=master)](https://coveralls.io/r/glowdigitalmedia/dict-utils?branch=master)
[![PyPI version](https://badge.fury.io/py/dict-utils.svg)](http://badge.fury.io/py/dict-utils)

dict-utils is a set of utilities and accessory methods usable
with Python dicts.

## Examples

1. Search for a value in a dictionary, passing a key:

```python
from dict_utils import dict_utils

dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'age': 30}}}
found_value = dict_utils.dict_search_value(dict_1, 'name')
```

**found_value** will contain **'Joe'**

2. Compare two different dictionaries having the same keys

```python
from dict_utils import dict_utils

dict_1 = {'first_level': {'second_level': {'name': 'Joe', 'age': 30}}}
dict_2 = {'level_1': {'level_2': {'name': 'Joe', 'age': 30}}}
dict_utils.compare_assert_dicts(self, ['name', 'age'], dict_1, dict_2)
```

## Running Tests

```
python setup.py test
```

Metadata

Release files for dict-utils 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dict-utils 0.1.2
File Size Uploaded Provenance Actions
dict-utils-0.1.2.tar.gz 2.6 kB Without provenance Details for dict-utils-0.1.2.tar.gz

Release files / dict-utils-0.1.2.tar.gz

Download URL dict-utils-0.1.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a5bbbc1da14597dda251e19d0b2179cd06f11e122489126077667d06c14606c1
BLAKE2b-256 checksum
How to use checksums
07f91860c89321923547ed7a66109d0cd05b6f36905cc0a38d595787895d11ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dict-utils 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page