0.0.2 tagged
modified: README.rst modified: setup.py
This commit is contained in:
parent
cc050fd409
commit
fb64e8a00a
2 changed files with 10 additions and 12 deletions
18
README.rst
18
README.rst
|
|
@ -1,7 +1,7 @@
|
||||||
nested_lookup
|
nested_lookup
|
||||||
#############
|
#############
|
||||||
|
|
||||||
.. image:: https://img.shields.io/badge/pypi-0.0.1-green.svg
|
.. image:: https://img.shields.io/badge/pypi-0.0.2-green.svg
|
||||||
:target: https://pypi.python.org/pypi/nested-lookup
|
:target: https://pypi.python.org/pypi/nested-lookup
|
||||||
|
|
||||||
.. image:: https://img.shields.io/badge/coverage-100%-green.svg
|
.. image:: https://img.shields.io/badge/coverage-100%-green.svg
|
||||||
|
|
@ -11,17 +11,13 @@ A small Python library which enables key lookups on deeply nested documents.
|
||||||
|
|
||||||
Documents may be built out of dictionaries (dicts) and/or lists.
|
Documents may be built out of dictionaries (dicts) and/or lists.
|
||||||
|
|
||||||
The `nested-lookup` function makes working with JSON, YAML, and XML fun again!
|
Make working with JSON, YAML, and XML document responses fun again!
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
quick start
|
|
||||||
===========
|
|
||||||
|
|
||||||
install
|
install
|
||||||
-------
|
========
|
||||||
|
|
||||||
install from pypi using pip::
|
install from pypi using pip::
|
||||||
|
|
||||||
|
|
@ -38,17 +34,19 @@ or install from source using::
|
||||||
pip install .
|
pip install .
|
||||||
|
|
||||||
tutorial
|
tutorial
|
||||||
--------
|
========
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
>>> from nested_lookup import nested_lookup
|
>>> from nested_lookup import nested_lookup
|
||||||
>>> document = [ { 'nachos' : 15 } , { 'salsa' : [ { 'taco': 42 }, { 'burrito' : { 'taco' : 69 } } ] } ]
|
|
||||||
|
>>> document = [ { 'taco' : 42 } , { 'salsa' : [ { 'burrito' : { 'taco' : 69 } } ] } ]
|
||||||
|
|
||||||
>>> print(nested_lookup('taco', document))
|
>>> print(nested_lookup('taco', document))
|
||||||
[42, 69]
|
[42, 69]
|
||||||
|
|
||||||
misc
|
misc
|
||||||
----
|
========
|
||||||
|
|
||||||
:author: Russell Ballestrini
|
:author: Russell Ballestrini
|
||||||
|
|
||||||
|
|
|
||||||
4
setup.py
4
setup.py
|
|
@ -4,9 +4,9 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'nested-lookup',
|
name = 'nested-lookup',
|
||||||
version = '0.0.1',
|
version = '0.0.2',
|
||||||
description = 'lookup a key in a deeply nested document of dicts and lists',
|
description = 'lookup a key in a deeply nested document of dicts and lists',
|
||||||
keywords = 'nested document dictionary dict list lookup schema json xml',
|
keywords = 'nested document dictionary dict list lookup schema json xml yaml',
|
||||||
long_description = open('README.rst').read(),
|
long_description = open('README.rst').read(),
|
||||||
|
|
||||||
author = 'Russell Ballestrini',
|
author = 'Russell Ballestrini',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue