Find a file
russellballestrini 8ba271daf3 python packaging is hard.jpg
modified:   README.rst
	modified:   setup.py
2015-12-04 16:47:39 -05:00
nested_lookup fix py3 package namespace using relative import. 2015-12-02 18:08:25 -05:00
.gitignore modified: .gitignore 2015-11-07 08:12:50 -05:00
MANIFEST.in 0.1.0 2015-12-02 16:27:11 -05:00
README.rst python packaging is hard.jpg 2015-12-04 16:47:39 -05:00
requirements.txt Python 3 Support using six.iteritems() function. 2015-12-02 14:54:51 -05:00
setup.py python packaging is hard.jpg 2015-12-04 16:47:39 -05:00
test_nested_loopkup.py first commit, working with tests. 2015-11-06 23:30:53 -05:00

nested_lookup
#############

.. image:: https://img.shields.io/badge/pypi-0.1.3-green.svg
  :target: https://pypi.python.org/pypi/nested-lookup
  
.. image:: https://img.shields.io/badge/coverage-100%-green.svg
  :target: https://github.com/russellballestrini/nested-lookup/blob/master/test_nested_loopkup.py

A small Python library which enables key lookups on deeply nested documents.

Documents may be built out of dictionaries (dicts) and/or lists.

Make working with JSON, YAML, and XML document responses fun again!

.. contents::


install
========

install from pypi using pip::

 pip install nested-lookup

or easy_install::

 easy_install nested-lookup

or install from source using::

 git clone https://github.com/russellballestrini/nested-lookup.git
 cd nested-lookup
 pip install .

tutorial
========

.. code-block:: python

 >>> from nested_lookup import nested_lookup

 >>> document = [ { 'taco' : 42 } , { 'salsa' : [ { 'burrito' : { 'taco' : 69 } } ] } ]

 >>> print(nested_lookup('taco', document))
 [42, 69]

misc
========

:license: 
  * Public Domain

:authors: 
  * Russell Ballestrini
  * Douglas Miranda

:web: 
  * http://russell.ballestrini.net
  * http://douglasmiranda.com
  * https://gist.github.com/douglasmiranda/5127251