Commit graph

28 commits

Author SHA1 Message Date
095ed8f244 Update lookup_api.py 2019-10-16 15:17:36 -04:00
Maxim Kuznetsov
c0e895fd1b Delete unused variables, fix outdated doc 2019-10-16 15:17:36 -04:00
Maxim Kuznetsov
307983caa5 Fix wrong-ordered update, create test 2019-10-16 15:17:36 -04:00
4b8eeaf969 more tests cases regarding wild functionality
modified:   README.rst
	modified:   nested_lookup/nested_lookup.py
	modified:   setup.py
	modified:   test_nested_lookup.py
2019-06-25 15:20:42 -07:00
b6acaca980 Fix defect where wild would break if document had non string keys.
modified:   README.rst
	modified:   nested_lookup/nested_lookup.py
	modified:   setup.py
	modified:   test_nested_lookup.py
2019-06-25 14:50:00 -07:00
9348af1790 modified: README.rst
modified:   nested_lookup/__init__.py
	modified:   nested_lookup/lookup_api.py
	modified:   nested_lookup/nested_lookup.py
	modified:   setup.py
	modified:   test_lookup_api.py
	modified:   test_nested_lookup.py
2019-05-21 10:23:00 -04:00
652ab9882d Fixing CI for python version 2.7 2019-05-13 04:10:57 -07:00
Ramesh_RV
fdce9e685a Fix for issue #19 (get_all_keys fails if dict are part of list) 2019-05-13 04:10:57 -07:00
Salfiii
4f37d265c8 "nested_alter" and update of "nested_update" (#16)
* Update lookup_api.py

moved the typecheck of the value argument to the wrapper function.

* added tests for nested_update Test

* pep8 format standards
moded _call_callback out of the nested_alter Method
Raised an Exception is no list is provided but treas_as_elemenet is false
treat_list_as_element:bool renamed to treat_as_element:bool and set default to True

* Auto commit via script

* Create CONTRIBUTORS.rst

* Rename CONTRIBUTORS.rst to CONTRIBUTING.rst

* Update CONTRIBUTING.rst

* Fix for issue #17 (#18)

* Fix for issue #17
* Updating version (and) Adding Travis CI support
* Adding Build status to README

* changed the type annotation of the input document (removed it)
removed the output type hint
change the Readme

* Update lookup_api.py

moved the typecheck of the value argument to the wrapper function.

* added tests for nested_update Test

* pep8 format standards
moded _call_callback out of the nested_alter Method
Raised an Exception is no list is provided but treas_as_elemenet is false
treat_list_as_element:bool renamed to treat_as_element:bool and set default to True


* changed the type annotation of the input document (removed it)
removed the output type hint
change the Readme
2019-04-29 20:06:10 -04:00
0e8723b822 Fix for issue #17 (#18)
* Fix for issue #17
* Updating version (and) Adding Travis CI support
* Adding Build status to README
2019-03-04 08:44:32 -05:00
ec281f6b3f Better test to protect against mutation.
modified:   .gitignore
	modified:   README.rst
	modified:   nested_lookup/lookup_api.py
	modified:   setup.py
	modified:   test_lookup_api.py
2019-01-17 17:45:00 -05:00
Dmitry Vasilev
a924829821 Add nested_update.in_place argument (#13)
* Add nested_update.in_place argument

* Update README.rst and tests
2019-01-17 15:44:02 -05:00
4564f8ed80 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
2018-11-23 19:10:31 -05:00
3441584eaa Fix for issue #10 (#11)
* Fix for issue #10

* Renamed the test module
2018-11-02 12:08:13 -04:00
jpavlav
7513169ab4 Fixed issue where get_all_keys or _get_occurence choked on strings. (#9) 2018-11-01 11:28:55 -04:00
de3630f0f3 Fix for issue #7 (Enable key lookup after the key is found) 2018-10-14 11:17:29 +05:30
395ee0185b New Feature (finding occurrence) - typo correction 2018-10-08 16:31:51 +05:30
7692fc2754 New Feature (finding occurence) - typo correction 2018-10-08 16:26:29 +05:30
904a2b957d New feature (Finding occurance) 2018-10-08 16:09:19 +05:30
0d17bb8c7f running black on files and updating docs.
modified:   README.rst
	modified:   nested_lookup/nested_lookup.py
	modified:   test_nested_loopkup.py
2018-09-25 17:32:36 -04:00
c1ca4c1e1e Reverted PEP8 correction 2018-09-24 12:23:56 +05:30
Ramesh RV
bb7ab509eb Addition of new feature (get_all_keys) 2018-09-23 17:46:50 +05:30
756ad31763 added tests for the new with_keys option.
modified:   README.rst
	modified:   nested_lookup/nested_lookup.py
	modified:   test_nested_loopkup.py
2018-04-24 12:50:00 -07:00
Guillaume
3b1f2ced67 Updated README.rst and set list as default output 2018-04-24 10:30:29 -07:00
Guillaume
dfc2483e3e added dict as a possible output
when the user wants to keep some structure in the result, the `ouptut` option allows to return a `dict` with the matched keys as keys and corresponding values as values.
2018-04-24 09:47:47 -07:00
d46f683e76 wild mode: case insesitive key substring nested_lookups 2017-09-25 11:19:18 -07:00
e525c94b62 fix py3 package namespace using relative import.
modified:   README.rst
	deleted:    __init__.py
	modified:   nested_lookup/__init__.py
	modified:   setup.py
2015-12-02 18:08:25 -05:00
825f5ff28f move nested_lookup into a module
modified:   README.rst
	new file:   nested_lookup/__init__.py
	renamed:    nested_lookup.py -> nested_lookup/nested_lookup.py
	modified:   setup.py
2015-12-02 17:16:21 -05:00