Re:Show HN: Need feedback for my Python library to query dicts
by michaelmcmillan on Tuesday April 10, 2018 @01:06PM
(#16802967)
Not intended as criticism, but isn't it easier to just express your query in Python using filter?
[ Parent
| on HN ]
Re:Show HN: Need feedback for my Python library to query dicts
by cyberlis on Wednesday April 11, 2018 @04:12AM
(#16809032)
Yes. You are right. But I wanted the way to store my queries in any major database. And I wanted natural simple queries.
If I need to check my dictionary I want to use something similar to natural language.
lambdas and filters are greate, but not obvious at a glance.
If I want to check my dict: "Username is 'john' and age is greater than 23"
I will make this query: "`username` == 'john' and `age` > 23"
This query is obvious (i hope it is) for anyone from first glance
Re:Show HN: Need feedback for my Python library to query dicts
by SFjulie1 on Tuesday April 10, 2018 @01:17PM
(#16803086)
maybe even more simple than reinventing a langage using lambda functions applying on path/value in a dict with an iterator (which can be consumed by filter/any/map/reduce)
http://vectordict.readthedocs.io/en/latest/finding.html