New Features (nested_update, nested_delete) (#12)

* Fix for issue #10

* Renamed the test module

* New Features (nested_get, nested_update, nested_delete)

* Update Version to 0.3.0

* Updated Readme for new features

* Removed method (nested_get)

* Addressed review comments

* Removed nested_get references from README

* Rearanged the order of the functions
This commit is contained in:
Ramesh RV 2018-11-24 05:40:31 +05:30 committed by Russell Ballestrini
parent d49c15f293
commit 4564f8ed80
6 changed files with 297 additions and 58 deletions

View file

@ -1,36 +1,43 @@
# installation: pip install nested-lookup
from setuptools import (
setup,
find_packages,
setup,
find_packages,
)
# get list of requirement strings from requirements.txt
remove_whitespace = lambda x : ''.join(x.split())
sanitize = lambda x : not x.startswith('#') and x != ''
def remove_whitespace(x):
return ''.join(x.split())
def sanitize(x):
return not x.startswith('#') and x != ''
with open('requirements.txt', 'r') as f:
requires = filter(sanitize, map(remove_whitespace, f.readlines() ))
requires = filter(sanitize, map(remove_whitespace, f.readlines()))
setup(
name = 'nested-lookup',
version = '0.2.01',
description = 'lookup a key in a deeply nested document of dicts and lists',
keywords = 'nested document dictionary dict list lookup schema json xml yaml',
long_description = open('README.rst').read(),
setup(
name='nested-lookup',
version='0.2.11',
description='lookup a key in a deeply nested document of dicts and lists',
keywords='nested document dictionary dict list lookup schema json xml yaml',
long_description=open('README.rst').read(),
author = 'Russell Ballestrini',
author_email = 'russell@ballestrini.net',
url = 'https://github.com/russellballestrini/nested-lookup',
author='Russell Ballestrini',
author_email='russell@ballestrini.net',
url='https://github.com/russellballestrini/nested-lookup',
platforms = ['All'],
license = 'Public Domain',
platforms=['All'],
license='Public Domain',
packages = find_packages(),
include_package_data = True,
packages=find_packages(),
include_package_data=True,
install_requires = requires,
install_requires=requires,
classifiers = [
classifiers=[
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2',