Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Set of utilities and accessory methods to work with Python dicts.

Project Description

# dict-utils ![License MIT](

[![Travis-CI Status](](!/glowdigitalmedia/dict-utils)
[![Coverage Status](](
[![PyPI version](](

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:

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

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 test

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(2.6 kB) Copy SHA256 Hash SHA256
Source None Feb 13, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting