From 05390b683f0468e5f95a00fb753b28e347f2a79f Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 6 Nov 2015 23:49:34 -0500 Subject: [PATCH] Update README.rst --- README.rst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index fbdb199..0bf2dfe 100644 --- a/README.rst +++ b/README.rst @@ -7,11 +7,6 @@ Documents may be built out of dictionaries (dicts) and/or lists. .. contents:: -:author: Russell Ballestrini - -:web: http://russell.ballestrini.net - -:license: Public Domain quick start @@ -37,7 +32,18 @@ or install from source using:: tutorial -------- +.. code-block:: python + >>> from nested_lookup import nested_lookup + >>> document = [ { 'nachos' : 15 } , { 'salsa' : [ { 'taco': 42 }, { 'burrito' : { 'taco' : 69 } } ] } ] + >>> print(nested_lookup('taco', document)) + [42, 69] +misc +---- +:author: Russell Ballestrini +:web: http://russell.ballestrini.net + +:license: Public Domain